Local Development
September 26, 2018 ยท View on GitHub
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 thedistdir, ready for publishingnpm run build-example- builds the example app specified in theENTRYenvironment variable, defaulting tosimplenpm run dev- builds the library, then builds and runs the example app specified in theENTRYenvironment variable, defaulting tosimplenpm test- lints the source code (includingexample) and runs the unit tests. Append-- --watchto enter Jest's watch mode
For more information on the example apps, consult the README in the example folder.