Skip to:
Content

bbPress.org

Changeset 5333


Ignore:
Timestamp:
04/02/2014 04:54:11 AM (13 years ago)
Author:
netweb
Message:

More grunt updates:

  • Include bbPress version via package.json in the 'banner' of minified CSS & JS files
  • Include current date and time (UTC) in the 'banner' of minified CSS & JS files
  • Props netweb. See #2542
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r5327 r5333  
    5757        // Project configuration.
    5858        grunt.initConfig({
     59                pkg: grunt.file.readJSON('package.json'),
    5960                clean: {
    6061                        all: [ BUILD_DIR ],
    … …  
    105106                                ext: '.min.css',
    106107                                src: BBP_LTR_CSS,
    107                                 options: { banner: '/*! https://wordpress.org/plugins/bbpress/ */' }
     108                                options: {
     109                                        banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
     110                                        '<%= grunt.template.today("UTC:yyyy-mm-dd h:MM:ss TT Z") %> - ' +
     111                                        'https://wordpress.org/plugins/bbpress/ */'
     112                                }
    108113                        },
    109114                        rtl: {
    … …  
    113118                                ext: '.min.css',
    114119                                src: BBP_RTL_CSS,
    115                                 options: { banner: '/*! https://wordpress.org/plugins/bbpress/ */' }
     120                                options: {
     121                                        banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
     122                                        '<%= grunt.template.today("UTC:yyyy-mm-dd h:MM:ss TT Z") %> - ' +
     123                                        'https://wordpress.org/plugins/bbpress/ */'
     124                                }
    116125                        }
    117126                },
    … …  
    179188                        },
    180189                        options: {
    181                                 banner: '/*! https://wordpress.org/plugins/bbpress/ */\n'
     190                                banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
     191                                '<%= grunt.template.today("UTC:yyyy-mm-dd h:MM:ss TT Z") %> - ' +
     192                                'https://wordpress.org/plugins/bbpress/ */\n'
    182193                        }
    183194                },
Note: See TracChangeset for help on using the changeset viewer.