Permalink
Browse files

lint fixes

  • Loading branch information...
1 parent db2aa79 commit 70db77f72c4b50f7aca92a9762ad6f24f5c2588f @fnagel committed Aug 11, 2013
Showing with 39 additions and 24 deletions.
  1. +39 −24 Gruntfile.js
View
@@ -1,61 +1,76 @@
module.exports = function (grunt) {
grunt.initConfig({
- pkg : grunt.file.readJSON('package.json'),
+ pkg : grunt.file.readJSON("package.json"),
concat : {
options : {
- separator : ';',
- banner : '/*! v<%= pkg.version %> - <%= grunt.template.today("dd-mm-yyyy HH:MM") %> */\n'
+ separator : ";",
+ banner : "/*! v<%= pkg.version %> - <%= grunt.template.today('dd-mm-yyyy HH:MM') %> */\n"
},
dist : {
- src : ['selectmenu/**/*.js'],
- dest : 'dist/<%= pkg.name %>-<%= pkg.version %>.js'
+ src : ["selectmenu/**/*.js"],
+ dest : "dist/<%= pkg.name %>-<%= pkg.version %>.js"
}
},
uglify : {
options: {
- report: 'min',
- preserveComments : 'some'
-
+ report: "min",
+ preserveComments : "some"
+
},
dist : {
files : {
- 'dist/<%= pkg.name %>-<%= pkg.version %>.min.js' : ['<%= concat.dist.dest %>']
+ "dist/<%= pkg.name %>-<%= pkg.version %>.min.js" : ["<%= concat.dist.dest %>"]
}
}
},
- jshint : {
- files : ['gruntfile.js', 'selectmenu/**/*.js'],
+ jshint : {
+ files : ["gruntfile.js", "selectmenu/**/*.js"],
options : {
- globals : {
- jQuery : true
+ "boss": true,
+ "curly": true,
+ "eqeqeq": true,
+ "eqnull": true,
+ "expr": true,
+ "immed": true,
+ "noarg": true,
+ "onevar": true,
+ "quotmark": "double",
+ "smarttabs": true,
+ "trailing": true,
+ "undef": true,
+ "unused": true,
+ "node": true,
+ "browser": true,
+ "globals": {
+ "jQuery": true
}
}
},
compress: {
main: {
options: {
- archive: '<%= pkg.name %>-<%= pkg.version %>.zip'
+ archive: "<%= pkg.name %>-<%= pkg.version %>.zip"
},
files: [
- { src: ['./**', '!./node_modules/**', '!./*.zip'], dest: '<%= pkg.name %>-<%= pkg.version %>/' }
+ { src: ["./**", "!./node_modules/**", "!./*.zip"], dest: "<%= pkg.name %>-<%= pkg.version %>/" }
]
}
},
watch : {
- files : ['<%= jshint.files %>'],
- tasks : ['jshint']
+ files : ["<%= jshint.files %>"],
+ tasks : ["jshint"]
}
});
- grunt.loadNpmTasks('grunt-contrib-uglify');
- grunt.loadNpmTasks('grunt-contrib-jshint');
- grunt.loadNpmTasks('grunt-contrib-watch');
- grunt.loadNpmTasks('grunt-contrib-concat');
- grunt.loadNpmTasks('grunt-contrib-compress');
+ grunt.loadNpmTasks("grunt-contrib-uglify");
+ grunt.loadNpmTasks("grunt-contrib-jshint");
+ grunt.loadNpmTasks("grunt-contrib-watch");
+ grunt.loadNpmTasks("grunt-contrib-concat");
+ grunt.loadNpmTasks("grunt-contrib-compress");
- grunt.registerTask('test', ['jshint']);
+ grunt.registerTask("test", ["jshint"]);
- grunt.registerTask('default', ['jshint', 'concat', 'uglify', 'compress']);
+ grunt.registerTask("default", ["jshint", "concat", "uglify", "compress"]);
};

0 comments on commit 70db77f

Please sign in to comment.