To install dependencies and run the initial build:
npm install
To 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 here
To watch for changes:
gulp watch
Default does these steps:
- Build will compile all the ES6 in
app
into ES5 files indist/src
- Bundle will bundle (and compile) all the ES6 in
app
into the bundledist/build/bundle.js
- Migrate will copy all files from
public
todist/build
- Compile will compile
app/styles/main.less
todist/build/main.css
pick
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.