forked from bitovi/funcunit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.js
More file actions
35 lines (33 loc) · 815 Bytes
/
build.js
File metadata and controls
35 lines (33 loc) · 815 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
29
30
31
32
33
34
35
var pluginify = require('steal').build.pluginify;
var fs = require('fs');
pluginify('funcunit.js', {
// ignore: [/lib/],
wrapper: '!function(window) {\n<%= content %>\n\n' +
'}(window);',
steal: {
root: __dirname,
map: {
'*': {
"jquery/jquery.js": "jquery",
"basejquery/basejquery.js": "basejquery",
'funcunit/': '',
'src/': 'lib/syn/src/',
'syn/': 'lib/syn/src/',
"basejquery": "lib/jquery/jquery.js",
"jquery": "browser/jquery.js"
}
},
shim: {
basejquery: {
exports: "jQuery"
}
}
}
}, function(error, content) {
fs.exists('build', function(exists) {
if(!exists) {
fs.mkdir('build');
};
fs.writeFile(__dirname + '/build/funcunit.js', content);
});
});