Add jshint to grunt exec
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
],
|
||||
|
||||
"node" : true,
|
||||
"es5" : true,
|
||||
"browser" : true,
|
||||
|
||||
"boss" : true,
|
||||
|
||||
@@ -2,6 +2,16 @@ module.exports = function(grunt) {
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
|
||||
jshint: {
|
||||
options: {
|
||||
jshintrc: '.jshintrc',
|
||||
force: true
|
||||
},
|
||||
files: [
|
||||
'lib/**/!(parser|browser-prefix|browser-suffix).js'
|
||||
]
|
||||
},
|
||||
|
||||
concat: {
|
||||
options: {
|
||||
banner: '/*!\n\n <%= pkg.name %> v<%= pkg.version %>\n\n<%= grunt.file.read("LICENSE") %>\n@license\n*/\n',
|
||||
@@ -55,6 +65,7 @@ module.exports = function(grunt) {
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-concat');
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
|
||||
grunt.registerTask('dist-dir', function() {
|
||||
|
||||
Vendored
+2
@@ -844,6 +844,8 @@ Handlebars.Utils = {
|
||||
},
|
||||
|
||||
escapeExpression: function(string) {
|
||||
/*jshint eqnull: true */
|
||||
|
||||
// don't escape SafeStrings, since they're already safe
|
||||
if (string instanceof Handlebars.SafeString) {
|
||||
return string.toString();
|
||||
|
||||
Vendored
+2
@@ -233,6 +233,8 @@ Handlebars.Utils = {
|
||||
},
|
||||
|
||||
escapeExpression: function(string) {
|
||||
/*jshint eqnull: true */
|
||||
|
||||
// don't escape SafeStrings, since they're already safe
|
||||
if (string instanceof Handlebars.SafeString) {
|
||||
return string.toString();
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
/*global Handlebars: true */
|
||||
|
||||
var handlebars = require("./handlebars/base"),
|
||||
|
||||
// Each of these augment the Handlebars object. No need to setup here.
|
||||
|
||||
@@ -50,6 +50,8 @@ Handlebars.Utils = {
|
||||
},
|
||||
|
||||
escapeExpression: function(string) {
|
||||
/*jshint eqnull: true */
|
||||
|
||||
// don't escape SafeStrings, since they're already safe
|
||||
if (string instanceof Handlebars.SafeString) {
|
||||
return string.toString();
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
"dust": "~0.3",
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-contrib-concat": "~0.3.0",
|
||||
"grunt-contrib-jshint": "~0.6.3",
|
||||
"grunt-contrib-uglify": "~0.2.2",
|
||||
"jison": "~0.3",
|
||||
"mocha": "*",
|
||||
|
||||
Reference in New Issue
Block a user