emp.ria-jsbuild3
v0.1.26
Published
EMP RIA build system
Downloads
2
Readme
jsbuild3
JsBuild system for emp.ria framework
Getting Started
npm install -g emp.ria-jsbuild3 --save-dev
Once the package has been installed, you may use it fomr shell:
Build jsbuild.json in current folder
jsbuild3
Specify path to jsbuild.json, build will be relative to config base dir
jsbuild3 --config /my/path/to/jsbuild.json
Specify exact modules to build, comma separated list
jsbuild3 --modules ModuleA,ModuleB
jsbuild.json example
{
"version": "3.0",
"framework": "/my/path/to/emp.ria-framework/",
"options": {
"uglifyjs": {
"output": {
"beautify": false
},
"compress": {
"dead_code": true
},
"mangle": {
}
}
},
"libs": {
"ria/": "/my/path/to/emp.ria-framework/"
},
"assets": {
// internal jade assets compiler
"jade": {
"compiler": "emp.ria-jade", // compiler npm, must be installed seperatly
"options": { // jade compiler options
"client": true,
"compileDebug": false,
"self": true
}
},
// internal txt and json assets compilers
"txt": {},
"json": {},
// custom assets compiler
"custom-plugin": {
"path": "/path/to/custom/plugin.js" // relative to jsbuild.json, please use lib/assets/jade.js as an example
}
},
"modules": [{
"name": "Main",
"app": "app.DemoApp",
"out": "scripts/DemoApp.compiled.js",
"prepend": [
"lib/jade.runtime.js"
],
"globals": [
"jQuery",
"jade"
]
}]
}