以下所有命令行操作都在 git-bash
窗口中执行
npm i -g c8 lerna madge rollup tsx zx
Package | Version |
---|---|
shared-types-dev |
run it at first time and any time
npm run repo:init
Run under root folder
npm run build
# specify scope
npm run build @scope/demo-docs
# specify scopes
npm run build @scope/demo-docs @scope/demo-serivce
npm run bootstrap
npm run add:pkg new_module
- Use
npm run lint
to check code style. - Use
npm run test
to run unit test.
# clean build dist, cache and build
npm run clean
# clean and remove all node_modules
npm run purge
- Run
npm run clean
beforenpm run build
, if any file under typescript outDir folder was deleted manually. - Default publish registry is
NPM
, configurated in filelerna.json
- Any commands above (such as
npm run build
) running inGit-Bash
under Windows OS