Skip to content
ui / 0.0.6

ui 0.0.6

Install from the command line:
Learn more about npm packages
$ npm install @greenbone/ui@0.0.6
Install via package.json:
"@greenbone/ui": "0.0.6"

About this version

Component-Library

This project contains all components for the new corporate design.

This project uses SWC for production builds and SWC for test compilation.

Build

To create a production build use npm run build:source and npm run build:types.

This uses SWC to compile Typescript to JavaScript and TSC to generate the type definitions.

Why?

SWC is 20x faster than Babel on a single thread and 70x faster on four cores.

SWC: https://swc.rs/

Test

To tun all tests run npm run test.

Storybook

To start the storybook use npm run storybook.

Development

Development inside component library

For isolated component development inside the library, you can run storybook and edit the component's files.

npm run storybook

Use the local development version in other projects

Common situation: Edit library component which is used in another frontend

  1. Run npm run local-expose to expose the local npm package to other local projects

  2. Navigate to root dir of desired project (where the package.json is located)

  3. Run npm link @greenbone/ui

  4. Change import paths

  • from @greenbone/ui
  • to @greenbone/ui/dev

The library now gets mounter inside the node_modules folder of the target project node_modules/

  1. For full Typescript support add the following to your tsconfig.json
    "paths": {
"@greenbone/ui/dev": ["./node_modules/@greenbone/ui/src"]
}

Details


Assets

  • ui-0.0.6-npm.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0