-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.js
40 lines (29 loc) · 891 Bytes
/
setup.js
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
/*
* installs the required node modules and bower dependencies.
* These are required for to build the package and run the demo.
*/
var exec = require('child_process').exec;
function log(err, stdout, sterr) {
if (err) {
console.error(arguments);
} else {
console.log(arguments);
}
}
exec('npm install nodefy', log);
exec('npm install jsdoc', log);
exec('npm install docco', log);
exec('npm install ncp', log);
exec('npm install rimraf', log);
exec('npm install jake', log);
exec('npm install markdown', log);
exec('npm install buildify', log);
exec('npm install requirejs', log);//just so we get r.js minimizer. also included with bower
exec('npm install bower', function(err, out) {
if (err) {
console.error("Could not install bower");
return;
}
console.log('installing bower dependencies...');
exec('"node_modules/.bin/bower" install', log);
});