pulsar/script/build

28 lines
736 B
Plaintext
Raw Normal View History

#!/usr/bin/env node
var cp = require('./utils/child-process-wrapper.js');
var runGrunt = require('./utils/run-grunt.js');
2013-10-14 10:37:16 +04:00
var path = require('path');
var fs = require('fs');
2013-06-21 04:07:55 +04:00
2013-10-14 10:37:16 +04:00
process.chdir(path.dirname(__dirname));
2013-06-21 04:07:55 +04:00
if (process.platform === 'win32') {
process.env['PATH'] = process.env['PATH']
.split(';')
.filter(function(p) {
if (fs.existsSync(path.resolve(p, 'msbuild.exe'))) {
console.log('Excluding "' + p + '" from PATH to avoid msbuild.exe mismatch')
return false;
} else {
return true;
}
})
.join(';');
}
cp.safeExec('node script/bootstrap', function() {
// build/node_modules/.bin/grunt "$@"
var args = process.argv.slice(2);
runGrunt(args, process.exit);
2013-10-14 10:37:16 +04:00
});