grunt materials
This commit is contained in:
parent
c18bc6bf87
commit
7656bd6ba2
36
labs/meteor-client/Gruntfile.js
Normal file
36
labs/meteor-client/Gruntfile.js
Normal 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']);
|
||||
};
|
10
labs/meteor-client/grunt-instructions.txt
Normal file
10
labs/meteor-client/grunt-instructions.txt
Normal file
@ -0,0 +1,10 @@
|
||||
GRUNT
|
||||
|
||||
Install all the dependencies (including grunt):
|
||||
$ npm install
|
||||
|
||||
Running Grunt:
|
||||
-for the default:
|
||||
$ grunt
|
||||
|
||||
|
14
labs/meteor-client/package.json
Normal file
14
labs/meteor-client/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user