forked from bitovi/syn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.js
More file actions
28 lines (25 loc) · 649 Bytes
/
build.js
File metadata and controls
28 lines (25 loc) · 649 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
load('steal/rhino/rhino.js')
/**
* Build syn, funcunit, user-extensions
*/
steal.File('funcunit/syn/dist').mkdir()
steal('steal/build/pluginify', function(s){
steal.build.pluginify("funcunit/syn",{
global: "true",
nojquery: true,
out: "funcunit/syn/dist/syn.js"
})
})
// add drag/drop
var copyToDist = function(path){
var fileNameArr = path.split("/"),
fileName = fileNameArr[fileNameArr.length - 1];
print("copying to "+fileName)
steal.File(path).copyTo("funcunit/syn/resources/"+fileName);
}
var filesToCopy = [
"funcunit/browser/resources/jquery.js"
]
for(var i = 0; i < filesToCopy.length; i++) {
copyToDist(filesToCopy[i])
}