source: trip-planner-front/node_modules/@angular/cli/commands/extract-i18n-impl.js@ 6a3a178

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

initial commit

  • Property mode set to 100644
File size: 1.3 KB
Line 
1"use strict";
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.ExtractI18nCommand = void 0;
11const architect_command_1 = require("../models/architect-command");
12class ExtractI18nCommand extends architect_command_1.ArchitectCommand {
13 constructor() {
14 super(...arguments);
15 this.target = 'extract-i18n';
16 }
17 async run(options) {
18 const version = process.version.substr(1).split('.');
19 if (Number(version[0]) === 12 && Number(version[1]) === 0) {
20 this.logger.error('Due to a defect in Node.js 12.0, the command is not supported on this Node.js version. ' +
21 'Please upgrade to Node.js 12.1 or later.');
22 return 1;
23 }
24 const commandName = process.argv[2];
25 if (['xi18n', 'i18n-extract'].includes(commandName)) {
26 this.logger.warn(`Warning: "ng ${commandName}" has been deprecated and will be removed in a future major version. ` +
27 'Please use "ng extract-i18n" instead.');
28 }
29 return this.runArchitectTarget(options);
30 }
31}
32exports.ExtractI18nCommand = ExtractI18nCommand;
Note: See TracBrowser for help on using the repository browser.