From f3453918c164d32cc81e16cd0381004437c91fe4 Mon Sep 17 00:00:00 2001 From: Vince Date: Sat, 28 Sep 2013 19:06:35 +0200 Subject: [PATCH] Fix typo + plugin compile step in Travis --- Gruntfile.js | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 97cf8eb6..a7b95505 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -11,7 +11,6 @@ */ module.exports = function(grunt) { - var piskelScripts = require('./piskel-script-list.js').scripts; var getGhostConfig = function (delay) { return { @@ -88,8 +87,7 @@ module.exports = function(grunt) { closureCompiler: { options: { // [REQUIRED] Path to closure compiler - compilerFile: process.env.CLOSURE_COMPILER_FILEPATH ? - process.env.CLOSURE_COMPILER_FILEPATH : 'closure_compiler_20130823.jar', + compilerFile: 'closure_compiler_20130823.jar', // [OPTIONAL] set to true if you want to check if files were modified // before starting compilation (can save some time in large sourcebases) @@ -108,20 +106,20 @@ module.exports = function(grunt) { * Following are some directive samples... */ //compilation_level: 'ADVANCED_OPTIMIZATIONS', - compilation_level: 'SIMPLE_OPTIMIZATIONS', - //externs: ['path/to/file.js', '/source/**/*.js'], - define: ["'goog.DEBUG=false'"], - warning_level: 'verbose', - jscomp_off: ['checkTypes', 'fileoverviewTags'], - summary_detail_level: 1, - output_wrapper: '"(function(){%output%}).call(this);"' + compilation_level: 'SIMPLE_OPTIMIZATIONS', + //externs: ['path/to/file.js', '/source/**/*.js'], + define: ["'goog.DEBUG=false'"], + warning_level: 'verbose', + jscomp_off: ['checkTypes', 'fileoverviewTags'], + summary_detail_level: 1, + output_wrapper: '"(function(){%output%}).call(this);"' }, execOpts: { // [OPTIONAL] Set exec method options /** * Set maxBuffer if you got message "Error: maxBuffer exceeded." * Node default: 200*1024 */ - maxBuffer: 999999 * 1024 + maxBuffer: 999999 * 1024 } }, @@ -175,12 +173,12 @@ module.exports = function(grunt) { // Validate & Test (faster version) will NOT work on travis !! grunt.registerTask('precommit', ['leadingIndent:jsFiles', 'leadingIndent:cssFiles', 'jshint', 'connect:test', 'ghost:local']); - // Validate & Build - grunt.registerTask('default', ['leadingIndent:jsFiles', 'leadingIndent:cssFiles', 'jshint', 'concat', 'uglify']); - // Compile JS code (eg verify JSDoc annotation and types, no actual minified code generated). grunt.registerTask('compile', ['closureCompiler:compile']); + // Validate & Build + grunt.registerTask('default', ['leadingIndent:jsFiles', 'leadingIndent:cssFiles', 'jshint', 'concat', 'uglify', 'compile']); + // Start webserver grunt.registerTask('serve', ['connect:serve']); };