Changeset 7112
- Timestamp:
- 04/16/2018 04:19:07 AM (7 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/Gruntfile.js
r6629 r7112 11 11 module.exports = function( grunt ) { 12 12 var isChild = 'wporg' !== grunt.file.readJSON( 'package.json' ).name; 13 14 13 15 14 // Project configuration. … … 155 154 } 156 155 }, 156 uglify: { 157 options: { 158 ASCIIOnly: true, 159 screwIE8: false 160 }, 161 js: { 162 expand: true, 163 cwd: 'js/', 164 dest: 'js/', 165 ext: '.min.js', 166 src: [ 167 'theme.js', 168 ] 169 } 170 }, 157 171 watch: { 158 172 jshint: { … … 177 191 grunt.loadNpmTasks( 'grunt-contrib-watch' ); 178 192 grunt.loadNpmTasks( 'grunt-contrib-jshint' ); 193 grunt.loadNpmTasks( 'grunt-contrib-uglify' ); 179 194 180 195 grunt.registerTask( 'css', ['sass_globbing', 'sass', 'postcss', 'rtlcss:dynamic'] ); 181 grunt.registerTask( 'default', ['jshint', 'css' ] );182 grunt.registerTask( 'build', ['css' ] );196 grunt.registerTask( 'default', ['jshint', 'css', 'uglify:js'] ); 197 grunt.registerTask( 'build', ['css', 'uglify:js'] ); 183 198 }; 184 199 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/package.json
r6347 r7112 17 17 "grunt": "^1.0.1", 18 18 "grunt-contrib-jshint": "^1.0.0", 19 "grunt-contrib-uglify": "~2.0.0", 19 20 "grunt-contrib-watch": "^1.0.0", 20 21 "grunt-postcss": "^0.8.0", … … 26 27 } 27 28 } 28
Note: See TracChangeset
for help on using the changeset viewer.