WordPress.org

Make WordPress Core

Changeset 26977


Ignore:
Timestamp:
01/17/2014 06:14:15 PM (6 years ago)
Author:
wonderboymusic
Message:

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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r26876 r26977  
    296296            }
    297297        },
     298        jsvalidate:{
     299            options:{
     300                globals: {},
     301                esprimaOptions:{},
     302                verbose: false
     303            },
     304            build: {
     305                files: {
     306                    src: BUILD_DIR + '/**/*.js'
     307                }
     308            }
     309        },
    298310        watch: {
    299311            all: {
     
    345357    // Build task.
    346358    grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core', 'colors', 'rtl', 'cssmin:rtl', 'cssmin:colors',
    347         'uglify:core', 'concat:tinymce', 'compress:tinymce', 'clean:tinymce']);
     359        'uglify:core', 'concat:tinymce', 'compress:tinymce', 'clean:tinymce', 'jsvalidate:build']);
    348360
    349361    // Testing tasks.
  • trunk/package.json

    r26940 r26977  
    2222    "grunt-cssjanus": "git://github.com/yoavf/grunt-cssjanus.git#e0158f4087d1c4bb5a8d1648a63ef133338b5879",
    2323    "grunt-sass": "~0.8.0",
     24    "grunt-jsvalidate": "~0.2.2",
    2425    "matchdep": "~0.1.2"
    2526  }
Note: See TracChangeset for help on using the changeset viewer.