Install dev deps after git clone the repo.
$ yarn
Bootstrap every package with yarn. (Need to execute when new package is included)
$ npm run bootstrap -- --npm-client yarn
Link umi globally.
$ cd packages/umi
$ yarn link
Monitor file changes and transform with babel.
$ npm run build -- --watch
Run test for a specified package.
$ lerna exec --scope af-webpack -- npm run debug
Run umi dev
in examples/simple.
$ cd examples/func-test
$ umi dev
# Specifiy the port
$ PORT=8001 umi dev
Then open http://localhost:8000/ in your browser.
Run umi build
in examples/simple.
$ cd examples/func-test
$ umi build
# Build without compress
$ NO_COMPRESS=true umi build
Publish to npm.
$ npm run publish