Changeset 5649
- Timestamp:
- 03/23/2015 08:28:40 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r5614 r5649 24 24 25 25 BBP_EXCLUDED_FILES = [ 26 26 27 // Ignore these 27 28 '!**/.{svn,git}/**', … … 53 54 // Project configuration. 54 55 grunt.initConfig({ 55 pkg: grunt.file.readJSON( 'package.json'),56 pkg: grunt.file.readJSON( 'package.json' ), 56 57 checktextdomain: { 57 58 options: { … … 205 206 src: BUILD_DIR + '/**/*.js' 206 207 } 208 }, 209 src: { 210 files: { 211 src: SOURCE_DIR + '/**/*.js' 212 } 207 213 } 208 214 }, … … 232 238 'default': { 233 239 cmd: 'phpunit', 234 args: [ '-c', 'phpunit.xml.dist']240 args: [ '-c', 'phpunit.xml.dist' ] 235 241 }, 236 242 multisite: { 237 243 cmd: 'phpunit', 238 args: [ '-c', 'tests/phpunit/multisite.xml']244 args: [ '-c', 'tests/phpunit/multisite.xml' ] 239 245 } 240 246 }, … … 245 251 dest: BUILD_DIR, 246 252 ext: '.css', 247 src: [ 'includes/admin/styles/*/colors.scss'],253 src: [ 'includes/admin/styles/*/colors.scss' ], 248 254 options: { 249 255 outputStyle: 'expanded' … … 276 282 files: [ 277 283 SOURCE_DIR + '**', 284 278 285 // Ignore version control directories. 279 286 '!' + SOURCE_DIR + '**/.{svn,git}/**' … … 287 294 }, 288 295 colors: { 289 files: [ SOURCE_DIR + 'includes/admin/styles/*/colors.scss'],290 tasks: [ 'sass:colors', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl']296 files: [ SOURCE_DIR + 'includes/admin/styles/*/colors.scss' ], 297 tasks: [ 'sass:colors', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl' ] 291 298 }, 292 299 config: { … … 319 326 320 327 // Color schemes task. 321 grunt.registerTask( 'colors', [ 'sass:colors'] );328 grunt.registerTask( 'colors', [ 'sass:colors' ] ); 322 329 323 330 // Build tasks. 324 grunt.registerTask( 'src', [ 'jsvalidate', 'jshint', 'cssjanus'] );325 grunt.registerTask( 'commit', [ 'src', 'checktextdomain'] );326 grunt.registerTask( 'build', [ 'c lean:all', 'copy:files', 'colors', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'uglify:core', 'jsvalidate:build', 'makepot' ] );327 grunt.registerTask( 'release', [ 'build' , 'checktextdomain'] );331 grunt.registerTask( 'src', [ 'jsvalidate:src', 'jshint' ] ); 332 grunt.registerTask( 'commit', [ 'src', 'checktextdomain' ] ); 333 grunt.registerTask( 'build', [ 'commit', 'clean:all', 'copy:files', 'colors', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'uglify:core', 'jsvalidate:build', 'makepot' ] ); 334 grunt.registerTask( 'release', [ 'build' ] ); 328 335 329 336 // PHPUnit test task. … … 337 344 338 345 // PHPUnit test task. 339 grunt.registerTask( 'test', 'Run all PHPUnit test tasks.', [ 'phpunit'] );346 grunt.registerTask( 'test', 'Run all PHPUnit test tasks.', [ 'phpunit' ] ); 340 347 341 348 // JavaScript test task. 342 grunt.registerTask( 'jstest', 'Runs all JavaScript tasks.', [ 'jsvalidate ', 'jshint' ] );349 grunt.registerTask( 'jstest', 'Runs all JavaScript tasks.', [ 'jsvalidate:src', 'jshint' ] ); 343 350 344 351 // Travis CI Task 345 grunt.registerTask( 'travis', [ 'jsvalidate', 'jshint', 'checktextdomain', 'test'] );352 grunt.registerTask( 'travis', [ 'jsvalidate:src', 'jshint', 'checktextdomain', 'test' ] ); 346 353 347 354 // Patch task. … … 349 356 350 357 // Default task. 351 grunt.registerTask( 'default', [ 'src'] );358 grunt.registerTask( 'default', [ 'src' ] ); 352 359 353 360 // Add a listener to the watch task.
Note: See TracChangeset
for help on using the changeset viewer.