read

I'm sure there are much larger require.js configuration paths out there, but what originally started with 5 items has increased almost four-fold. Who knows how many libraries we'll end up using by the time this thing is ready to release.

requirejs.config({  
  paths: {
    'jquery':           'bower/jquery/jquery.min',
    'shorten':          'bower/jquery/shorten/src/jquery.shorten',
    'slimscroll':       'bower/jquery.slimscroll/jquery.slimscroll.min',
    'cookies':          'bower/jquery-cookie/jquery.cookie',

    'bootstrap':        'bower/bootstrap/dist/js/bootstrap.min',
    'bootstrapselect':  'bower/bootstrap-select/bootstrap-select.min',

    'q':                'bower/q/q.min',
    'underscore':       'bower/underscore/underscore-min',
    'inflection':       'bower/inflection/src/underscore.inflection',
    'knockout':         'bower/knockout.js/knockout',
    'moment':           'bower/momentjs/min/moment.min',
    'isotope':          'bower/isotope/jquery.isotope.min',
    'sammy':            'bower/sammy/lib/min/sammy-latest.min',
    'mousetrap':        'bower/mousetrap/mousetrap.min',

    'flot':             'bower/flot/jquery.flot',
    'flot-time':        'bower/flot/jquery.flot.time',
    'flot-selection':   'bower/flot/jquery.flot.selection',

    'settings':         'settings/settings'
  }
});

glance preview

Blog Logo

Steve Brownlee

Head Coach at Nashville Software School. Evolving software development education.


Published