Permalink
Browse files

add built file to repo - closes gh-1

  • Loading branch information...
tkellen committed Jul 6, 2012
1 parent cdab78f commit 834e81613bff6c8818b2fdb148ce130b16d3c984
Showing with 24 additions and 22 deletions.
  1. +0 −1 .gitignore
  2. +1 −0 build
  3. +23 −21 build.js
View
@@ -1,3 +1,2 @@
.DS_Store
-build/
node_modules/
1 build
Submodule build added at 85ebce
View
@@ -2,49 +2,51 @@
// https://github.com/jrburke/r.js/blob/master/build/example.build.js
({
// all modules loaded are relative to this path
- // e.g. require(['grid/core']) would grab /lib/grid/core.js
- baseUrl: './lib',
+ // e.g. require(["grid/core"]) would grab /lib/grid/core.js
+ baseUrl: "./lib",
// specify custom module name paths
paths: {
- cs: '../vendor/cs'
+ "cs": "../vendor/cs",
+ "coffee-script": "../vendor/coffee-script",
+ "spec": "../test/spec"
},
// target amd loader shim as the main module, path is relative to baseUrl.
- name: '../vendor/almond',
+ name: "../vendor/almond",
- optimize: 'none',
+ optimize: "none",
// files to include along with almond. only lib/skeleton.js is defined, as
// it pulls in the rest of the dependencies automatically.
- include: ['skeleton'],
+ include: ["skeleton"],
// code to wrap around the start / end of the resulting build file
// the global variable used to expose the API is defined here
wrap: {
- start: "(function(global, define) {"+
+ start: "(function(global, define) {\n"+
// check for amd loader on global namespace
- " var globalDefine = global.define;",
+ " var globalDefine = global.define;\n",
- end: " var library = require('skeleton');"+
- " if(typeof module !== 'undefined' && module.exports) {"+
+ end: " var library = require('skeleton');\n"+
+ " if(typeof module !== 'undefined' && module.exports) {\n"+
// export library for node
- " module.exports = library;"+
- " } else if(globalDefine) {"+
+ " module.exports = library;\n"+
+ " } else if(globalDefine) {\n"+
// define library for global amd loader that is already present
- " (function (define) {"+
- " define(function () { return library; });"+
- " }(globalDefine));"+
- " } else {"+
+ " (function (define) {\n"+
+ " define(function () { return library; });\n"+
+ " }(globalDefine));\n"+
+ " } else {\n"+
// define library on global namespace for inline script loading
- " global['skeleton'] = library;"+
- " }"+
- "}(this));"
+ " global['skeleton'] = library;\n"+
+ " }\n"+
+ "}(this));\n"
},
// don't include coffeescript compiler in optimized file
- stubModules: ['cs'],
+ stubModules: ["cs","coffee-script"],
// build file destination, relative to the build file itself
- out: './build/skeleton.js'
+ out: "./build/skeleton.js"
})

0 comments on commit 834e816

Please sign in to comment.