Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 1.15 KB

CONTRIBUTING.md

File metadata and controls

74 lines (52 loc) · 1.15 KB

Contributing to umi

Set up

Install dev deps after git clone the repo.

$ yarn

Link umi@3, @umijs/utils and @umijs/test,

$ yarn run link

Common Tasks

Transform with babel and rollup.

$ 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

$ npm run release
$ npm run release -- --publish-only
$ npm run release -- --skip-git-status-check
$ npm run release -- --skip-build
$ npm run release -- --conventional-graduate
$ npm run release -- --conventional-graduate preset-react,plugin-dva
$ npm run release -- --select-version

Create new package

Such as creating package foo.

$ mkdir -p packages/foo
$ yarn bootstrap

Then you will find the README.md and package.json is generated in packages/foo.

$ tree packages/foo
packages/foo
├── README.md
└── package.json