This project requires Grunt to use the requirerd Grunt Plugins and run the specified tasks.
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins.
Generate the projects documentation. Subsequently running clean:docs
and jsduck
tasks.
Build the project. Subsequently running jshint
, clean:dist
, chromeManifest:dist
, exec:dev
and copy:dev
tasks.
Run the tests. Subsequently running connect
task.
Build the project. Subsequently running jshint
, clean:dist
, chromeManifest:dist
, exec:production
, imagemin
, copy:dist
, compress
and docs
tasks.
Watch the project for changes triggeering the grunt dev
task.
See grunt build
task.
Subtasks are split into seperate files inside grunt/
.
Create the Chrome Dev Tools manifest.json
file.
Read more on:
- target
clean:dist
cleans thedist/
directory. Automatically run forbuild
,dev
andwatch
tasks. - target
clean:docs
cleans thedocs/
directory. Automatically run fordocs
andbuild
tasks.
NOTE: You don't need to run this task or its targets manually.
Read more on:
Compress dist/
to package/AppInspector.zip
.
Read more on:
Copy resources from app/
and app/AppInspector/build/production/AI
to dist/
.
- target
copy:dist
forgrunt build
orgrunt
tasks. - target
copy:dev
forgrunt:dev
task.
Read more on:
Task to run
- target
exec:dev
sencha -q app build -e testing -c
- target
exec:production
sencha -q app build -e production
commands.
Read more on:
- http://docs.sencha.com/extjs/4.2.1/#!/guide/command_reference
- https://www.npmjs.org/package/grunt-exec
Generates a git pre-commit hook to run the jshint
task on every commit, aborting the commit if any linting errors exist.
NOTE: Only run this task once manually using grunt githooks
or if adding new hooks.
Read more on:
Optimise, compress and copy image assets.
Read more on:
Generate duckumentation!
Read more on:
Lint Gruntfile.js
, app/AppInspector/app.js
and all *.js files in
app/AppInspector/app/. It uses the
.jshintrc` file containing the linting rules.
Read more on:
Start a connect web server for running the tests on Siesta Lite. It opens the Siesta's test page in your default browser.
The port number will be used in 8333, but if you have already used it, please change it as you like.
Read more on: