Install dev deps after git clone the repo.
# npm is not allowed.
$ yarn
Link umi globally.
$ cd packages/umi
$ yarn link
$ cd -
Try the umi
cli.
$ yarn build
$ umi -v
umi@0.0.1-alpha.1@local
Transform with babel and rollup.
$ yarn build
# Build and monitor file changes
$ yarn build --watch
# Build specified package only
$ PACKAGE=core yarn build --watch
$ 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
$ npm run release
$ npm run release -- --publish-only
$ npm run release -- --skip-git-status-check
$ npm run release -- --skip-build
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
$ yarn update:deps
# add doc
$ yarn docs add docs/routing --title Routing