-
-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a49e289
commit 663e3af
Showing
3 changed files
with
13 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
#!/usr/bin/env node | ||
|
||
/*global require, console*/ | ||
|
||
const { exec } = require('child_process') | ||
|
||
const command = | ||
'firebase emulators:export --project demo-community-platform-emulated --force ./dump' | ||
|
||
exec(command, (error, stdout, stderr) => { | ||
if (error) { | ||
console.error(`exec error: ${error}`) | ||
console.error('exec error: ' + error) | ||
return | ||
} | ||
console.log(`stdout: ${stdout}`) | ||
console.error(`stderr: ${stderr}`) | ||
if (stdout) { | ||
console.log('stdout: ' + stdout) | ||
} | ||
if (stderr) { | ||
console.error('stderr: ' + stderr) | ||
} | ||
}) |
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