Notice:
y
is the alias foryarn
,n
is the alias fornpm
.
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
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