To install dependencies and run the initial build:
npm installTo start the server:
export GOODYBAG_SID=... # paste your connect.sid cookie here
export GOODYBAG_API=https://www.goodybag.com/api # or http://localhost:3000/api
export GOODYBAG_ORDER_ID=... # paste an order id here
node dist/app/server.js # you can also use nodemon hereTo watch for changes:
gulp watchDefault does these steps:
- Build will compile all the ES6 in
appinto ES5 files indist/src - Bundle will bundle (and compile) all the ES6 in
appinto the bundledist/build/bundle.js - Migrate will copy all files from
publictodist/build - Compile will compile
app/styles/main.lesstodist/build/main.csspick
Watch will watch and re-do all the things above when something changes.
Running npm test or simply mocha will run the test suite. If you want to
have a tigher TDD-loop, or you just want your tests to run more rapidly, then
start mocha in watch-mode with mocha -w. Try out the -R min reporter.
See our best practices page on the wiki.