mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Adding notes to run Grunt tasks
This commit is contained in:
parent
fba6693426
commit
ec996d80b4
13
Gruntfile.js
13
Gruntfile.js
@ -1,3 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* How to run grunt tasks:
|
||||||
|
* - At project root, run 'npm install' - It will install nodedependencies declared in package,json in <root>/.node_modules
|
||||||
|
* - install grunt CLI tools globally, run 'npm install -g grunt-cli'
|
||||||
|
* - run a grunt target defined in Gruntfiles.js, ex: 'grunt lint'
|
||||||
|
*
|
||||||
|
* Note: The 'ghost' grunt task have special deps on CasperJS and phantomjs.
|
||||||
|
* For now, It's configured to run only on TravisCI where these deps are
|
||||||
|
* correctly defined.
|
||||||
|
* If you run this task locally, it may require some env set up first.
|
||||||
|
*/
|
||||||
|
|
||||||
module.exports = function(grunt) {
|
module.exports = function(grunt) {
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
jshint: {
|
jshint: {
|
||||||
@ -45,5 +57,4 @@ module.exports = function(grunt) {
|
|||||||
|
|
||||||
grunt.registerTask('lint', ['jshint']);
|
grunt.registerTask('lint', ['jshint']);
|
||||||
grunt.registerTask('test', ['jshint', 'connect', 'ghost']);
|
grunt.registerTask('test', ['jshint', 'connect', 'ghost']);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user