WordPress.org

Make WordPress Core

Changeset 27176


Ignore:
Timestamp:
02/13/2014 05:56:29 PM (8 years ago)
Author:
nacin
Message:

Add grunt precommit for running front-end dev and test tasks before commit.

This includes autoprefixer, imagemin, jshint, and qunit.

props jorbin.
fixes #27121. see #25169 and #27078.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r27175 r27176  
    400400    grunt.registerTask('colors', ['sass:colors', 'autoprefixer:colors']);
    401401
     402    // Pre-commit task.
     403    grunt.registerTask('precommit', 'Runs front-end dev/test tasks in preparation for a commit.',
     404        ['autoprefixer:core', 'imagemin:core', 'jshint', 'qunit:compiled']);
     405
    402406    // Build task.
    403407    grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core', 'colors', 'rtl', 'cssmin:rtl', 'cssmin:colors',
Note: See TracChangeset for help on using the changeset viewer.