Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 1.01 KB

Contribute.md

File metadata and controls

76 lines (51 loc) · 1.01 KB

Contribute

Set up

Install [email protected] globally after git clone the repo.

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

Common Tasks

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