git-svn-id: https://msi/svn/firstRepo/WebClient/trunk@13 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
// 1. Install nodejs (it will automatically installs requirejs)
|
||||
|
||||
//- assuming the folder structure for your app is:
|
||||
// app
|
||||
// css
|
||||
// img
|
||||
// js
|
||||
// main.js
|
||||
// index.html
|
||||
// build
|
||||
// app.build.js
|
||||
// r.js (downloaded from requirejs website)
|
||||
|
||||
// 2. the command line to run:
|
||||
// $ node r.js -o app.build.js
|
||||
//
|
||||
|
||||
({
|
||||
//- paths are relative to this app.build.js file
|
||||
appDir: "",
|
||||
baseUrl: "js",
|
||||
//- this is the directory that the new files will be. it will be created if it doesn't exist
|
||||
dir: "./app-build_prod",
|
||||
paths: {
|
||||
jquery: 'empty:',
|
||||
underscore: 'libs/underscore-min',
|
||||
jQueryPlugins: 'libs/jQueryPlugins',
|
||||
backbone: 'libs/backbone-min',
|
||||
jqm: 'empty:',
|
||||
text: 'libs/text'
|
||||
},
|
||||
shim: {
|
||||
jqm: {
|
||||
deps: [ 'jquery' ]
|
||||
},
|
||||
jQueryPlugins: {
|
||||
deps: [ 'jquery' ]
|
||||
}
|
||||
},
|
||||
optimize: "uglify2",
|
||||
modules: [
|
||||
{
|
||||
name: "main",
|
||||
exclude: [
|
||||
'libs/jQueryPluginsCollection',
|
||||
'plugins/jquery.mobile.alphascroll.min',
|
||||
'plugins/jquery.rating.pack'
|
||||
]
|
||||
},
|
||||
{ name: "libs/jQueryPluginsCollection" }
|
||||
],
|
||||
preserveLicenseComments: false,
|
||||
fileExclusionRegExp: /\.git/
|
||||
})
|
||||
Reference in New Issue
Block a user