To build Wax and to run the example apps locally, you'll first need to run these commands in your terminal
git clone https://github.com/jamesseanwright/wax.git # or fork and use SSH if submitting a PR
cd wax
npm i
Then you can run one of the following scripts:
npm run build
- builds the library and outputs it to thedist
dir, ready for publishingnpm run build-example
- builds the example app specified in theENTRY
environment variable, defaulting tosimple
npm run dev
- builds the library, then builds and runs the example app specified in theENTRY
environment variable, defaulting tosimple
npm test
- lints the source code (includingexample
) and runs the unit tests. Append-- --watch
to enter Jest's watch mode
For more information on the example apps, consult the README in the example
folder.