This repository was archived by the owner on Sep 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Grunt Setup
Peter Flynn edited this page Jun 6, 2014
·
8 revisions
This is a subset of the steps needed to generate a Brackets release build.
- Install Node 0.8.x or newer http://nodejs.org/download/
- Run
npm install -g grunt-clito install the GruntJS command line interface - Run
npm install -g jasmine-nodeto install the jasmine-node test runner - Run
npm installfrom the root of the brackets git repo - Run
grunt
-
grunt jshintRun JSHINT on all/srcand/testfiles as well as theGruntfile.js -
grunt jasmineRun headless Jasmine tests -
grunt jasmine-nodeto run the Node tests -
grunt testRun JSHINT and Jasmine if JSHINT completes without errors -
grunt watchWatch for file changes, then run JSHINT and Jasmine
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.
Node-based tests are also good candidates to run via Grunt. Look at the jasmine-node task in Gruntfile.js.
-
grunt write-configAutomatically run afternpm installto updatesrc/config.json -
grunt installSeewrite-config