- npm
- Grunt
npm install -g grunt-cli
Clone the projects and set them up in the structure below
Some working folder
├─ OpenNote
├─ OpenNote-SharedServices
├─ OpenNote-Docker
└─ OpenNote-CLI
cd
into the OpenNote
Run npm install
to fetch and install dependencies
Then rungrunt
this will start a webpack dev server and open your browser.
To test production bundles run grunt testDeploy
.
You can see a full list of commands by running grunt --help
.
Below are the most important commands
grunt default
orgrunt
to have webpack in development modegrunt ci
run linting and testsgrunt deploy
Package up the project into thedist
folder. Creates a zip with the version number that can be uploaded to Github.
To develop tests
grunt # in terminal A
npm run testSingle # in terminal B. Iterate on this terminal