Add jsvalidate as a dependency to the build. To get the new module, run npm install in the root of the project.

Fixes #26615.
Props jorbin.



git-svn-id: https://develop.svn.wordpress.org/trunk@26977 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-01-17 18:14:15 +00:00
parent 1a4a017923
commit 9b9de4ee1f
2 changed files with 14 additions and 1 deletions

View File

@ -295,6 +295,18 @@ module.exports = function(grunt) {
dest: BUILD_DIR + 'wp-includes/js/tinymce/wp-tinymce.js.gz'
}
},
jsvalidate:{
options:{
globals: {},
esprimaOptions:{},
verbose: false
},
build: {
files: {
src: BUILD_DIR + '/**/*.js'
}
}
},
watch: {
all: {
files: [
@ -344,7 +356,7 @@ module.exports = function(grunt) {
// Build task.
grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core', 'colors', 'rtl', 'cssmin:rtl', 'cssmin:colors',
'uglify:core', 'concat:tinymce', 'compress:tinymce', 'clean:tinymce']);
'uglify:core', 'concat:tinymce', 'compress:tinymce', 'clean:tinymce', 'jsvalidate:build']);
// Testing tasks.
grunt.registerMultiTask('phpunit', 'Runs PHPUnit tests, including the ajax and multisite tests.', function() {

View File

@ -21,6 +21,7 @@
"grunt-contrib-jshint": "~0.7.0",
"grunt-cssjanus": "git://github.com/yoavf/grunt-cssjanus.git#e0158f4087d1c4bb5a8d1648a63ef133338b5879",
"grunt-sass": "~0.8.0",
"grunt-jsvalidate": "~0.2.2",
"matchdep": "~0.1.2"
}
}