From 9ee1490aa319ab4ea91b23d11bfad3bdf2d6a748 Mon Sep 17 00:00:00 2001 From: Peter Cottle Date: Fri, 7 Dec 2012 11:36:29 -0800 Subject: [PATCH] with grunt --- grunt.js | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/grunt.js b/grunt.js index 899f29a3..e24e02cf 100644 --- a/grunt.js +++ b/grunt.js @@ -1,10 +1,32 @@ /*global module:false*/ module.exports = function(grunt) { + // eventually have sound...? + grunt.registerTask('compliment', function() { + grunt.log.writeln('You are awesome!'); + }); + grunt.initConfig({ lint: { files: ['grunt.js', 'src/*.js'] }, + /* + jasmine_node: { + specNameMatcher: "./spec", // load only specs containing specNameMatcher + projectRoot: ".", + requirejs: false, + forceExit: true, + jUnit: { + report: false, + savePath : "./build/reports/jasmine/", + useDotNotation: true, + consolidate: true + } + }, + watch: { + files: '', + tasks: 'lint' + },*/ jshint: { options: { curly: true, @@ -33,6 +55,9 @@ module.exports = function(grunt) { } }); + //grunt.loadNpmTasks('grunt-jasmine-node'); + // Default task. - grunt.registerTask('default', 'lint'); + grunt.registerTask('default', 'lint jasmine_node'); }; +