Fix typo + plugin compile step in Travis

This commit is contained in:
Vince 2013-09-28 19:06:35 +02:00
parent 2f9b75fe5e
commit f3453918c1

View File

@ -11,7 +11,6 @@
*/ */
module.exports = function(grunt) { module.exports = function(grunt) {
var piskelScripts = require('./piskel-script-list.js').scripts; var piskelScripts = require('./piskel-script-list.js').scripts;
var getGhostConfig = function (delay) { var getGhostConfig = function (delay) {
return { return {
@ -88,8 +87,7 @@ module.exports = function(grunt) {
closureCompiler: { closureCompiler: {
options: { options: {
// [REQUIRED] Path to closure compiler // [REQUIRED] Path to closure compiler
compilerFile: process.env.CLOSURE_COMPILER_FILEPATH ? compilerFile: 'closure_compiler_20130823.jar',
process.env.CLOSURE_COMPILER_FILEPATH : 'closure_compiler_20130823.jar',
// [OPTIONAL] set to true if you want to check if files were modified // [OPTIONAL] set to true if you want to check if files were modified
// before starting compilation (can save some time in large sourcebases) // before starting compilation (can save some time in large sourcebases)
@ -175,12 +173,12 @@ module.exports = function(grunt) {
// Validate & Test (faster version) will NOT work on travis !! // Validate & Test (faster version) will NOT work on travis !!
grunt.registerTask('precommit', ['leadingIndent:jsFiles', 'leadingIndent:cssFiles', 'jshint', 'connect:test', 'ghost:local']); 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). // Compile JS code (eg verify JSDoc annotation and types, no actual minified code generated).
grunt.registerTask('compile', ['closureCompiler:compile']); grunt.registerTask('compile', ['closureCompiler:compile']);
// Validate & Build
grunt.registerTask('default', ['leadingIndent:jsFiles', 'leadingIndent:cssFiles', 'jshint', 'concat', 'uglify', 'compile']);
// Start webserver // Start webserver
grunt.registerTask('serve', ['connect:serve']); grunt.registerTask('serve', ['connect:serve']);
}; };