Contributing to Next Dev
Set up
Install dev deps after git clone the repo.
$ yarn
Common Tasks
Transform with babel and rollup.
# Start in the development environment
$ yarn start
# Build
$ yarn build
# Build and monitor file changes
$ yarn build --watch
# Build specified package only
$ PACKAGE=plugin-antd yarn build --watch
Run test.
$ yarn test
# Test specified file and watch
$ yarn test getMockData.test.js -w
# Test specified package
$ yarn test --package core
# Generate coverage
$ yarn test --coverage
Release
- Modify the version number in the corresponding package package.json
- Tag, the tag rule is package + version
# Take core package as an example
git tag @next-dev/core@1.0.0-beta1
- Submit according to the git commit specification (will be released automatically)
Please refer to https://www.conventionalcommits.org/en/v1.0.0/ for git submit specifications