Nodejs toolkit monorepo.
$ git clone [email protected]:chnliquan/eljs.git
$ pnpm i
$ pnpm run build
Name | Description |
---|---|
add-owner | Add owner to all sub-packages, pnpm run add-owner zhangsan 、pnpm add-owner run zhangsan lisi |
boot | Initialize sub-package project, $ pnpm run boot packages/shared 、$ pnpm run boot core |
build | Compile all sub-packages |
clean | Run clean script of all sub-packages |
coverage | Run unit test coverage |
dev | Compile all sub-packages in watch mode |
format | Format source code |
gm | Standardized git commit |
lint | Lint source code |
prerelease:alpha | Prerelease all sub-packages using alpha version, .alpha.x |
prerelease:beta | Prerelease all sub-packages using beta version, .beta.x |
prerelease:next | Prerelease all sub-packages using rc version, .rc.x |
release | Release all sub-packages |
release:major | Release all sub-packages using major version |
release:minor | Release all sub-packages using minor version |
release:patch | Release all sub-packages using patch version |
test | Run unit tests |
test:w | Run unit tests in watch mode |
// good
$ git commit -m 'feat(<sub-package-name>): add some feature'
$ git commit -m 'fix(<sub-package-name>): fix some bug'
$ git commit -m 'docs: update readme'
// bad, no type
$ git commit -m 'add some feature'
$ git commit -m 'fix some bug'
// bad, no scope
$ git commit -m 'feat: add some feature'
$ git commit -m 'fix: fix some bug'
$ git pull origin master
$ pnpm run build --filter <sub-package-name>
// or
$ pnpm -F <sub-package-name> run build
$ pnpm run release
Options:
--skipTests Skip unit tests
--skipBuild Skip package build
--skipRequireClean Skip git working tree check