[buddypress-trac] [BuddyPress Trac] #5160: Use gruntjs to generate minified versions of the js and css files everywhere.

buddypress-trac noreply at wordpress.org
Mon May 5 09:34:20 UTC 2014


#5160: Use gruntjs to generate minified versions of the js and css files
everywhere.
-------------------------+------------------
 Reporter:  enej         |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  2.1
Component:  Core         |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------

Comment (by netweb):

 In 5160-bump-bp-version.diff
 * Bump BP Version in `package.json` to `2.1.0`

 In 5160-watch.diff
 * Update `grunt watch` task to dynamically clean and copy modified files
 from `/src` to `/build`
  * Automatically updates RTL and minified CSS and JS
  * Fixes `grunt uglify` task to copy JS files from SOURCE_DIR
  * Adds `grunt uglify:dynamic` task for use with `grunt watch`
  * Adds `uglify` listener for `grunt watch` and `grunt watch:js` tasks

 In 5160-makepot.diff
 * Remove `buddypress.pot` from the repo
 * Remove `/src/bp-languages` from the repo
 * `buddypress.pot` is now generated by any of the grund build tasks in
 `/build/bp-languages`
  * `grunt`, `grunt build`, `grunt build-commit` or `grunt build-release`
 * Headers in `buddypress.pot` now link to BP Trac not WP Plugin support
 forum

 In 5160-grunt-build.diff
 * Add default tasks to `grunt build` task
  * Cleans the `/build` folder with `clean:all` task
  * Copies all files from `/src` to `/build` with `copy:files` task
  * Creates RTL CSS files for all LTR CSS using `cssjanus:core`
  * Minimizes all CSS files with `cssmin:ltr` and `cssmin:rtl`
  * Minimizes all JS files with `uglify:core` task
  * Creates `buddypress.pot` with `makepot` task`

 In 5160-remove-rtl-css.diff
 * Remove '''all''' RTL CSS assets from `/src`
  * RTL CSS will now only be created when a build is produced.
 * Grunt task `grunt cssjanus` destination directory should be /build
 * Changes `BP_CSS` to `BP_LTR_CSS` and `BP_RTL_CSS`
  * The change allows the dynamic `grunt watch` tasks to dynamically
 minimize and RTL only the required files that have been changed

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5160#comment:44>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list