mirror of
https://github.com/fergalmoran/onearmy-community-platform.git
synced 2025-12-22 09:37:54 +00:00
22 lines
432 B
JavaScript
Executable File
22 lines
432 B
JavaScript
Executable File
#!/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)
|
|
return
|
|
}
|
|
if (stdout) {
|
|
console.log('stdout: ' + stdout)
|
|
}
|
|
if (stderr) {
|
|
console.error('stderr: ' + stderr)
|
|
}
|
|
})
|