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) {
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)
@ -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']);
};