1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.ServeCommand = void 0;
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | const core_1 = require("@angular-devkit/core");
|
12 | const architect_command_1 = require("../models/architect-command");
|
13 | class ServeCommand extends architect_command_1.ArchitectCommand {
|
14 | constructor() {
|
15 | super(...arguments);
|
16 | this.target = 'serve';
|
17 | }
|
18 | validate(_options) {
|
19 | return true;
|
20 | }
|
21 | async run(options) {
|
22 | return this.runArchitectTarget(options);
|
23 | }
|
24 | async reportAnalytics(paths, options, dimensions = [], metrics = []) {
|
25 | if (options.buildEventLog !== undefined) {
|
26 | dimensions[core_1.analytics.NgCliAnalyticsDimensions.NgBuildBuildEventLog] = true;
|
27 | }
|
28 | return super.reportAnalytics(paths, options, dimensions, metrics);
|
29 | }
|
30 | }
|
31 | exports.ServeCommand = ServeCommand;
|