A boilerplate CrowdProcess Program
With the usual environment and grunt tasks set up to kickstart a CrowdProcess Program development.
You'll need to use node v0.10.x because of grunt-browserify
- Clone the grunt-init template with
git clone firstname.lastname@example.org:CrowdProcess/program-boilerplate.git ~/.grunt-init/crowdprocess-program
npm install grunt-init -g
- Go to where you'd like to create your project, init your init, and answer some questions:
cd path/to/project grunt-init crowdprocess-program
- If everything went well, you have everything you need. Now you only have to
npm install grunt
- Edit whatever you want in the
srcdirectory, but remember that the
program.jsfile must export the
Runfunction. Always run
gruntafter you edit stuff in
src, or run
grunt watchand leave it there.
What's baked in ?
- tape and testling
Run your tests with
npm test. It uses tape, which is similar to tap but meant to be ran both in node and the browser. There's a
testling key in
package.json to run every test in
test/ in the minimum version of the browsers supported by CrowdProcess. If they pass, you're ready ;)
If you run
grunt debug, it will build source maps, so even inside the bundle, you'll know from which file uncaught exceptions come from.
- Test testling with the git hook
- Perhaps make a
tapeGrunt task to make it part of