summaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-12-01 15:40:08 -0600
committerkpdecker <kpdecker@gmail.com>2013-12-01 15:40:08 -0600
commitf17cb3ecac8f211c2e7952bae80385197863fd4f (patch)
tree0864a9b6252eaea0438bbc5c43c79e5649ebd2a4 /Gruntfile.js
parent86974b26604c54225c0b734bca0696fd4492f2d7 (diff)
downloadhandlebars.js-f17cb3ecac8f211c2e7952bae80385197863fd4f.zip
handlebars.js-f17cb3ecac8f211c2e7952bae80385197863fd4f.tar.gz
handlebars.js-f17cb3ecac8f211c2e7952bae80385197863fd4f.tar.bz2
Run jshint on output
Allows us to execute jshint in non-forced mode.
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index fae5486..27e35c1 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -7,11 +7,10 @@ module.exports = function(grunt) {
jshint: {
options: {
- jshintrc: '.jshintrc',
- force: true
+ jshintrc: '.jshintrc'
},
files: [
- 'lib/**/!(parser).js'
+ 'dist/**/!(*.min|parser).js'
]
},
@@ -116,17 +115,17 @@ module.exports = function(grunt) {
// Build a new version of the library
this.registerTask('build', "Builds a distributable version of the current project", [
- 'jshint',
'clean',
'parser',
'node',
- 'globals']);
+ 'globals',
+ 'jshint']);
this.registerTask('amd', ['packager:amd', 'requirejs']);
this.registerTask('node', ['packager:cjs']);
this.registerTask('globals', ['packager:global']);
- this.registerTask('release', 'Build final packages', ['amd', 'uglify', 'copy:dist', 'copy:components', 'copy:cdnjs']);
+ this.registerTask('release', 'Build final packages', ['amd', 'jshint', 'uglify', 'copy:dist', 'copy:components', 'copy:cdnjs']);
// Load tasks from npm
grunt.loadNpmTasks('grunt-contrib-clean');