diff --git a/labs/meteor-client/Gruntfile.js b/labs/meteor-client/Gruntfile.js new file mode 100644 index 0000000000000000000000000000000000000000..93b53eadad0278905ca86092bb62f75cabc183ac --- /dev/null +++ b/labs/meteor-client/Gruntfile.js @@ -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']); +}; diff --git a/labs/meteor-client/grunt-instructions.txt b/labs/meteor-client/grunt-instructions.txt new file mode 100644 index 0000000000000000000000000000000000000000..90d57a5345088f9ecd952456e0761dc6395fa1c8 --- /dev/null +++ b/labs/meteor-client/grunt-instructions.txt @@ -0,0 +1,10 @@ +GRUNT + +Install all the dependencies (including grunt): +$ npm install + +Running Grunt: +-for the default: +$ grunt + + diff --git a/labs/meteor-client/package.json b/labs/meteor-client/package.json new file mode 100644 index 0000000000000000000000000000000000000000..65873d355a91fd03401c77e05639524182bf7436 --- /dev/null +++ b/labs/meteor-client/package.json @@ -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" + } +} +