Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/11/2014 04:29:19 PM (13 years ago)
Author:
johnjamesjacoby
Message:

More Grunt improvements:

  • Fixes CSS & JS admin folder path for BBP_RTL_CSS, BBP_LTR_CSS & BBP_JS in Gruntfile.js
  • Removes Mint & Evergreen CSS (including RTL) to use Mint & Evergreen SCSS
  • Adds _admin.scss, _mixins.scss, _variables.scss via (​/trunk/src/wp-admin/css/colors) to build our Mint & Evergreen admin themes
  • Adds /includes/admin/styles/evergreen/colors.scss & /includes/admin/styles/mint/colors.scss via ​2288dcd5b5 MP6 GitHub Repo Changset
  • Adds support in Gruntfile.js to build minified and RTL Mint & Evergreen CSS
  • Adds grunt-sass ~0.10.0 to package.json to build Mint & Evergreen CSS from SCSS source
  • Reinstates minified and SCRIPT_DEBUG support for minified Mint & Evergreen CSS
  • Adds minified and SCRIPT_DEBUG support for admin javascript & frontend javascript

Props netweb. See #2542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress-functions.php

    r5183 r5285  
    169169                $scripts = array();
    170170
     171                // Minified
     172                $suffix  = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
     173
    171174                // Always pull in jQuery for TinyMCE shortcode usage
    172175                if ( bbp_use_wp_editor() ) {
    173176                        $scripts['bbpress-editor'] = array(
    174                                 'file'         => 'js/editor.js',
     177                                'file'         => 'js/editor' . $suffix . '.js',
    175178                                'dependencies' => array( 'jquery' )
    176179                        );
    … …  
    180183                if ( bbp_is_single_forum() ) {
    181184                        $scripts['bbpress-forum'] = array(
    182                                 'file'         => 'js/forum.js',
     185                                'file'         => 'js/forum' . $suffix . '.js',
    183186                                'dependencies' => array( 'jquery' )
    184187                        );
    … …  
    190193                        // Topic favorite/unsubscribe
    191194                        $scripts['bbpress-topic'] = array(
    192                                 'file'         => 'js/topic.js',
     195                                'file'         => 'js/topic' . $suffix . '.js',
    193196                                'dependencies' => array( 'jquery' )
    194197                        );
    … …  
    197200                        if ( bbp_thread_replies() ) {
    198201                                $scripts['bbpress-reply'] = array(
    199                                         'file'         => 'js/reply.js',
     202                                        'file'         => 'js/reply' . $suffix . '.js',
    200203                                        'dependencies' => array( 'jquery' )
    201204                                );
    … …  
    206209                if ( bbp_is_single_user_edit() ) {
    207210                        $scripts['bbpress-user'] = array(
    208                                 'file'         => 'js/user.js',
     211                                'file'         => 'js/user' . $suffix . '.js',
    209212                                'dependencies' => array( 'user-query' )
    210213                        );
Note: See TracChangeset for help on using the changeset viewer.