A collection of pies. These packages are pie packages in that they have an optional configure and/or controller sub package.
yarn install # install monorepo dependencies
lerna bootstrap # symlinks any dependencies, uses yarn workspaces to speed up installFor some of the scripts you'll need the pie cli installed (note that you must use npm to install this)
npm install -g pie| Action | Notes |
|---|---|
| test | runs all the tests, all tests run from the root of the monorepo |
| build | build the libs |
| lint | runs eslint |
| clean | removes all the lib dirs |
| release | cleans, runs tests, builds, then runs lerna publish |
| pie-clean | cleans out the docs/demo dir |
| pie-install | installs in the docs/demo dir |
| pie-pack-clean | cleans out the docs/demo dir + any generated assets from a pie pack |
| scripts/info $pkg | run pie info for a package, with watch enabled |
when building make sure all watchers are disabled - we had an issue where a watcher was corrupting the build.
Each package need to be built w/ babel before you can use it.
The following script:
scripts/info $packageWill run a watched babel process and the run pie info.
You need to have
pie>=10.1.1installed |npm install -g pie.
All tests are run from the root of the repo.
Don't add any test
devDependenciesorjest.config.jsetc in the packages - it's unnecessary and can break the tests.
npm testyarn lerna publish --canary --dist-tag $TAG --preid $TAG --force-publishWe use circleci - see .circleci/config.yml