Skip to:
Content

BuddyPress.org

Changeset 11009


Ignore:
Timestamp:
08/10/2016 02:12:48 PM (10 years ago)
Author:
djpaul
Message:

Move all third-party JS libraries into a vendor folder.

This avoids us having to update the jshintignore each time we add a new script, like I didn't do in r11008.

Location:
trunk
Files:
1 added
2 edited
8 moved

Legend:

Unmodified
Added
Removed
  • trunk/.jshintignore

    r10448 r11009  
    33
    44// 3rd party libraries
    5 src/bp-core/js/jquery.atwho.js
    6 src/bp-core/js/jquery.caret.js
    7 src/bp-core/js/jquery-cookie.js
    8 src/bp-core/js/jquery-scroll-to.js
     5src/bp-core/js/vendor/**/*
    96src/bp-messages/js/autocomplete/*
  • trunk/src/bp-core/bp-core-cssjs.php

    r11008 r11009  
    3030
    3131                // Legacy.
    32                 'bp-confirm'        => array( 'file' => "{$url}confirm{$min}.js",        'dependencies' => array( 'jquery' ), 'footer' => false ),
     32                'bp-confirm'        => array( 'file' => "{$url}confirm{$min}.js", 'dependencies' => array( 'jquery' ), 'footer' => false ),
    3333                'bp-widget-members' => array( 'file' => "{$url}widget-members{$min}.js", 'dependencies' => array( 'jquery' ), 'footer' => false ),
    34                 'bp-jquery-query'   => array( 'file' => "{$url}jquery-query{$min}.js",   'dependencies' => array( 'jquery' ), 'footer' => false ),
    35                 'bp-jquery-cookie'  => array( 'file' => "{$url}jquery-cookie{$min}.js",  'dependencies' => array( 'jquery' ), 'footer' => false ),
    36                 'bp-jquery-scroll-to' => array( 'file' => "{$url}jquery-scroll-to{$min}.js", 'dependencies' => array( 'jquery' ), 'footer' => false ),
     34                'bp-jquery-query'   => array( 'file' => "{$url}jquery-query{$min}.js", ' ' => array( 'jquery' ), 'footer' => false ),
     35                'bp-jquery-cookie'  => array( 'file' => "{$url}vendor/jquery-cookie{$min}.js",   'dependencies' => array( 'jquery' ), 'footer' => false ),
     36                'bp-jquery-scroll-to' => array( 'file' => "{$url}vendor/jquery-scroll-to{$min}.js", 'dependencies' => array( 'jquery' ), 'footer' => false ),
    3737
    3838                // Version 2.1.
    39                 'jquery-caret' => array( 'file' => "{$url}jquery.caret{$min}.js", 'dependencies' => array( 'jquery' ), 'footer' => true ),
    40                 'jquery-atwho' => array( 'file' => "{$url}jquery.atwho{$min}.js", 'dependencies' => array( 'jquery', 'jquery-caret' ), 'footer' => true ),
     39                'jquery-caret' => array( 'file' => "{$url}vendor/jquery.caret{$min}.js", 'dependencies' => array( 'jquery' ), 'footer' => true ),
     40                'jquery-atwho' => array( 'file' => "{$url}vendor/jquery.atwho{$min}.js", 'dependencies' => array( 'jquery', 'jquery-caret' ), 'footer' => true ),
    4141
    4242                // Version 2.3.
     
    4949
    5050                // Version 2.7.
    51                 'bp-moment'    => array( 'file' => "{$url}moment{$min}.js", 'dependencies' => array(), 'footer' => true ),
    52                 'bp-livestamp' => array( 'file' => "{$url}livestamp{$min}.js", 'dependencies' => array( 'jquery', 'bp-moment' ), 'footer' => true ),
     51                'bp-moment'    => array( 'file' => "{$url}vendor/moment{$min}.js", 'dependencies' => array(), 'footer' => true ),
     52                'bp-livestamp' => array( 'file' => "{$url}vendor/livestamp{$min}.js", 'dependencies' => array( 'jquery', 'bp-moment' ), 'footer' => true ),
    5353        ) );
    5454
Note: See TracChangeset for help on using the changeset viewer.