Grunt Setup - adobe-research/brackets GitHub Wiki
- Install Node 0.8.x http://nodejs.org/download/
- Run
npm install -g grunt-clito install the GruntJS command line interface - Run
npm installfrom the root of the brackets git repo - Run
grunt
Development Task Details
grunt jshintRun JSHINT on all/srcand/testfiles as well as theGruntfile.jsgrunt jasmineRun headless Jasmine testsgrunt testRun JSHINT and Jasmine if JSHINT completes without errorsgrunt watchWatch for file changes, then run JSHINT and Jasmine
Adding Unit Tests
Non-integration tests (typically tests that don't require a full Brackets instance running) are candidates to run headless via PhantomJS. The headless tests use a separate spec runner that is configured in Gruntfile.js. To add new tests, modify the config object, find the specs property and add the path to the spec file (e.g. test/spec/MyFeature.js to the array of specs.
Misc. Tasks
grunt write-configAutomatically run afternpm installto updatesrc/config.jsongrunt installSeewrite-config