Skip to:
Content

BuddyPress.org

Changeset 9229


Ignore:
Timestamp:
12/12/2014 07:20:24 PM (10 years ago)
Author:
djpaul
Message:

Grunt: rename the build-* tasks and add new task to help package releases.

Clarifying the existing build-* tasks will help reduce confusion for contributors to the project by making it easier to understand when each should be run.
A new task to help the BuddyPress team package new releases will help make our release process more straightforward and hopefully save time.

The Grunt tasks are now:

  • "src" -- operates on the src/ folder. To be run during development.
  • "commit" -- operates on the src/ folder. To be run before commit.
  • "build" -- updates the build/ folder. Creates a build of BuddyPress ready for full testing (with minified assets, etc).
  • "release" -- updates the build/ folder. Creates the release version of BuddyPress, ready to be added to our distribution SVN.

In the near future, we'll probably add a grunt watch task which will do the same thing as the new src task.

Fixes #6064

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r9228 r9229  
    229229     * Register tasks.
    230230     */
    231     grunt.registerTask( 'build',         ['jsvalidate:src', 'jshint', 'cssjanus'] );
    232     grunt.registerTask( 'build-commit',  ['build', 'checktextdomain', 'imagemin'] );
    233     grunt.registerTask( 'build-release', ['build-commit', 'clean:all', 'copy:files', 'uglify', 'jsvalidate:build', 'cssmin', 'makepot', 'exec:bbpress', 'exec:bpdefault', 'test'] );
     231    grunt.registerTask( 'src',     ['jsvalidate:src', 'jshint', 'cssjanus'] );
     232    grunt.registerTask( 'commit',  ['src', 'checktextdomain', 'imagemin'] );
     233    grunt.registerTask( 'release', ['commit', 'clean:all', 'copy:files', 'uglify', 'jsvalidate:build', 'cssmin', 'makepot', 'exec:bpdefault'] );
     234    grunt.registerTask( 'build',   ['release', 'exec:bbpress'] );
    234235
    235236    // Testing tasks.
     
    253254
    254255    // Default task.
    255     grunt.registerTask( 'default', ['build'] );
     256    grunt.registerTask( 'default', ['src'] );
    256257};
Note: See TracChangeset for help on using the changeset viewer.