source: trip-planner-front/node_modules/@angular/compiler-cli/ngcc/main-ngcc.js@ e29cc2e

Last change on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 4.8 KB
Line 
1#!/usr/bin/env node
2(function (factory) {
3 if (typeof module === "object" && typeof module.exports === "object") {
4 var v = factory(require, exports);
5 if (v !== undefined) module.exports = v;
6 }
7 else if (typeof define === "function" && define.amd) {
8 define("@angular/compiler-cli/ngcc/main-ngcc", ["require", "exports", "tslib", "@angular/compiler-cli/ngcc/src/main", "@angular/compiler-cli/ngcc/src/command_line_options"], factory);
9 }
10})(function (require, exports) {
11 "use strict";
12 Object.defineProperty(exports, "__esModule", { value: true });
13 var tslib_1 = require("tslib");
14 /**
15 * @license
16 * Copyright Google LLC All Rights Reserved.
17 *
18 * Use of this source code is governed by an MIT-style license that can be
19 * found in the LICENSE file at https://angular.io/license
20 */
21 var main_1 = require("@angular/compiler-cli/ngcc/src/main");
22 var command_line_options_1 = require("@angular/compiler-cli/ngcc/src/command_line_options");
23 // CLI entry point
24 if (require.main === module) {
25 process.title = 'ngcc';
26 var startTime_1 = Date.now();
27 var options_1 = command_line_options_1.parseCommandLineOptions(process.argv.slice(2));
28 (function () { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
29 var duration, e_1;
30 return tslib_1.__generator(this, function (_a) {
31 switch (_a.label) {
32 case 0:
33 _a.trys.push([0, 2, , 3]);
34 return [4 /*yield*/, main_1.mainNgcc(options_1)];
35 case 1:
36 _a.sent();
37 if (options_1.logger) {
38 duration = Math.round((Date.now() - startTime_1) / 1000);
39 options_1.logger.debug("Run ngcc in " + duration + "s.");
40 }
41 process.exitCode = 0;
42 return [3 /*break*/, 3];
43 case 2:
44 e_1 = _a.sent();
45 console.error(e_1.stack || e_1.message);
46 process.exit(typeof e_1.code === 'number' ? e_1.code : 1);
47 return [3 /*break*/, 3];
48 case 3: return [2 /*return*/];
49 }
50 });
51 }); })();
52 }
53});
54//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9nZ2VyKSB7XG4gICAgICAgIGNvbnN0IGR1cmF0aW9uID0gTWF0aC5yb3VuZCgoRGF0ZS5ub3coKSAtIHN0YXJ0VGltZSkgLyAxMDAwKTtcbiAgICAgICAgb3B0aW9ucy5sb2dnZXIuZGVidWcoYFJ1biBuZ2NjIGluICR7ZHVyYXRpb259cy5gKTtcbiAgICAgIH1cbiAgICAgIHByb2Nlc3MuZXhpdENvZGUgPSAwO1xuICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgIGNvbnNvbGUuZXJyb3IoZS5zdGFjayB8fCBlLm1lc3NhZ2UpO1xuICAgICAgcHJvY2Vzcy5leGl0KHR5cGVvZiBlLmNvZGUgPT09ICdudW1iZXInID8gZS5jb2RlIDogMSk7XG4gICAgfVxuICB9KSgpO1xufVxuIl19
Note: See TracBrowser for help on using the repository browser.