forked from trheyi/Ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
Grunt Toolkit
Hannah Wolfe edited this page Aug 29, 2013
·
15 revisions
[coming soon]
The default grunt task does two things:
- compile sass into css
- compile the templates in
core/client/tplinto thehbs-tpl.jsfile
These are commonly needed after pulling changes from master, so it's recommended to always do it after a pull as a matter of habit.
If you have a fresh repo and are running grunt for the first time, you'll need to run grunt init rather than just grunt as this also installs bourbon. This only has to be done once on a repo.
grunt validate runs 3 sets of tests: jsLint, mocha unit tests and casperjs functional tests.
This can take a while, so it makes sense to run the individual sections if you're working on specific things.
-
grunt jslintwill run just the linter -
grunt mochacli:allwill run all of the unit tests,grunt mochacli:apiwill run the data model unit tests which are incorrectly labeled api, seemochacliconfig inGruntfile.jsfor a full set of the individual groups of tests which can be run and feel free to add your own. -
grunt test functionalwill run the functional tests