git-svn-id: https://msi/svn/firstRepo/WebClient/trunk@13 0f545695-f87b-41b6-9a03-7f16563b5454

This commit is contained in:
2014-12-10 14:58:10 +00:00
parent 90e0252f4b
commit 876ee18579
238 changed files with 35068 additions and 0 deletions
+61
View File
@@ -0,0 +1,61 @@
// 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_dev",
paths: {
jquery: 'empty:',
underscore: 'libs/underscore-min',
jQueryPlugins: 'libs/jQueryPlugins',
// jqm_alphaList: 'plugins/jquery.mobile.alphascroll.min',
// jq_rating: 'plugins/jquery.rating.pack',
backbone: 'libs/backbone-min',
jqm: 'empty:',
text: 'libs/text'
},
shim: {
jqm: {
deps: [ 'jquery' ]
},
jQueryPlugins: {
deps: [ 'jquery' ]
}
// ,
// jqm_alphaList: {
// deps: [ 'jquery', 'jqm' ]
// }
},
optimize: "none",
//optimize: "uglify2",
modules: [
{
name: "main",
exclude: [
'libs/jQueryPluginsCollection',
'plugins/jquery.mobile.alphascroll.min',
'plugins/jquery.rating.pack'
]
},
{ name: "libs/jQueryPluginsCollection" }
],
preserveLicenseComments: false,
fileExclusionRegExp: /\.git/
})