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. git-svn-id: https://develop.svn.wordpress.org/trunk@27176 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
562046753d
commit
f1e7635a2d
@ -399,6 +399,10 @@ module.exports = function(grunt) {
|
||||
// Color schemes task.
|
||||
grunt.registerTask('colors', ['sass:colors', 'autoprefixer:colors']);
|
||||
|
||||
// Pre-commit task.
|
||||
grunt.registerTask('precommit', 'Runs front-end dev/test tasks in preparation for a commit.',
|
||||
['autoprefixer:core', 'imagemin:core', 'jshint', 'qunit:compiled']);
|
||||
|
||||
// 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', 'jsvalidate:build']);
|
||||
|
Loading…
Reference in New Issue
Block a user