deploy-impl.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. /**
  4. * @license
  5. * Copyright Google Inc. All Rights Reserved.
  6. *
  7. * Use of this source code is governed by an MIT-style license that can be
  8. * found in the LICENSE file at https://angular.io/license
  9. */
  10. const architect_command_1 = require("../models/architect-command");
  11. const BuilderMissing = `
  12. Cannot find "deploy" target for the specified project.
  13. You should add a package that implements deployment capabilities for your
  14. favorite platform.
  15. For example:
  16. ng add @angular/fire
  17. ng add @azure/ng-deploy
  18. ng add @zeit/ng-deploy
  19. Find more packages on npm https://www.npmjs.com/search?q=ng%20deploy
  20. `;
  21. class DeployCommand extends architect_command_1.ArchitectCommand {
  22. constructor() {
  23. super(...arguments);
  24. this.target = 'deploy';
  25. this.missingTargetError = BuilderMissing;
  26. }
  27. async run(options) {
  28. return this.runArchitectTarget(options);
  29. }
  30. async initialize(options) {
  31. if (!options.help) {
  32. return super.initialize(options);
  33. }
  34. }
  35. async reportAnalytics(paths, options, dimensions = [], metrics = []) {
  36. return super.reportAnalytics(paths, options, dimensions, metrics);
  37. }
  38. }
  39. exports.DeployCommand = DeployCommand;