@nextbitlabs/nextbit-ui
TypeScript icon, indicating that this package has built-in type declarations

2.3.0 • Public • Published

Nextbit UI

This project contains the UI

Usage example: run and develop locally - src-doc

Install and code:

yarn install
yarn start

Build the src-doc (used for gitlab pages):

yarn run build-doc

The compiled HTML SPA contained in src-doc is bundled in public folder used by gh-pages.

Note:

WARNING: the public folder is for gitlab-pages, do not put anything in here! It will be destroyed before each build.

Build an exportable library - src

yarn run build-lib
npm publish

T.L.T.R.

This project is meant to be exported as a library and used into other project. The main entry is src/index.ts file.

To achieve this and produce CJS, UMD and ESM bundles with a single declaration file... I'm doing some workaround/build step.

I'm using microbundle to produce the final dist but it does not actually compiles typescript, only strip types and this is a little bit problematic.

So there are a first compilation step:

  1. compile with tsc into build folder (using tsconfig.json)
  2. actually launch microbundle
  3. bundle d.ts with dts-bundle-generator.

After this step the temporary build folder can be removed.

How to improve

There is big space for improvement writing a custom rollup script that does all this by itself. See those notes:

References

Package Sidebar

Install

npm i @nextbitlabs/nextbit-ui

Weekly Downloads

0

Version

2.3.0

License

ISC

Unpacked Size

1.08 MB

Total Files

11

Last publish

Collaborators

  • nkint
  • riccardoscalco
  • nextbit