From 7656bd6ba2e4519ddcf146318fb7242534db7673 Mon Sep 17 00:00:00 2001 From: Anton Georgiev Date: Thu, 2 Oct 2014 17:14:41 +0000 Subject: [PATCH] grunt materials --- labs/meteor-client/Gruntfile.js | 36 +++++++++++++++++++++++ labs/meteor-client/grunt-instructions.txt | 10 +++++++ labs/meteor-client/package.json | 14 +++++++++ 3 files changed, 60 insertions(+) create mode 100644 labs/meteor-client/Gruntfile.js create mode 100644 labs/meteor-client/grunt-instructions.txt create mode 100644 labs/meteor-client/package.json diff --git a/labs/meteor-client/Gruntfile.js b/labs/meteor-client/Gruntfile.js new file mode 100644 index 0000000000..93b53eadad --- /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 0000000000..90d57a5345 --- /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 0000000000..65873d355a --- /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" + } +} +