Skip to content

Latest commit

 

History

History
76 lines (52 loc) · 1.01 KB

CONTRIBUTING.md

File metadata and controls

76 lines (52 loc) · 1.01 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 alita globally.

$ cd packages/alita
$ 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 alita dev in examples/func-test.

$ cd examples/func-test
$ alita dev

Then open http://localhost:8000/ in your browser.

Run alita build in examples/simple.

$ cd examples/func-test
$ alita build

# Build without compress
$ COMPRESS=none alita build

Publish to npm.

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

after publish, sync to npm.taobao

open https://npm.taobao.org/sync/alita