This project is organized with Lerna to manage more than one module in a single project.
npm install
npm run bootstrap
Those two commands install all dependencies in each package.
We provide a small example project within Crafty to experiment with features not covered by integration tests. You can tweak the configuration in any way you like in this project.
cd experiment
npm install
Then you can run one of
npm run build
to build the project oncenpm run test
to execute the testsnpm run watch
to run the compilation in watch mode
npm run jest
Tests are mainly integration tests in the packages/integration
directory.
Those tests do a run of the configuration with different combinations of configuration and presets and register the results in snapshots.
Update the version number in package.json
export NODE_TLS_REJECT_UNAUTHORIZED=0
export YARN_PLUGNPLAY_OVERRIDE=0
# Do a proper install
rm -rf node_modules yarn.lock .pnp .pnp.js packages/*/node_modules
yarn install
yarn build
# Run tests
yarn test
# Release a canary version to test in a project
yarn publish:canary -- --new-version 1.12.0-beta.0
# -> Test inside one or more projects
yarn publish:all