yarn install
$ yarn dev
// or
$ npm run dev
// or
$ make dev
$ npm run build
// or
$ make build
$ make build-dist
$ make build-lib
After executing Build
scripts, we will have ./dist
and /lib
folders,
and then we can execute publish command,
npm publish
Note: before publish npm package, we need to bump the package version first.
Since we haven't adopt lerna or other monorepo management tools, we have to build and publish new codes by ourselves.
You can follow the following steps to create a new subpkg on the npmjs registry.
- update
pacakge.json
version
property (make sure you update version before build since build process will refer to pkg version) -
yarn build
: transpile codes and build webpack bundles -
npm publish
: publish built files onto npmjs registry
Due to manual building and publishing, we might encounter collaboration problems. You can see this PR for more information.
Since this subpkg is NOT under workspaces
control,
please do not forget to commit yarn.lock
if changed.