-
Notifications
You must be signed in to change notification settings - Fork 82
/
build.js
20 lines (17 loc) · 793 Bytes
/
build.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// TO BUILD: cd to the /TremulaJS/ directory (the directory with this file) and run...
// $ node r.js -o build.min.js; node r.js -o cssIn=src/Tremula.css out=dist/Tremula.css optimizeCss=standard
// $ node r.js -o build.js; node r.js -o cssIn=src/Tremula.css out=dist/Tremula.css optimizeCss=none
({
//- paths are relative to this build.js file
baseUrl: "src" //- this is the directory where the source .js goes
//,dir: "dist" //- this is the directory that the new files will be. it will be created if it doesn't exist
,out:'dist/Tremula.js'//this is the name of the new compiled js file
// ,removeCombined: true //
,name: "almond"
,include: "Tremula"
,insertRequire:['Tremula']
,wrap: true
,optimize:'none'
// ,generateSourceMaps: true
// ,preserveLicenseComments: true
})