Skip to content

Commit

Permalink
fixed spacing to satisfy lint tests.
Browse files Browse the repository at this point in the history
Added 'test' target for grunt since Travis CI was calling npm test that called grunt test... but 'test' did not exist in the gruntfile.
  • Loading branch information
Kendrick Burson committed Aug 8, 2013
1 parent 11114d8 commit b9b9b7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ module.exports = (grunt) ->
# Default task.
grunt.registerTask 'default', 'coffeelint'

grunt.registerTask 'test', 'coffeelint'

grunt.registerTask 'release', 'Bump version, push to NPM.', (type)->
grunt.task.run ["bump: #{type || 'patch'}",'npm-publish']
15 changes: 7 additions & 8 deletions tasks/coffeelint.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ module.exports = function(grunt) {
var options = this.options();

if (options.configFile != undefined) {
var config = grunt.file.readJSON(options.configFile);
options.configFile = undefined;
for (var key in options) {
config[key] = options[key];
}
options = config;
var config = grunt.file.readJSON(options.configFile);
options.configFile = undefined;
for (var key in options) {
config[key] = options[key];
}
options = config;
}

files.forEach(function(file) {
Expand Down Expand Up @@ -53,8 +53,7 @@ module.exports = function(grunt) {
}

if (!warnCount) {
grunt.log.ok(files.length + ' file' + (files.length === 1 ? '' : 's') +
' lint free.');
grunt.log.ok(files.length + ' file' + (files.length === 1 ? '' : 's') + ' lint free.');
}
});
};

0 comments on commit b9b9b7f

Please sign in to comment.