-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from jvmn/feature/2.2.0-rc
Feature/2.2.0 rc
- Loading branch information
Showing
8 changed files
with
201 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env node | ||
'use strict' | ||
|
||
const { spawn } = require('child_process') | ||
const error = require('../lib/error') | ||
// expose project root folder varialbe to load configs in npm | ||
process.env.PROJECT_CWD = process.env.PWD | ||
|
||
|
||
const child = spawn(`npm explore @jvmn/groundzero-taskrunner-webpack -- npm run fractal:export`, { | ||
stdio: 'inherit', | ||
env: process.env, | ||
shell: true | ||
}) | ||
|
||
child.on('error', err => { | ||
error(`CLI Export -> ${err}`, true) | ||
}) | ||
|
||
if (child.stdin) { | ||
process.stdin.pipe(child.stdin) | ||
} | ||
|
||
if (child.stdout) { | ||
child.stdout.on('data', (data) => { | ||
console.log(`child stdout:\n${data}`) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.