Skip to content

Instantly share code, notes, and snippets.

@Daniel1984
Created October 1, 2014 13:33
Show Gist options
  • Save Daniel1984/70be503b9e13469c8937 to your computer and use it in GitHub Desktop.
Save Daniel1984/70be503b9e13469c8937 to your computer and use it in GitHub Desktop.
require.config
paths:
jquery: 'lib/jquery'
underscore: 'lib/underscore'
backbone: 'lib/backbone'
text: 'lib/require/text'
domready: 'lib/require/domready'
spinner: 'lib/spiner'
button_spinner : 'helpers/button_spinner'
shim:
underscore:
exports: '_'
backbone:
deps: ['jquery', 'underscore']
exports: "Backbone"
button_spinner : ['jquery','spinner']
spinner:
exports: 'Spinner'
require [
'domready'
'app'
], (domReady, App) ->
domReady () ->
App.init()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment