Install [email protected] globally after git clone the repo.
$ npm i [email protected] -g
Install dev deps.
$ npm i
Bootstrap every package. (Need to execute when new package is included)
$ lerna bootstrap
Link umi globally.
$ cd packages/umi
$ npm 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 boilerplates/simple
$ umi dev
# Specifiy the port
$ PORT=8001 umi dev
Then open http://localhost:8000/ in your browser.
Run umi build
in examples/simple.
$ cd boilerplates/simple
$ umi build
# Don't compress
$ NO_COMPRESS=true umi build
# Debug transform result of specified loader
DEBUG_LOADER=src/page/index.js umi build
Publish to npm.
$ npm run publish
# Ignore specified package
$ npm run publish -- --ignore af-webpack