grunt materials

This commit is contained in:
Anton Georgiev 2014-10-02 17:14:41 +00:00
parent c18bc6bf87
commit 7656bd6ba2
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,36 @@
/* 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']);
};

View File

@ -0,0 +1,10 @@
GRUNT
Install all the dependencies (including grunt):
$ npm install
Running Grunt:
-for the default:
$ grunt

View File

@ -0,0 +1,14 @@
{
"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"
}
}