mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
14 lines
521 B
Text
14 lines
521 B
Text
|
#!/usr/bin/env node
|
||
|
var cp = require('./utils/child-process-wrapper.js');
|
||
|
var path = require('path');
|
||
|
|
||
|
process.chdir(path.dirname(__dirname));
|
||
|
|
||
|
cp.safeExec('node script/bootstrap', function() {
|
||
|
// build/node_modules/.bin/grunt "$@"
|
||
|
var gruntPath = path.join('build', 'node_modules', '.bin', 'grunt') + (process.platform === 'win32' ? '.cmd' : '');
|
||
|
var args = ['--gruntfile', path.resolve('build', 'Gruntfile.coffee')];
|
||
|
args = args.concat(process.argv.slice(2));
|
||
|
cp.safeSpawn(gruntPath, args, process.exit);
|
||
|
});
|