Notice:
yis the alias foryarn,nis the alias fornpm.
Install dev deps after git clone the repo.
$ yBootstrap every package with yarn. (Need to execute when new package is included)
$ y bootstrapLink umi globally.
$ cd packages/umi
$ y linkMonitor file changes and transform with babel.
$ y build --watchRun test.
# Including e2e test
$ y test
# Unit test only
$ y debug .test.(t|j)s
# Test specified file and watch
$ y debug getMockData.test.js -wRun umi dev in examples/func-test.
$ cd examples/func-test
$ umi devThen open http://localhost:8000/ in your browser.
Run umi build in examples/simple.
$ cd examples/func-test
$ umi build
# Build without compress
$ COMPRESS=none umi buildPublish to npm.
# Can't use yarn for this command.
$ n run publishDebug doc in local.
$ y doc:devDeploy doc to umijs.org.
$ y doc:deployPlease use node@10, node@11 is not supported.