GSI - Employe Self Service Mobile
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
1.0 KiB

2 months ago
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.command = void 0;
  4. const command_1 = require("../command");
  5. const commandUtils = require("../emulator/commandUtils");
  6. const commandUtils_1 = require("../emulator/commandUtils");
  7. exports.command = new command_1.Command("emulators:exec <script>")
  8. .before(commandUtils.setExportOnExitOptions)
  9. .before(commandUtils.beforeEmulatorCommand)
  10. .description("start the local Firebase emulators, " + "run a test script, then shut down the emulators")
  11. .option(commandUtils.FLAG_ONLY, commandUtils.DESC_ONLY)
  12. .option(commandUtils.FLAG_INSPECT_FUNCTIONS, commandUtils.DESC_INSPECT_FUNCTIONS)
  13. .option(commandUtils.FLAG_IMPORT, commandUtils.DESC_IMPORT)
  14. .option(commandUtils.FLAG_EXPORT_ON_EXIT, commandUtils.DESC_EXPORT_ON_EXIT)
  15. .option(commandUtils.FLAG_UI, commandUtils.DESC_UI)
  16. .action((script, options) => {
  17. return Promise.race([(0, commandUtils_1.shutdownWhenKilled)(options), (0, commandUtils_1.emulatorExec)(script, options)]);
  18. });