0.0.5-alpha7 • Published 8 months ago

@greenbone/opensight-ui-components-mantinev7 v0.0.5-alpha7

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
-
Last release
8 months ago

Greenbone Logo

GitHub releases Build

OpenSight User Interface Component Library

About

This project is used to sequentially update the current opensight-ui-components library to mantine v7.

To use this in parallel with the current opensight-ui-components (mantine v6) (Dev mode):

  • npm run build - build this project
  • npm pack - Pack this project into a tarball (file is created in this project)
  • Switch to main project
  • npm install <path to tarball file>

To use the latest release in your frontend, just install it with npm install @greenbone/opensight-ui-components-mantinev7

Prerequisites

Install npm dependencies npm install

Build

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

  • npm run build:source transpiles and bundles the ./src files into ./lib
    • For this SWC is used
    • Configuration for SWC is located at
      • ./swcrc/./swcrc.production for transpilation and minification
      • ./spack.config.js for bundling
  • npm run build:types generated Type definition from ./src into ./types
    • For this TSC is used.
      • ./tsconfig[.XXX].json is used

Why SWC?

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

Credits

DependencyLicenseSource-code location
caniuse-liteCC-BY-4.0caniuse.com

Maintainer

This project is maintained by Greenbone AG.

Contributing

Your contributions are highly appreciated. Please create a pull request on GitHub. Bigger changes need to be discussed with the development team via the issues section at GitHub first.

License

Copyright (C) 2022-2024 Greenbone AG

Licensed under the GNU Affero General Public License v3.0 or later.