Skip to content

Latest commit

 

History

History
87 lines (58 loc) · 1.09 KB

CONTRIBUTING.md

File metadata and controls

87 lines (58 loc) · 1.09 KB

Contribute

Notice: y is the alias for yarn, n is the alias for npm.

Set up

Install dev deps after git clone the repo.

$ y

Bootstrap every package with yarn. (Need to execute when new package is included)

$ y bootstrap

Link umi globally.

$ cd packages/umi
$ y link

Common Tasks

Monitor file changes and transform with babel.

$ y build --watch

Run 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 -w

Run umi dev in examples/func-test.

$ cd examples/func-test
$ 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
$ COMPRESS=none umi build

Publish to npm.

# Can't use yarn for this command.
$ n run publish

Debug doc in local.

$ y doc:dev

Deploy doc to umijs.org.

$ y doc:deploy

Tips

Please use node@10, node@11 is not supported.