Skip to content
Snippets Groups Projects
Commit 7656bd6b authored by Anton Georgiev's avatar Anton Georgiev
Browse files

grunt materials

parent c18bc6bf
No related branches found
No related tags found
No related merge requests found
/* jshint node: true */
'use strict';
module.exports = function(grunt) {
// configure Grunt
grunt.initConfig({
// files to lint with the JSHint task
jshint: {
files: {
src: [
'Gruntfile.js'
]
}
},
coffeelint: {
files: {
src: [
'**/*.coffee',
'!node_modules/**/*',
'!.meteor/**/*',
'!packages/**/*'
]
}
}
});
// load the module containing the JSHint task
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-coffeelint');
// register a default task to run JSHint
// (allows `grunt` rather than `grunt jshint`)
grunt.registerTask('default', ['jshint', 'coffeelint']);
};
GRUNT
Install all the dependencies (including grunt):
$ npm install
Running Grunt:
-for the default:
$ grunt
{
"name": "BBB-HTML-CLIENT",
"scripts": {
"start": "meteor"
},
"devDependencies": {
"coffeelint": "^1.6.0",
"grunt": "^0.4.5",
"grunt-coffeelint": "0.0.13",
"grunt-contrib-coffee": "^0.11.1",
"grunt-contrib-jshint": "^0.10.0"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment