Skip to content

Instantly share code, notes, and snippets.

@statico
Forked from digitarald/build.coffee
Created May 1, 2012 20:55
Show Gist options
  • Save statico/2571314 to your computer and use it in GitHub Desktop.
Save statico/2571314 to your computer and use it in GitHub Desktop.

Revisions

  1. Harald Kirschner created this gist May 1, 2012.
    28 changes: 28 additions & 0 deletions build.coffee
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@

    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'
    )