Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #123 from Financial-Times/harmony
Browse files Browse the repository at this point in the history
Support nbt run --harmony
  • Loading branch information
matthew-andrews committed Jun 16, 2015
2 parents 396748e + 5e8a422 commit acc758e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/next-build-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ program
program
.command('run')
.description('Runs the local app through the router')
.option('-l, --local', 'Run the app but don\'t start the router ')
.option('-l, --local', 'Run the app but don\'t start the router')
.option('--harmony', 'Runs the local app with harmony')
.action(function(opts){
run(opts).catch(exit);
});
Expand Down
6 changes: 5 additions & 1 deletion tasks/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ function runLocal(opts) {
return new Promise(function(resolve, reject) {
var env = Object.create(process.env);
env.PORT = port;
var local = spawn('nodemon', ['server/app.js', '--watch server'], { cwd: process.cwd(), env: env });
var args = ['server/app.js', '--watch server'];
if (opts.harmony) {
args.push('--harmony');
}
var local = spawn('nodemon', args, { cwd: process.cwd(), env: env });

local.stdout.on('data', toStdOut);
local.stderr.on('data', toStdErr);
Expand Down

0 comments on commit acc758e

Please sign in to comment.