Skip to content

Instantly share code, notes, and snippets.

@statico
Forked from digitarald/build.coffee
Created May 1, 2012 20:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save statico/2571314 to your computer and use it in GitHub Desktop.
Save statico/2571314 to your computer and use it in GitHub Desktop.
Building require.js
requirejs = require('requirejs')
jspath = __dirname + '/views/scripts';
requirejs.optimize(
baseUrl: jspath
wrap:
start: ';(function(undefined) { "use strict";'
end: '}).call(this);'
optimize: 'none' # uglify
paths:
almond: 'vendor/almond'
zepto: 'vendor/zepto'
underscore: 'vendor/underscore'
backbone: 'vendor/backbone'
text: 'vendor/text'
views: 'views'
routers: 'routers'
deps: [
'almond'
'zepto'
'underscore'
'backbone'
]
include: 'app'
out: __dirname + '/public/app.js'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment