pulsar/script/build

14 lines
587 B
Plaintext
Raw Normal View History

#!/usr/bin/env node --harmony_collections
var cp = require('./utils/child-process-wrapper.js');
2013-10-14 10:37:16 +04:00
var path = require('path');
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
cp.safeExec('node script/bootstrap', function() {
2014-01-02 22:53:22 +04:00
// node build/node_modules/grunt-cli/bin/grunt "$@"
2014-01-02 23:54:36 +04:00
var gruntPath = path.join('build', 'node_modules', 'grunt-cli', 'bin', 'grunt') + (process.platform === 'win32' ? '.cmd' : '');
2013-11-21 22:39:31 +04:00
var args = [gruntPath, '--gruntfile', path.resolve('build', 'Gruntfile.coffee')];
args = args.concat(process.argv.slice(2));
cp.safeSpawn(process.execPath, args, process.exit);
2013-10-14 10:37:16 +04:00
});