Skip to content

Commit

Permalink
Add jsvalidate to grunt build process
Browse files Browse the repository at this point in the history
  • Loading branch information
starwed committed Aug 11, 2013
1 parent b4cd71d commit 61f7de1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module.exports = function (grunt) {
' * Copyright <%= grunt.template.today("yyyy") %>, <%= pkg.author.name %>\n' +
' * Dual licensed under the MIT or GPL licenses.\n' +
' */\n\n';


var getFiles = function (){
return fileList
Expand Down Expand Up @@ -69,23 +68,28 @@ module.exports = function (grunt) {
'tests/math.html']
},

jsvalidate: {
files: "crafty.js"
},

});

// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-jsvalidate');

// Defined tasks for Crafty
grunt.registerTask('api', "Generate api documentation", docGen)


// Default task.
grunt.registerTask('default', ['concat']);
grunt.registerTask('default', ['concat', 'jsvalidate']);

// Task chains
grunt.registerTask('check', ['concat', 'qunit', 'jshint'])
grunt.registerTask('check', ['concat', 'jsvalidate', 'qunit', 'jshint'])
grunt.registerTask('release', ['concat', 'uglify', 'api']);


Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"grunt-contrib-concat": "0.3.0",
"grunt-contrib-jshint": "0.5.2",
"grunt-contrib-qunit": "0.2.1",
"grunt-jsvalidate": "0.2.1",
"marked": "0.2.9",
"coffee-script": "1.6.3"
}
Expand Down

0 comments on commit 61f7de1

Please sign in to comment.