From 291803c31f829fe0d32bb3207bc11def95a7408c Mon Sep 17 00:00:00 2001 From: Nevena Bojovic Date: Tue, 1 Mar 2022 20:05:50 +0100 Subject: Urađena test aplikacija. Povezan front i back. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../@angular/cli/commands/add-impl.d.ts | 21 + .../node_modules/@angular/cli/commands/add-impl.js | 339 ++++++++++ .../node_modules/@angular/cli/commands/add.d.ts | 42 ++ .../node_modules/@angular/cli/commands/add.js | 10 + .../node_modules/@angular/cli/commands/add.json | 54 ++ .../node_modules/@angular/cli/commands/add.md | 10 + .../@angular/cli/commands/analytics-impl.d.ts | 13 + .../@angular/cli/commands/analytics-impl.js | 80 +++ .../@angular/cli/commands/analytics-long.md | 8 + .../@angular/cli/commands/analytics.d.ts | 46 ++ .../@angular/cli/commands/analytics.js | 31 + .../@angular/cli/commands/analytics.json | 37 + .../@angular/cli/commands/build-impl.d.ts | 14 + .../@angular/cli/commands/build-impl.js | 21 + .../@angular/cli/commands/build-long.md | 18 + .../node_modules/@angular/cli/commands/build.d.ts | 38 ++ .../node_modules/@angular/cli/commands/build.js | 10 + .../node_modules/@angular/cli/commands/build.json | 16 + .../@angular/cli/commands/config-impl.d.ts | 15 + .../@angular/cli/commands/config-impl.js | 167 +++++ .../@angular/cli/commands/config-long.md | 13 + .../node_modules/@angular/cli/commands/config.d.ts | 34 + .../node_modules/@angular/cli/commands/config.js | 10 + .../node_modules/@angular/cli/commands/config.json | 43 ++ .../@angular/cli/commands/definitions.json | 71 ++ .../@angular/cli/commands/deploy-impl.d.ts | 15 + .../@angular/cli/commands/deploy-impl.js | 36 + .../@angular/cli/commands/deploy-long.md | 22 + .../node_modules/@angular/cli/commands/deploy.d.ts | 30 + .../node_modules/@angular/cli/commands/deploy.js | 10 + .../node_modules/@angular/cli/commands/deploy.json | 34 + .../@angular/cli/commands/doc-impl.d.ts | 13 + .../node_modules/@angular/cli/commands/doc-impl.js | 71 ++ .../node_modules/@angular/cli/commands/doc.d.ts | 39 ++ .../node_modules/@angular/cli/commands/doc.js | 14 + .../node_modules/@angular/cli/commands/doc.json | 46 ++ .../@angular/cli/commands/e2e-impl.d.ts | 16 + .../node_modules/@angular/cli/commands/e2e-impl.js | 36 + .../node_modules/@angular/cli/commands/e2e-long.md | 4 + .../node_modules/@angular/cli/commands/e2e.d.ts | 37 + .../node_modules/@angular/cli/commands/e2e.js | 10 + .../node_modules/@angular/cli/commands/e2e.json | 17 + .../@angular/cli/commands/easter-egg-impl.d.ts | 12 + .../@angular/cli/commands/easter-egg-impl.js | 31 + .../@angular/cli/commands/easter-egg.d.ts | 14 + .../@angular/cli/commands/easter-egg.js | 10 + .../@angular/cli/commands/easter-egg.json | 12 + .../@angular/cli/commands/extract-i18n-impl.d.ts | 14 + .../@angular/cli/commands/extract-i18n-impl.js | 32 + .../@angular/cli/commands/extract-i18n.d.ts | 37 + .../@angular/cli/commands/extract-i18n.js | 10 + .../@angular/cli/commands/extract-i18n.json | 17 + .../@angular/cli/commands/generate-impl.d.ts | 18 + .../@angular/cli/commands/generate-impl.js | 89 +++ .../@angular/cli/commands/generate.d.ts | 37 + .../node_modules/@angular/cli/commands/generate.js | 10 + .../@angular/cli/commands/generate.json | 31 + .../@angular/cli/commands/help-impl.d.ts | 12 + .../@angular/cli/commands/help-impl.js | 26 + .../@angular/cli/commands/help-long.md | 7 + .../node_modules/@angular/cli/commands/help.d.ts | 17 + .../node_modules/@angular/cli/commands/help.js | 10 + .../node_modules/@angular/cli/commands/help.json | 13 + .../@angular/cli/commands/lint-impl.d.ts | 16 + .../@angular/cli/commands/lint-impl.js | 69 ++ .../@angular/cli/commands/lint-long.md | 20 + .../node_modules/@angular/cli/commands/lint.d.ts | 29 + .../node_modules/@angular/cli/commands/lint.js | 10 + .../node_modules/@angular/cli/commands/lint.json | 36 + .../@angular/cli/commands/new-impl.d.ts | 16 + .../node_modules/@angular/cli/commands/new-impl.js | 37 + .../node_modules/@angular/cli/commands/new.d.ts | 41 ++ .../node_modules/@angular/cli/commands/new.js | 10 + .../node_modules/@angular/cli/commands/new.json | 34 + .../node_modules/@angular/cli/commands/new.md | 16 + .../@angular/cli/commands/run-impl.d.ts | 13 + .../node_modules/@angular/cli/commands/run-impl.js | 22 + .../node_modules/@angular/cli/commands/run-long.md | 16 + .../node_modules/@angular/cli/commands/run.d.ts | 30 + .../node_modules/@angular/cli/commands/run.js | 10 + .../node_modules/@angular/cli/commands/run.json | 36 + .../@angular/cli/commands/serve-impl.d.ts | 15 + .../@angular/cli/commands/serve-impl.js | 24 + .../node_modules/@angular/cli/commands/serve.d.ts | 37 + .../node_modules/@angular/cli/commands/serve.js | 10 + .../node_modules/@angular/cli/commands/serve.json | 17 + .../@angular/cli/commands/test-impl.d.ts | 15 + .../@angular/cli/commands/test-impl.js | 22 + .../@angular/cli/commands/test-long.md | 2 + .../node_modules/@angular/cli/commands/test.d.ts | 37 + .../node_modules/@angular/cli/commands/test.js | 10 + .../node_modules/@angular/cli/commands/test.json | 17 + .../@angular/cli/commands/update-impl.d.ts | 38 ++ .../@angular/cli/commands/update-impl.js | 748 +++++++++++++++++++++ .../@angular/cli/commands/update-long.md | 22 + .../node_modules/@angular/cli/commands/update.d.ts | 65 ++ .../node_modules/@angular/cli/commands/update.js | 10 + .../node_modules/@angular/cli/commands/update.json | 84 +++ .../@angular/cli/commands/version-impl.d.ts | 17 + .../@angular/cli/commands/version-impl.js | 179 +++++ .../@angular/cli/commands/version.d.ts | 17 + .../node_modules/@angular/cli/commands/version.js | 10 + .../@angular/cli/commands/version.json | 13 + 103 files changed, 3940 insertions(+) create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.md create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics-long.md create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build-long.md create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config-long.md create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/definitions.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy-long.md create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e-long.md create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help-long.md create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint-long.md create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.md create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run-long.md create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test-long.md create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update-long.md create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update.json create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version-impl.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version-impl.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version.d.ts create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version.js create mode 100644 sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version.json (limited to 'sandbox/testAppNevena/Front/node_modules/@angular/cli/commands') diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add-impl.d.ts new file mode 100644 index 00000000..541117ce --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add-impl.d.ts @@ -0,0 +1,21 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { Arguments } from '../models/interface'; +import { SchematicCommand } from '../models/schematic-command'; +import { Schema as AddCommandSchema } from './add'; +export declare class AddCommand extends SchematicCommand { + readonly allowPrivateSchematics = true; + initialize(options: AddCommandSchema & Arguments): Promise; + run(options: AddCommandSchema & Arguments): Promise; + private isProjectVersionValid; + reportAnalytics(paths: string[], options: AddCommandSchema & Arguments, dimensions?: (boolean | number | string)[], metrics?: (boolean | number | string)[]): Promise; + private isPackageInstalled; + private executeSchematic; + private findProjectVersion; + private hasMismatchedPeer; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add-impl.js new file mode 100644 index 00000000..aa9f5e05 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add-impl.js @@ -0,0 +1,339 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AddCommand = void 0; +const core_1 = require("@angular-devkit/core"); +const tools_1 = require("@angular-devkit/schematics/tools"); +const npm_package_arg_1 = __importDefault(require("npm-package-arg")); +const path_1 = require("path"); +const semver_1 = require("semver"); +const workspace_schema_1 = require("../lib/config/workspace-schema"); +const analytics_1 = require("../models/analytics"); +const schematic_command_1 = require("../models/schematic-command"); +const color_1 = require("../utilities/color"); +const install_package_1 = require("../utilities/install-package"); +const package_manager_1 = require("../utilities/package-manager"); +const package_metadata_1 = require("../utilities/package-metadata"); +const prompt_1 = require("../utilities/prompt"); +const spinner_1 = require("../utilities/spinner"); +const tty_1 = require("../utilities/tty"); +/** + * The set of packages that should have certain versions excluded from consideration + * when attempting to find a compatible version for a package. + * The key is a package name and the value is a SemVer range of versions to exclude. + */ +const packageVersionExclusions = { + // @angular/localize@9.x versions do not have peer dependencies setup + '@angular/localize': '9.x', +}; +class AddCommand extends schematic_command_1.SchematicCommand { + constructor() { + super(...arguments); + this.allowPrivateSchematics = true; + } + async initialize(options) { + if (options.registry) { + return super.initialize({ ...options, packageRegistry: options.registry }); + } + else { + return super.initialize(options); + } + } + // eslint-disable-next-line max-lines-per-function + async run(options) { + var _a; + await (0, package_manager_1.ensureCompatibleNpm)(this.context.root); + if (!options.collection) { + this.logger.fatal(`The "ng add" command requires a name argument to be specified eg. ` + + `${color_1.colors.yellow('ng add [name] ')}. For more details, use "ng help".`); + return 1; + } + let packageIdentifier; + try { + packageIdentifier = (0, npm_package_arg_1.default)(options.collection); + } + catch (e) { + this.logger.error(e.message); + return 1; + } + if (packageIdentifier.name && + packageIdentifier.registry && + this.isPackageInstalled(packageIdentifier.name)) { + const validVersion = await this.isProjectVersionValid(packageIdentifier); + if (validVersion) { + // Already installed so just run schematic + this.logger.info('Skipping installation: Package already installed'); + return this.executeSchematic(packageIdentifier.name, options['--']); + } + } + const spinner = new spinner_1.Spinner(); + spinner.start('Determining package manager...'); + const packageManager = await (0, package_manager_1.getPackageManager)(this.context.root); + const usingYarn = packageManager === workspace_schema_1.PackageManager.Yarn; + spinner.info(`Using package manager: ${color_1.colors.grey(packageManager)}`); + if (packageIdentifier.name && packageIdentifier.type === 'tag' && !packageIdentifier.rawSpec) { + // only package name provided; search for viable version + // plus special cases for packages that did not have peer deps setup + spinner.start('Searching for compatible package version...'); + let packageMetadata; + try { + packageMetadata = await (0, package_metadata_1.fetchPackageMetadata)(packageIdentifier.name, this.logger, { + registry: options.registry, + usingYarn, + verbose: options.verbose, + }); + } + catch (e) { + spinner.fail('Unable to load package information from registry: ' + e.message); + return 1; + } + // Start with the version tagged as `latest` if it exists + const latestManifest = packageMetadata.tags['latest']; + if (latestManifest) { + packageIdentifier = npm_package_arg_1.default.resolve(latestManifest.name, latestManifest.version); + } + // Adjust the version based on name and peer dependencies + if (latestManifest && Object.keys(latestManifest.peerDependencies).length === 0) { + if (latestManifest.name === '@angular/pwa') { + const version = await this.findProjectVersion('@angular/cli'); + const semverOptions = { includePrerelease: true }; + if (version && + (((0, semver_1.validRange)(version) && (0, semver_1.intersects)(version, '7', semverOptions)) || + ((0, semver_1.valid)(version) && (0, semver_1.satisfies)(version, '7', semverOptions)))) { + packageIdentifier = npm_package_arg_1.default.resolve('@angular/pwa', '0.12'); + } + } + spinner.succeed(`Found compatible package version: ${color_1.colors.grey(packageIdentifier.toString())}.`); + } + else if (!latestManifest || (await this.hasMismatchedPeer(latestManifest))) { + // 'latest' is invalid so search for most recent matching package + const versionExclusions = packageVersionExclusions[packageMetadata.name]; + const versionManifests = Object.values(packageMetadata.versions).filter((value) => { + // Prerelease versions are not stable and should not be considered by default + if ((0, semver_1.prerelease)(value.version)) { + return false; + } + // Deprecated versions should not be used or considered + if (value.deprecated) { + return false; + } + // Excluded package versions should not be considered + if (versionExclusions && (0, semver_1.satisfies)(value.version, versionExclusions)) { + return false; + } + return true; + }); + versionManifests.sort((a, b) => (0, semver_1.rcompare)(a.version, b.version, true)); + let newIdentifier; + for (const versionManifest of versionManifests) { + if (!(await this.hasMismatchedPeer(versionManifest))) { + newIdentifier = npm_package_arg_1.default.resolve(versionManifest.name, versionManifest.version); + break; + } + } + if (!newIdentifier) { + spinner.warn("Unable to find compatible package. Using 'latest' tag."); + } + else { + packageIdentifier = newIdentifier; + spinner.succeed(`Found compatible package version: ${color_1.colors.grey(packageIdentifier.toString())}.`); + } + } + else { + spinner.succeed(`Found compatible package version: ${color_1.colors.grey(packageIdentifier.toString())}.`); + } + } + let collectionName = packageIdentifier.name; + let savePackage; + try { + spinner.start('Loading package information from registry...'); + const manifest = await (0, package_metadata_1.fetchPackageManifest)(packageIdentifier.toString(), this.logger, { + registry: options.registry, + verbose: options.verbose, + usingYarn, + }); + savePackage = (_a = manifest['ng-add']) === null || _a === void 0 ? void 0 : _a.save; + collectionName = manifest.name; + if (await this.hasMismatchedPeer(manifest)) { + spinner.warn('Package has unmet peer dependencies. Adding the package may not succeed.'); + } + else { + spinner.succeed(`Package information loaded.`); + } + } + catch (e) { + spinner.fail(`Unable to fetch package information for '${packageIdentifier}': ${e.message}`); + return 1; + } + if (!options.skipConfirmation) { + const confirmationResponse = await (0, prompt_1.askConfirmation)(`\nThe package ${color_1.colors.blue(packageIdentifier.raw)} will be installed and executed.\n` + + 'Would you like to proceed?', true, false); + if (!confirmationResponse) { + if (!(0, tty_1.isTTY)()) { + this.logger.error('No terminal detected. ' + + `'--skip-confirmation' can be used to bypass installation confirmation. ` + + `Ensure package name is correct prior to '--skip-confirmation' option usage.`); + } + this.logger.error('Command aborted.'); + return 1; + } + } + if (savePackage === false) { + // Temporary packages are located in a different directory + // Hence we need to resolve them using the temp path + const { status, tempNodeModules } = await (0, install_package_1.installTempPackage)(packageIdentifier.raw, packageManager, options.registry ? [`--registry="${options.registry}"`] : undefined); + const resolvedCollectionPath = require.resolve((0, path_1.join)(collectionName, 'package.json'), { + paths: [tempNodeModules], + }); + if (status !== 0) { + return status; + } + collectionName = (0, path_1.dirname)(resolvedCollectionPath); + } + else { + const status = await (0, install_package_1.installPackage)(packageIdentifier.raw, packageManager, savePackage, options.registry ? [`--registry="${options.registry}"`] : undefined); + if (status !== 0) { + return status; + } + } + return this.executeSchematic(collectionName, options['--']); + } + async isProjectVersionValid(packageIdentifier) { + if (!packageIdentifier.name) { + return false; + } + let validVersion = false; + const installedVersion = await this.findProjectVersion(packageIdentifier.name); + if (installedVersion) { + if (packageIdentifier.type === 'range' && packageIdentifier.fetchSpec) { + validVersion = (0, semver_1.satisfies)(installedVersion, packageIdentifier.fetchSpec); + } + else if (packageIdentifier.type === 'version') { + const v1 = (0, semver_1.valid)(packageIdentifier.fetchSpec); + const v2 = (0, semver_1.valid)(installedVersion); + validVersion = v1 !== null && v1 === v2; + } + else if (!packageIdentifier.rawSpec) { + validVersion = true; + } + } + return validVersion; + } + async reportAnalytics(paths, options, dimensions = [], metrics = []) { + const collection = options.collection; + // Add the collection if it's safe listed. + if (collection && (0, analytics_1.isPackageNameSafeForAnalytics)(collection)) { + dimensions[core_1.analytics.NgCliAnalyticsDimensions.NgAddCollection] = collection; + } + else { + delete dimensions[core_1.analytics.NgCliAnalyticsDimensions.NgAddCollection]; + } + return super.reportAnalytics(paths, options, dimensions, metrics); + } + isPackageInstalled(name) { + try { + require.resolve((0, path_1.join)(name, 'package.json'), { paths: [this.context.root] }); + return true; + } + catch (e) { + if (e.code !== 'MODULE_NOT_FOUND') { + throw e; + } + } + return false; + } + async executeSchematic(collectionName, options = []) { + const runOptions = { + schematicOptions: options, + collectionName, + schematicName: 'ng-add', + dryRun: false, + force: false, + }; + try { + return await this.runSchematic(runOptions); + } + catch (e) { + if (e instanceof tools_1.NodePackageDoesNotSupportSchematics) { + this.logger.error(core_1.tags.oneLine ` + The package that you are trying to add does not support schematics. You can try using + a different version of the package or contact the package author to add ng-add support. + `); + return 1; + } + throw e; + } + } + async findProjectVersion(name) { + let installedPackage; + try { + installedPackage = require.resolve((0, path_1.join)(name, 'package.json'), { + paths: [this.context.root], + }); + } + catch { } + if (installedPackage) { + try { + const installed = await (0, package_metadata_1.fetchPackageManifest)((0, path_1.dirname)(installedPackage), this.logger); + return installed.version; + } + catch { } + } + let projectManifest; + try { + projectManifest = await (0, package_metadata_1.fetchPackageManifest)(this.context.root, this.logger); + } + catch { } + if (projectManifest) { + const version = projectManifest.dependencies[name] || projectManifest.devDependencies[name]; + if (version) { + return version; + } + } + return null; + } + async hasMismatchedPeer(manifest) { + for (const peer in manifest.peerDependencies) { + let peerIdentifier; + try { + peerIdentifier = npm_package_arg_1.default.resolve(peer, manifest.peerDependencies[peer]); + } + catch { + this.logger.warn(`Invalid peer dependency ${peer} found in package.`); + continue; + } + if (peerIdentifier.type === 'version' || peerIdentifier.type === 'range') { + try { + const version = await this.findProjectVersion(peer); + if (!version) { + continue; + } + const options = { includePrerelease: true }; + if (!(0, semver_1.intersects)(version, peerIdentifier.rawSpec, options) && + !(0, semver_1.satisfies)(version, peerIdentifier.rawSpec, options)) { + return true; + } + } + catch { + // Not found or invalid so ignore + continue; + } + } + else { + // type === 'tag' | 'file' | 'directory' | 'remote' | 'git' + // Cannot accurately compare these as the tag/location may have changed since install + } + } + return false; + } +} +exports.AddCommand = AddCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.d.ts new file mode 100644 index 00000000..a360f489 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.d.ts @@ -0,0 +1,42 @@ +/** + * Adds support for an external library to your project. + */ +export interface Schema { + /** + * The package to be added. + */ + collection?: string; + /** + * Disable interactive input prompts for options with a default. + */ + defaults?: boolean; + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; + /** + * Enable interactive input prompts. + */ + interactive?: boolean; + /** + * The NPM registry to use. + */ + registry?: string; + /** + * Skip asking a confirmation prompt before installing and executing the package. Ensure + * package name is correct prior to using this option. + */ + skipConfirmation?: boolean; + /** + * Display additional details about internal operations during execution. + */ + verbose?: boolean; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.json new file mode 100644 index 00000000..99cd82d8 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.json @@ -0,0 +1,54 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/add.json", + "description": "Adds support for an external library to your project.", + "$longDescription": "./add.md", + + "$scope": "in", + "$impl": "./add-impl#AddCommand", + + "type": "object", + "allOf": [ + { + "properties": { + "collection": { + "type": "string", + "description": "The package to be added.", + "$default": { + "$source": "argv", + "index": 0 + } + }, + "registry": { + "description": "The NPM registry to use.", + "type": "string", + "oneOf": [ + { + "format": "uri" + }, + { + "format": "hostname" + } + ] + }, + "verbose": { + "description": "Display additional details about internal operations during execution.", + "type": "boolean", + "default": false + }, + "skipConfirmation": { + "description": "Skip asking a confirmation prompt before installing and executing the package. Ensure package name is correct prior to using this option.", + "type": "boolean", + "default": false + } + }, + "required": [] + }, + { + "$ref": "./definitions.json#/definitions/interactive" + }, + { + "$ref": "./definitions.json#/definitions/base" + } + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.md b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.md new file mode 100644 index 00000000..09cd2e23 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/add.md @@ -0,0 +1,10 @@ +Adds the npm package for a published library to your workspace, and configures +the project in the current working directory (or the default project if you are +not in a project directory) to use that library, as specified by the library's schematic. +For example, adding `@angular/pwa` configures your project for PWA support: + +```bash +ng add @angular/pwa +``` + +The default project is the value of `defaultProject` in `angular.json`. diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics-impl.d.ts new file mode 100644 index 00000000..3c9ba9b0 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics-impl.d.ts @@ -0,0 +1,13 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { Command } from '../models/command'; +import { Arguments } from '../models/interface'; +import { Schema as AnalyticsCommandSchema } from './analytics'; +export declare class AnalyticsCommand extends Command { + run(options: AnalyticsCommandSchema & Arguments): Promise<0 | 1 | 2 | 3 | 4>; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics-impl.js new file mode 100644 index 00000000..9384ee63 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics-impl.js @@ -0,0 +1,80 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AnalyticsCommand = void 0; +const analytics_1 = require("../models/analytics"); +const command_1 = require("../models/command"); +const analytics_2 = require("./analytics"); +class AnalyticsCommand extends command_1.Command { + async run(options) { + // Our parser does not support positional enums (won't report invalid parameters). Do the + // validation manually. + // TODO(hansl): fix parser to better support positionals. This would be a breaking change. + if (options.settingOrProject === undefined) { + if (options['--']) { + // The user passed positional arguments but they didn't validate. + this.logger.error(`Argument ${JSON.stringify(options['--'][0])} is invalid.`); + this.logger.error(`Please provide one of the following value: on, off, ci or project.`); + return 1; + } + else { + // No argument were passed. + await this.printHelp(); + return 2; + } + } + else if (options.settingOrProject == analytics_2.SettingOrProject.Project && + options.projectSetting === undefined) { + this.logger.error(`Argument ${JSON.stringify(options.settingOrProject)} requires a second ` + + `argument of one of the following value: on, off.`); + return 2; + } + try { + switch (options.settingOrProject) { + case analytics_2.SettingOrProject.Off: + (0, analytics_1.setAnalyticsConfig)('global', false); + break; + case analytics_2.SettingOrProject.On: + (0, analytics_1.setAnalyticsConfig)('global', true); + break; + case analytics_2.SettingOrProject.Ci: + (0, analytics_1.setAnalyticsConfig)('global', 'ci'); + break; + case analytics_2.SettingOrProject.Project: + switch (options.projectSetting) { + case analytics_2.ProjectSetting.Off: + (0, analytics_1.setAnalyticsConfig)('local', false); + break; + case analytics_2.ProjectSetting.On: + (0, analytics_1.setAnalyticsConfig)('local', true); + break; + case analytics_2.ProjectSetting.Prompt: + await (0, analytics_1.promptProjectAnalytics)(true); + break; + default: + await this.printHelp(); + return 3; + } + break; + case analytics_2.SettingOrProject.Prompt: + await (0, analytics_1.promptGlobalAnalytics)(true); + break; + default: + await this.printHelp(); + return 4; + } + } + catch (err) { + this.logger.fatal(err.message); + return 1; + } + return 0; + } +} +exports.AnalyticsCommand = AnalyticsCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics-long.md b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics-long.md new file mode 100644 index 00000000..87b9925d --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics-long.md @@ -0,0 +1,8 @@ +The value of _settingOrProject_ is one of the following. + +- "on" : Enables analytics gathering and reporting for the user. +- "off" : Disables analytics gathering and reporting for the user. +- "ci" : Enables analytics and configures reporting for use with Continuous Integration, + which uses a common CI user. +- "prompt" : Prompts the user to set the status interactively. +- "project" : Sets the default status for the project to the _projectSetting_ value, which can be any of the other values. The _projectSetting_ argument is ignored for all other values of _settingOrProject_. diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics.d.ts new file mode 100644 index 00000000..8195548e --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics.d.ts @@ -0,0 +1,46 @@ +/** + * Configures the gathering of Angular CLI usage metrics. See + * https://angular.io/cli/usage-analytics-gathering. + */ +export interface Schema { + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; + /** + * Sets the default analytics enablement status for the project. + */ + projectSetting?: ProjectSetting; + /** + * Directly enables or disables all usage analytics for the user, or prompts the user to set + * the status interactively, or sets the default status for the project. + */ + settingOrProject: SettingOrProject; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} +/** + * Sets the default analytics enablement status for the project. + */ +export declare enum ProjectSetting { + Off = "off", + On = "on", + Prompt = "prompt" +} +/** + * Directly enables or disables all usage analytics for the user, or prompts the user to set + * the status interactively, or sets the default status for the project. + */ +export declare enum SettingOrProject { + Ci = "ci", + Off = "off", + On = "on", + Project = "project", + Prompt = "prompt" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics.js new file mode 100644 index 00000000..44ff9963 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics.js @@ -0,0 +1,31 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SettingOrProject = exports.ProjectSetting = exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); +/** + * Sets the default analytics enablement status for the project. + */ +var ProjectSetting; +(function (ProjectSetting) { + ProjectSetting["Off"] = "off"; + ProjectSetting["On"] = "on"; + ProjectSetting["Prompt"] = "prompt"; +})(ProjectSetting = exports.ProjectSetting || (exports.ProjectSetting = {})); +/** + * Directly enables or disables all usage analytics for the user, or prompts the user to set + * the status interactively, or sets the default status for the project. + */ +var SettingOrProject; +(function (SettingOrProject) { + SettingOrProject["Ci"] = "ci"; + SettingOrProject["Off"] = "off"; + SettingOrProject["On"] = "on"; + SettingOrProject["Project"] = "project"; + SettingOrProject["Prompt"] = "prompt"; +})(SettingOrProject = exports.SettingOrProject || (exports.SettingOrProject = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics.json new file mode 100644 index 00000000..ee2612b2 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/analytics.json @@ -0,0 +1,37 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/analytics.json", + "description": "Configures the gathering of Angular CLI usage metrics. See https://angular.io/cli/usage-analytics-gathering.", + "$longDescription": "./analytics-long.md", + + "$aliases": [], + "$scope": "all", + "$type": "native", + "$impl": "./analytics-impl#AnalyticsCommand", + + "type": "object", + "allOf": [ + { + "properties": { + "settingOrProject": { + "enum": ["on", "off", "ci", "project", "prompt"], + "description": "Directly enables or disables all usage analytics for the user, or prompts the user to set the status interactively, or sets the default status for the project.", + "$default": { + "$source": "argv", + "index": 0 + } + }, + "projectSetting": { + "enum": ["on", "off", "prompt"], + "description": "Sets the default analytics enablement status for the project.", + "$default": { + "$source": "argv", + "index": 1 + } + } + }, + "required": ["settingOrProject"] + }, + { "$ref": "./definitions.json#/definitions/base" } + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build-impl.d.ts new file mode 100644 index 00000000..731100fb --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build-impl.d.ts @@ -0,0 +1,14 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command'; +import { Arguments } from '../models/interface'; +import { Schema as BuildCommandSchema } from './build'; +export declare class BuildCommand extends ArchitectCommand { + readonly target = "build"; + run(options: ArchitectCommandOptions & Arguments): Promise; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build-impl.js new file mode 100644 index 00000000..636d5edb --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build-impl.js @@ -0,0 +1,21 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BuildCommand = void 0; +const architect_command_1 = require("../models/architect-command"); +class BuildCommand extends architect_command_1.ArchitectCommand { + constructor() { + super(...arguments); + this.target = 'build'; + } + async run(options) { + return this.runArchitectTarget(options); + } +} +exports.BuildCommand = BuildCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build-long.md b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build-long.md new file mode 100644 index 00000000..57bf9a16 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build-long.md @@ -0,0 +1,18 @@ +The command can be used to build a project of type "application" or "library". +When used to build a library, a different builder is invoked, and only the `ts-config`, `configuration`, and `watch` options are applied. +All other options apply only to building applications. + +The application builder uses the [webpack](https://webpack.js.org/) build tool, with default configuration options specified in the workspace configuration file (`angular.json`) or with a named alternative configuration. +A "development" configuration is created by default when you use the CLI to create the project, and you can use that configuration by specifying the `--configuration development`. + +The configuration options generally correspond to the command options. +You can override individual configuration defaults by specifying the corresponding options on the command line. +The command can accept option names given in either dash-case or camelCase. +Note that in the configuration file, you must specify names in camelCase. + +Some additional options can only be set through the configuration file, +either by direct editing or with the `ng config` command. +These include `assets`, `styles`, and `scripts` objects that provide runtime-global resources to include in the project. +Resources in CSS, such as images and fonts, are automatically written and fingerprinted at the root of the output folder. + +For further details, see [Workspace Configuration](guide/workspace-config). diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build.d.ts new file mode 100644 index 00000000..8f6e1596 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build.d.ts @@ -0,0 +1,38 @@ +/** + * Compiles an Angular app into an output directory named dist/ at the given output path. + * Must be executed from within a workspace directory. + */ +export interface Schema { + /** + * One or more named builder configurations as a comma-separated list as specified in the + * "configurations" section of angular.json. + * The builder uses the named configurations to run the given target. + * For more information, see + * https://angular.io/guide/workspace-config#alternate-build-configurations. + * Setting this explicitly overrides the "--prod" flag. + */ + configuration?: string; + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; + /** + * Shorthand for "--configuration=production". + * Set the build configuration to the production target. + * By default, the production target is set up in the workspace configuration such that all + * builds make use of bundling, limited tree-shaking, and also limited dead code elimination. + */ + prod?: boolean; + /** + * The name of the project to build. Can be an application or a library. + */ + project?: string; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build.json new file mode 100644 index 00000000..df9d93b8 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/build.json @@ -0,0 +1,16 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/build.json", + "description": "Compiles an Angular app into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.", + "$longDescription": "./build-long.md", + + "$aliases": ["b"], + "$scope": "in", + "$type": "architect", + "$impl": "./build-impl#BuildCommand", + + "allOf": [ + { "$ref": "./definitions.json#/definitions/architect" }, + { "$ref": "./definitions.json#/definitions/base" } + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config-impl.d.ts new file mode 100644 index 00000000..9e64b156 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config-impl.d.ts @@ -0,0 +1,15 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { Command } from '../models/command'; +import { Arguments } from '../models/interface'; +import { Schema as ConfigCommandSchema } from './config'; +export declare class ConfigCommand extends Command { + run(options: ConfigCommandSchema & Arguments): Promise<0 | 1>; + private get; + private set; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config-impl.js new file mode 100644 index 00000000..9c8b75ba --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config-impl.js @@ -0,0 +1,167 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ConfigCommand = void 0; +const core_1 = require("@angular-devkit/core"); +const uuid_1 = require("uuid"); +const command_1 = require("../models/command"); +const interface_1 = require("../models/interface"); +const config_1 = require("../utilities/config"); +const json_file_1 = require("../utilities/json-file"); +const validCliPaths = new Map([ + ['cli.warnings.versionMismatch', undefined], + ['cli.defaultCollection', undefined], + ['cli.packageManager', undefined], + ['cli.analytics', undefined], + ['cli.analyticsSharing.tracking', undefined], + ['cli.analyticsSharing.uuid', (v) => (v === '' ? (0, uuid_1.v4)() : `${v}`)], + ['cli.cache.enabled', undefined], + ['cli.cache.environment', undefined], + ['cli.cache.path', undefined], +]); +/** + * Splits a JSON path string into fragments. Fragments can be used to get the value referenced + * by the path. For example, a path of "a[3].foo.bar[2]" would give you a fragment array of + * ["a", 3, "foo", "bar", 2]. + * @param path The JSON string to parse. + * @returns {(string|number)[]} The fragments for the string. + * @private + */ +function parseJsonPath(path) { + const fragments = (path || '').split(/\./g); + const result = []; + while (fragments.length > 0) { + const fragment = fragments.shift(); + if (fragment == undefined) { + break; + } + const match = fragment.match(/([^[]+)((\[.*\])*)/); + if (!match) { + throw new Error('Invalid JSON path.'); + } + result.push(match[1]); + if (match[2]) { + const indices = match[2] + .slice(1, -1) + .split('][') + .map((x) => (/^\d$/.test(x) ? +x : x.replace(/"|'/g, ''))); + result.push(...indices); + } + } + return result.filter((fragment) => fragment != null); +} +function normalizeValue(value) { + const valueString = `${value}`.trim(); + switch (valueString) { + case 'true': + return true; + case 'false': + return false; + case 'null': + return null; + case 'undefined': + return undefined; + } + if (isFinite(+valueString)) { + return +valueString; + } + try { + // We use `JSON.parse` instead of `parseJson` because the latter will parse UUIDs + // and convert them into a numberic entities. + // Example: 73b61974-182c-48e4-b4c6-30ddf08c5c98 -> 73. + // These values should never contain comments, therefore using `JSON.parse` is safe. + return JSON.parse(valueString); + } + catch { + return value; + } +} +class ConfigCommand extends command_1.Command { + async run(options) { + const level = options.global ? 'global' : 'local'; + if (!options.global) { + await this.validateScope(interface_1.CommandScope.InProject); + } + let [config] = (0, config_1.getWorkspaceRaw)(level); + if (options.global && !config) { + try { + if ((0, config_1.migrateLegacyGlobalConfig)()) { + config = (0, config_1.getWorkspaceRaw)(level)[0]; + this.logger.info(core_1.tags.oneLine ` + We found a global configuration that was used in Angular CLI 1. + It has been automatically migrated.`); + } + } + catch { } + } + if (options.value == undefined) { + if (!config) { + this.logger.error('No config found.'); + return 1; + } + return this.get(config, options); + } + else { + return this.set(options); + } + } + get(jsonFile, options) { + let value; + if (options.jsonPath) { + value = jsonFile.get(parseJsonPath(options.jsonPath)); + } + else { + value = jsonFile.content; + } + if (value === undefined) { + this.logger.error('Value cannot be found.'); + return 1; + } + else if (typeof value === 'string') { + this.logger.info(value); + } + else { + this.logger.info(JSON.stringify(value, null, 2)); + } + return 0; + } + async set(options) { + var _a, _b, _c; + if (!((_a = options.jsonPath) === null || _a === void 0 ? void 0 : _a.trim())) { + throw new Error('Invalid Path.'); + } + if (options.global && + !options.jsonPath.startsWith('schematics.') && + !validCliPaths.has(options.jsonPath)) { + throw new Error('Invalid Path.'); + } + const [config, configPath] = (0, config_1.getWorkspaceRaw)(options.global ? 'global' : 'local'); + if (!config || !configPath) { + this.logger.error('Confguration file cannot be found.'); + return 1; + } + const jsonPath = parseJsonPath(options.jsonPath); + const value = (_c = (_b = validCliPaths.get(options.jsonPath)) === null || _b === void 0 ? void 0 : _b(options.value)) !== null && _c !== void 0 ? _c : options.value; + const modified = config.modify(jsonPath, normalizeValue(value)); + if (!modified) { + this.logger.error('Value cannot be found.'); + return 1; + } + try { + await (0, config_1.validateWorkspace)((0, json_file_1.parseJson)(config.content)); + } + catch (error) { + this.logger.fatal(error.message); + return 1; + } + config.save(); + return 0; + } +} +exports.ConfigCommand = ConfigCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config-long.md b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config-long.md new file mode 100644 index 00000000..7f44f63b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config-long.md @@ -0,0 +1,13 @@ +A workspace has a single CLI configuration file, `angular.json`, at the top level. +The `projects` object contains a configuration object for each project in the workspace. + +You can edit the configuration directly in a code editor, +or indirectly on the command line using this command. + +The configurable property names match command option names, +except that in the configuration file, all names must use camelCase, +while on the command line options can be given in either camelCase or dash-case. + +For further details, see [Workspace Configuration](guide/workspace-config). + +For configuration of CLI usage analytics, see [Gathering an Viewing CLI Usage Analytics](./usage-analytics-gathering). diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config.d.ts new file mode 100644 index 00000000..d2c6dac0 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config.d.ts @@ -0,0 +1,34 @@ +/** + * Retrieves or sets Angular configuration values in the angular.json file for the workspace. + */ +export interface Schema { + /** + * Access the global configuration in the caller's home directory. + */ + global?: boolean; + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; + /** + * The configuration key to set or query, in JSON path format. For example: + * "a[3].foo.bar[2]". If no new value is provided, returns the current value of this key. + */ + jsonPath?: string; + /** + * If provided, a new value for the given configuration key. + */ + value?: Value; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} +/** + * If provided, a new value for the given configuration key. + */ +export declare type Value = boolean | number | string; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config.json new file mode 100644 index 00000000..bec13fca --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/config.json @@ -0,0 +1,43 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/config.json", + "description": "Retrieves or sets Angular configuration values in the angular.json file for the workspace.", + "$longDescription": "", + + "$aliases": [], + "$scope": "all", + "$type": "native", + "$impl": "./config-impl#ConfigCommand", + + "type": "object", + "allOf": [ + { + "properties": { + "jsonPath": { + "type": "string", + "description": "The configuration key to set or query, in JSON path format. For example: \"a[3].foo.bar[2]\". If no new value is provided, returns the current value of this key.", + "$default": { + "$source": "argv", + "index": 0 + } + }, + "value": { + "type": ["string", "number", "boolean"], + "description": "If provided, a new value for the given configuration key.", + "$default": { + "$source": "argv", + "index": 1 + } + }, + "global": { + "type": "boolean", + "description": "Access the global configuration in the caller's home directory.", + "default": false, + "aliases": ["g"] + } + }, + "required": [] + }, + { "$ref": "./definitions.json#/definitions/base" } + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/definitions.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/definitions.json new file mode 100644 index 00000000..a1835534 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/definitions.json @@ -0,0 +1,71 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/definitions.json", + + "definitions": { + "architect": { + "properties": { + "project": { + "type": "string", + "description": "The name of the project to build. Can be an application or a library.", + "$default": { + "$source": "argv", + "index": 0 + } + }, + "configuration": { + "description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.\nSetting this explicitly overrides the \"--prod\" flag.", + "type": "string", + "aliases": ["c"] + }, + "prod": { + "description": "Shorthand for \"--configuration=production\".\nSet the build configuration to the production target.\nBy default, the production target is set up in the workspace configuration such that all builds make use of bundling, limited tree-shaking, and also limited dead code elimination.", + "type": "boolean", + "x-deprecated": "Use `--configuration production` instead." + } + } + }, + "base": { + "type": "object", + "properties": { + "help": { + "enum": [true, false, "json", "JSON"], + "description": "Shows a help message for this command in the console.", + "default": false + } + } + }, + "schematic": { + "type": "object", + "properties": { + "dryRun": { + "type": "boolean", + "default": false, + "aliases": ["d"], + "description": "Run through and reports activity without writing out results." + }, + "force": { + "type": "boolean", + "default": false, + "aliases": ["f"], + "description": "Force overwriting of existing files." + } + } + }, + "interactive": { + "type": "object", + "properties": { + "interactive": { + "type": "boolean", + "default": "true", + "description": "Enable interactive input prompts." + }, + "defaults": { + "type": "boolean", + "default": "false", + "description": "Disable interactive input prompts for options with a default." + } + } + } + } +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy-impl.d.ts new file mode 100644 index 00000000..692791a2 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy-impl.d.ts @@ -0,0 +1,15 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { ArchitectCommand } from '../models/architect-command'; +import { Arguments } from '../models/interface'; +import { Schema as DeployCommandSchema } from './deploy'; +export declare class DeployCommand extends ArchitectCommand { + readonly target = "deploy"; + readonly missingTargetError = "\nCannot find \"deploy\" target for the specified project.\n\nYou should add a package that implements deployment capabilities for your\nfavorite platform.\n\nFor example:\n ng add @angular/fire\n ng add @azure/ng-deploy\n\nFind more packages on npm https://www.npmjs.com/search?q=ng%20deploy\n"; + initialize(options: DeployCommandSchema & Arguments): Promise; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy-impl.js new file mode 100644 index 00000000..9ac6d501 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy-impl.js @@ -0,0 +1,36 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeployCommand = void 0; +const architect_command_1 = require("../models/architect-command"); +const BuilderMissing = ` +Cannot find "deploy" target for the specified project. + +You should add a package that implements deployment capabilities for your +favorite platform. + +For example: + ng add @angular/fire + ng add @azure/ng-deploy + +Find more packages on npm https://www.npmjs.com/search?q=ng%20deploy +`; +class DeployCommand extends architect_command_1.ArchitectCommand { + constructor() { + super(...arguments); + this.target = 'deploy'; + this.missingTargetError = BuilderMissing; + } + async initialize(options) { + if (!options.help) { + return super.initialize(options); + } + } +} +exports.DeployCommand = DeployCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy-long.md b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy-long.md new file mode 100644 index 00000000..9d13ad2a --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy-long.md @@ -0,0 +1,22 @@ +The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file. +When a project name is not supplied, executes the `deploy` builder for the default project. + +To use the `ng deploy` command, use `ng add` to add a package that implements deployment capabilities to your favorite platform. +Adding the package automatically updates your workspace configuration, adding a deployment +[CLI builder](guide/cli-builder). +For example: + +```json +"projects": { + "my-project": { + ... + "architect": { + ... + "deploy": { + "builder": "@angular/fire:deploy", + "options": {} + } + } + } +} +``` diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy.d.ts new file mode 100644 index 00000000..311cbe30 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy.d.ts @@ -0,0 +1,30 @@ +/** + * Invokes the deploy builder for a specified project or for the default project in the + * workspace. + */ +export interface Schema { + /** + * One or more named builder configurations as a comma-separated list as specified in the + * "configurations" section of angular.json. + * The builder uses the named configurations to run the given target. + * For more information, see + * https://angular.io/guide/workspace-config#alternate-build-configurations. + */ + configuration?: string; + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; + /** + * The name of the project to deploy. + */ + project?: string; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy.json new file mode 100644 index 00000000..cc7c860d --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/deploy.json @@ -0,0 +1,34 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/deploy.json", + "description": "Invokes the deploy builder for a specified project or for the default project in the workspace.", + "$longDescription": "./deploy-long.md", + + "$scope": "in", + "$type": "architect", + "$impl": "./deploy-impl#DeployCommand", + + "allOf": [ + { + "properties": { + "project": { + "type": "string", + "description": "The name of the project to deploy.", + "$default": { + "$source": "argv", + "index": 0 + } + }, + "configuration": { + "description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.", + "type": "string", + "aliases": ["c"] + } + }, + "required": [] + }, + { + "$ref": "./definitions.json#/definitions/base" + } + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc-impl.d.ts new file mode 100644 index 00000000..a075e997 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc-impl.d.ts @@ -0,0 +1,13 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { Command } from '../models/command'; +import { Arguments } from '../models/interface'; +import { Schema as DocCommandSchema } from './doc'; +export declare class DocCommand extends Command { + run(options: DocCommandSchema & Arguments): Promise<0 | undefined>; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc-impl.js new file mode 100644 index 00000000..ec9c1289 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc-impl.js @@ -0,0 +1,71 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DocCommand = void 0; +const open_1 = __importDefault(require("open")); +const command_1 = require("../models/command"); +class DocCommand extends command_1.Command { + async run(options) { + if (!options.keyword) { + this.logger.error('You should specify a keyword, for instance, `ng doc ActivatedRoute`.'); + return 0; + } + let domain = 'angular.io'; + if (options.version) { + // version can either be a string containing "next" + if (options.version == 'next') { + domain = 'next.angular.io'; + // or a number where version must be a valid Angular version (i.e. not 0, 1 or 3) + } + else if (!isNaN(+options.version) && ![0, 1, 3].includes(+options.version)) { + domain = `v${options.version}.angular.io`; + } + else { + this.logger.error('Version should either be a number (2, 4, 5, 6...) or "next"'); + return 0; + } + } + else { + // we try to get the current Angular version of the project + // and use it if we can find it + try { + /* eslint-disable-next-line import/no-extraneous-dependencies */ + const currentNgVersion = (await Promise.resolve().then(() => __importStar(require('@angular/core')))).VERSION.major; + domain = `v${currentNgVersion}.angular.io`; + } + catch { } + } + await (0, open_1.default)(options.search + ? `https://${domain}/api?query=${options.keyword}` + : `https://${domain}/docs?search=${options.keyword}`); + } +} +exports.DocCommand = DocCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc.d.ts new file mode 100644 index 00000000..d827a504 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc.d.ts @@ -0,0 +1,39 @@ +/** + * Opens the official Angular documentation (angular.io) in a browser, and searches for a + * given keyword. + */ +export interface Schema { + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; + /** + * The keyword to search for, as provided in the search bar in angular.io. + */ + keyword?: string; + /** + * Search all of angular.io. Otherwise, searches only API reference documentation. + */ + search?: boolean; + /** + * Contains the version of Angular to use for the documentation. If not provided, the + * command uses your current Angular core version. + */ + version?: VersionUnion; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} +/** + * Contains the version of Angular to use for the documentation. If not provided, the + * command uses your current Angular core version. + */ +export declare type VersionUnion = number | VersionEnum; +export declare enum VersionEnum { + Next = "next" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc.js new file mode 100644 index 00000000..c05374a6 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc.js @@ -0,0 +1,14 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VersionEnum = exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); +var VersionEnum; +(function (VersionEnum) { + VersionEnum["Next"] = "next"; +})(VersionEnum = exports.VersionEnum || (exports.VersionEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc.json new file mode 100644 index 00000000..bb01549c --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/doc.json @@ -0,0 +1,46 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/doc.json", + "description": "Opens the official Angular documentation (angular.io) in a browser, and searches for a given keyword.", + "$longDescription": "", + + "$aliases": ["d"], + "$type": "native", + "$impl": "./doc-impl#DocCommand", + + "type": "object", + "allOf": [ + { + "properties": { + "keyword": { + "type": "string", + "description": "The keyword to search for, as provided in the search bar in angular.io.", + "$default": { + "$source": "argv", + "index": 0 + } + }, + "search": { + "aliases": ["s"], + "type": "boolean", + "default": false, + "description": "Search all of angular.io. Otherwise, searches only API reference documentation." + }, + "version": { + "oneOf": [ + { + "type": "number", + "minimum": 4 + }, + { + "enum": [2, "next"] + } + ], + "description": "Contains the version of Angular to use for the documentation. If not provided, the command uses your current Angular core version." + } + }, + "required": [] + }, + { "$ref": "./definitions.json#/definitions/base" } + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e-impl.d.ts new file mode 100644 index 00000000..fc56351f --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e-impl.d.ts @@ -0,0 +1,16 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { ArchitectCommand } from '../models/architect-command'; +import { Arguments } from '../models/interface'; +import { Schema as E2eCommandSchema } from './e2e'; +export declare class E2eCommand extends ArchitectCommand { + readonly target = "e2e"; + readonly multiTarget = true; + readonly missingTargetError = "\nCannot find \"e2e\" target for the specified project.\n\nYou should add a package that implements end-to-end testing capabilities.\n\nFor example:\n Cypress: ng add @cypress/schematic\n Nightwatch: ng add @nightwatch/schematics\n WebdriverIO: ng add @wdio/schematics\n\nMore options will be added to the list as they become available.\n"; + initialize(options: E2eCommandSchema & Arguments): Promise; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e-impl.js new file mode 100644 index 00000000..9dacef0c --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e-impl.js @@ -0,0 +1,36 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.E2eCommand = void 0; +const architect_command_1 = require("../models/architect-command"); +class E2eCommand extends architect_command_1.ArchitectCommand { + constructor() { + super(...arguments); + this.target = 'e2e'; + this.multiTarget = true; + this.missingTargetError = ` +Cannot find "e2e" target for the specified project. + +You should add a package that implements end-to-end testing capabilities. + +For example: + Cypress: ng add @cypress/schematic + Nightwatch: ng add @nightwatch/schematics + WebdriverIO: ng add @wdio/schematics + +More options will be added to the list as they become available. +`; + } + async initialize(options) { + if (!options.help) { + return super.initialize(options); + } + } +} +exports.E2eCommand = E2eCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e-long.md b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e-long.md new file mode 100644 index 00000000..26363135 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e-long.md @@ -0,0 +1,4 @@ +The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file. +When a project name is not supplied, executes the `e2e` builder for the default project. + +To use the `ng e2e` command, use `ng add` to add a package that implements end-to-end testing capabilities. Adding the package automatically updates your workspace configuration, adding an `e2e` [CLI builder](guide/cli-builder). diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e.d.ts new file mode 100644 index 00000000..6238b817 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e.d.ts @@ -0,0 +1,37 @@ +/** + * Builds and serves an Angular app, then runs end-to-end tests. + */ +export interface Schema { + /** + * One or more named builder configurations as a comma-separated list as specified in the + * "configurations" section of angular.json. + * The builder uses the named configurations to run the given target. + * For more information, see + * https://angular.io/guide/workspace-config#alternate-build-configurations. + * Setting this explicitly overrides the "--prod" flag. + */ + configuration?: string; + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; + /** + * Shorthand for "--configuration=production". + * Set the build configuration to the production target. + * By default, the production target is set up in the workspace configuration such that all + * builds make use of bundling, limited tree-shaking, and also limited dead code elimination. + */ + prod?: boolean; + /** + * The name of the project to build. Can be an application or a library. + */ + project?: string; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e.json new file mode 100644 index 00000000..a8c8cccc --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/e2e.json @@ -0,0 +1,17 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/e2e.json", + "description": "Builds and serves an Angular app, then runs end-to-end tests.", + "$longDescription": "./e2e-long.md", + + "$aliases": ["e"], + "$scope": "in", + "$type": "architect", + "$impl": "./e2e-impl#E2eCommand", + + "type": "object", + "allOf": [ + { "$ref": "./definitions.json#/definitions/architect" }, + { "$ref": "./definitions.json#/definitions/base" } + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg-impl.d.ts new file mode 100644 index 00000000..714ca1e9 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg-impl.d.ts @@ -0,0 +1,12 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { Command } from '../models/command'; +import { Schema as AwesomeCommandSchema } from './easter-egg'; +export declare class AwesomeCommand extends Command { + run(): Promise; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg-impl.js new file mode 100644 index 00000000..eca816a6 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg-impl.js @@ -0,0 +1,31 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AwesomeCommand = void 0; +const command_1 = require("../models/command"); +const color_1 = require("../utilities/color"); +function pickOne(of) { + return of[Math.floor(Math.random() * of.length)]; +} +class AwesomeCommand extends command_1.Command { + async run() { + const phrase = pickOne([ + `You're on it, there's nothing for me to do!`, + `Let's take a look... nope, it's all good!`, + `You're doing fine.`, + `You're already doing great.`, + `Nothing to do; already awesome. Exiting.`, + `Error 418: As Awesome As Can Get.`, + `I spy with my little eye a great developer!`, + `Noop... already awesome.`, + ]); + this.logger.info(color_1.colors.green(phrase)); + } +} +exports.AwesomeCommand = AwesomeCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg.d.ts new file mode 100644 index 00000000..11f5a3f8 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg.d.ts @@ -0,0 +1,14 @@ +export interface Schema { + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg.json new file mode 100644 index 00000000..79d9e1bb --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/easter-egg.json @@ -0,0 +1,12 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/easter-egg.json", + "description": "", + "$longDescription": "", + "$hidden": true, + + "$impl": "./easter-egg-impl#AwesomeCommand", + + "type": "object", + "allOf": [{ "$ref": "./definitions.json#/definitions/base" }] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n-impl.d.ts new file mode 100644 index 00000000..bd8bcce8 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n-impl.d.ts @@ -0,0 +1,14 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { ArchitectCommand } from '../models/architect-command'; +import { Arguments } from '../models/interface'; +import { Schema as ExtractI18nCommandSchema } from './extract-i18n'; +export declare class ExtractI18nCommand extends ArchitectCommand { + readonly target = "extract-i18n"; + run(options: ExtractI18nCommandSchema & Arguments): Promise; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n-impl.js new file mode 100644 index 00000000..5f712df2 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n-impl.js @@ -0,0 +1,32 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ExtractI18nCommand = void 0; +const architect_command_1 = require("../models/architect-command"); +class ExtractI18nCommand extends architect_command_1.ArchitectCommand { + constructor() { + super(...arguments); + this.target = 'extract-i18n'; + } + async run(options) { + const version = process.version.substr(1).split('.'); + if (Number(version[0]) === 12 && Number(version[1]) === 0) { + this.logger.error('Due to a defect in Node.js 12.0, the command is not supported on this Node.js version. ' + + 'Please upgrade to Node.js 12.1 or later.'); + return 1; + } + const commandName = process.argv[2]; + if (['xi18n', 'i18n-extract'].includes(commandName)) { + this.logger.warn(`Warning: "ng ${commandName}" has been deprecated and will be removed in a future major version. ` + + 'Please use "ng extract-i18n" instead.'); + } + return this.runArchitectTarget(options); + } +} +exports.ExtractI18nCommand = ExtractI18nCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n.d.ts new file mode 100644 index 00000000..68c64b56 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n.d.ts @@ -0,0 +1,37 @@ +/** + * Extracts i18n messages from source code. + */ +export interface Schema { + /** + * One or more named builder configurations as a comma-separated list as specified in the + * "configurations" section of angular.json. + * The builder uses the named configurations to run the given target. + * For more information, see + * https://angular.io/guide/workspace-config#alternate-build-configurations. + * Setting this explicitly overrides the "--prod" flag. + */ + configuration?: string; + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; + /** + * Shorthand for "--configuration=production". + * Set the build configuration to the production target. + * By default, the production target is set up in the workspace configuration such that all + * builds make use of bundling, limited tree-shaking, and also limited dead code elimination. + */ + prod?: boolean; + /** + * The name of the project to build. Can be an application or a library. + */ + project?: string; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n.json new file mode 100644 index 00000000..2010fa89 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/extract-i18n.json @@ -0,0 +1,17 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/extract-i18n.json", + "description": "Extracts i18n messages from source code.", + "$longDescription": "", + + "$aliases": ["i18n-extract", "xi18n"], + "$scope": "in", + "$type": "architect", + "$impl": "./extract-i18n-impl#ExtractI18nCommand", + + "type": "object", + "allOf": [ + { "$ref": "./definitions.json#/definitions/architect" }, + { "$ref": "./definitions.json#/definitions/base" } + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate-impl.d.ts new file mode 100644 index 00000000..a21d6bf0 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate-impl.d.ts @@ -0,0 +1,18 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { Arguments } from '../models/interface'; +import { SchematicCommand } from '../models/schematic-command'; +import { Schema as GenerateCommandSchema } from './generate'; +export declare class GenerateCommand extends SchematicCommand { + longSchematicName: string | undefined; + initialize(options: GenerateCommandSchema & Arguments): Promise; + run(options: GenerateCommandSchema & Arguments): Promise; + reportAnalytics(paths: string[], options: GenerateCommandSchema & Arguments): Promise; + private parseSchematicInfo; + printHelp(): Promise; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate-impl.js new file mode 100644 index 00000000..9179df19 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate-impl.js @@ -0,0 +1,89 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GenerateCommand = void 0; +const schematic_command_1 = require("../models/schematic-command"); +const color_1 = require("../utilities/color"); +const json_schema_1 = require("../utilities/json-schema"); +class GenerateCommand extends schematic_command_1.SchematicCommand { + async initialize(options) { + // Fill up the schematics property of the command description. + const [collectionName, schematicName] = await this.parseSchematicInfo(options); + this.collectionName = collectionName; + this.schematicName = schematicName; + await super.initialize(options); + const collection = this.getCollection(collectionName); + const subcommands = {}; + const schematicNames = schematicName ? [schematicName] : collection.listSchematicNames(); + // Sort as a courtesy for the user. + schematicNames.sort(); + for (const name of schematicNames) { + const schematic = this.getSchematic(collection, name, true); + this.longSchematicName = schematic.description.name; + let subcommand; + if (schematic.description.schemaJson) { + subcommand = await (0, json_schema_1.parseJsonSchemaToSubCommandDescription)(name, schematic.description.path, this._workflow.registry, schematic.description.schemaJson); + } + else { + continue; + } + if ((await this.getDefaultSchematicCollection()) == collectionName) { + subcommands[name] = subcommand; + } + else { + subcommands[`${collectionName}:${name}`] = subcommand; + } + } + this.description.options.forEach((option) => { + if (option.name == 'schematic') { + option.subcommands = subcommands; + } + }); + } + async run(options) { + if (!this.schematicName || !this.collectionName) { + return this.printHelp(); + } + return this.runSchematic({ + collectionName: this.collectionName, + schematicName: this.schematicName, + schematicOptions: options['--'] || [], + debug: !!options.debug || false, + dryRun: !!options.dryRun || false, + force: !!options.force || false, + }); + } + async reportAnalytics(paths, options) { + if (!this.collectionName || !this.schematicName) { + return; + } + const escapedSchematicName = (this.longSchematicName || this.schematicName).replace(/\//g, '_'); + return super.reportAnalytics(['generate', this.collectionName.replace(/\//g, '_'), escapedSchematicName], options); + } + async parseSchematicInfo(options) { + let collectionName = await this.getDefaultSchematicCollection(); + let schematicName = options.schematic; + if (schematicName && schematicName.includes(':')) { + [collectionName, schematicName] = schematicName.split(':', 2); + } + return [collectionName, schematicName]; + } + async printHelp() { + await super.printHelp(); + this.logger.info(''); + // Find the generate subcommand. + const subcommand = this.description.options.filter((x) => x.subcommands)[0]; + if (Object.keys((subcommand && subcommand.subcommands) || {}).length == 1) { + this.logger.info(`\nTo see help for a schematic run:`); + this.logger.info(color_1.colors.cyan(` ng generate --help`)); + } + return 0; + } +} +exports.GenerateCommand = GenerateCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate.d.ts new file mode 100644 index 00000000..f58c9514 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate.d.ts @@ -0,0 +1,37 @@ +/** + * Generates and/or modifies files based on a schematic. + */ +export interface Schema { + /** + * Disable interactive input prompts for options with a default. + */ + defaults?: boolean; + /** + * Run through and reports activity without writing out results. + */ + dryRun?: boolean; + /** + * Force overwriting of existing files. + */ + force?: boolean; + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; + /** + * Enable interactive input prompts. + */ + interactive?: boolean; + /** + * The schematic or collection:schematic to generate. + */ + schematic?: string; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate.json new file mode 100644 index 00000000..53228340 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/generate.json @@ -0,0 +1,31 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/generate.json", + "description": "Generates and/or modifies files based on a schematic.", + "$longDescription": "", + + "$aliases": ["g"], + "$scope": "in", + "$type": "schematics", + "$impl": "./generate-impl#GenerateCommand", + + "allOf": [ + { + "type": "object", + "properties": { + "schematic": { + "type": "string", + "description": "The schematic or collection:schematic to generate.", + "$default": { + "$source": "argv", + "index": 0 + } + } + }, + "required": [] + }, + { "$ref": "./definitions.json#/definitions/base" }, + { "$ref": "./definitions.json#/definitions/schematic" }, + { "$ref": "./definitions.json#/definitions/interactive" } + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help-impl.d.ts new file mode 100644 index 00000000..1c3f2ce2 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help-impl.d.ts @@ -0,0 +1,12 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { Command } from '../models/command'; +import { Schema as HelpCommandSchema } from './help'; +export declare class HelpCommand extends Command { + run(): Promise; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help-impl.js new file mode 100644 index 00000000..b8a8db5d --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help-impl.js @@ -0,0 +1,26 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpCommand = void 0; +const command_1 = require("../models/command"); +const color_1 = require("../utilities/color"); +class HelpCommand extends command_1.Command { + async run() { + this.logger.info(`Available Commands:`); + for (const cmd of Object.values(await command_1.Command.commandMap())) { + if (cmd.hidden) { + continue; + } + const aliasInfo = cmd.aliases.length > 0 ? ` (${cmd.aliases.join(', ')})` : ''; + this.logger.info(` ${color_1.colors.cyan(cmd.name)}${aliasInfo} ${cmd.description}`); + } + this.logger.info(`\nFor more detailed help run "ng [command name] --help"`); + } +} +exports.HelpCommand = HelpCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help-long.md b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help-long.md new file mode 100644 index 00000000..cc4b790f --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help-long.md @@ -0,0 +1,7 @@ +For help with individual commands, use the `--help` or `-h` option with the command. + +For example, + +```sh +ng help serve +``` diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help.d.ts new file mode 100644 index 00000000..4df6abf4 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help.d.ts @@ -0,0 +1,17 @@ +/** + * Lists available commands and their short descriptions. + */ +export interface Schema { + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help.json new file mode 100644 index 00000000..a6513118 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/help.json @@ -0,0 +1,13 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/help.json", + "description": "Lists available commands and their short descriptions.", + "$longDescription": "./help-long.md", + + "$scope": "all", + "$aliases": [], + "$impl": "./help-impl#HelpCommand", + + "type": "object", + "allOf": [{ "$ref": "./definitions.json#/definitions/base" }] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint-impl.d.ts new file mode 100644 index 00000000..69ff5904 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint-impl.d.ts @@ -0,0 +1,16 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { ArchitectCommand } from '../models/architect-command'; +import { Arguments } from '../models/interface'; +import { Schema as LintCommandSchema } from './lint'; +export declare class LintCommand extends ArchitectCommand { + readonly target = "lint"; + readonly multiTarget = true; + initialize(options: LintCommandSchema & Arguments): Promise; + onMissingTarget(): Promise; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint-impl.js new file mode 100644 index 00000000..115a643c --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint-impl.js @@ -0,0 +1,69 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LintCommand = void 0; +const child_process_1 = require("child_process"); +const path = __importStar(require("path")); +const architect_command_1 = require("../models/architect-command"); +const prompt_1 = require("../utilities/prompt"); +const MissingBuilder = ` +Cannot find "lint" target for the specified project. + +You should add a package that implements linting capabilities. + +For example: + ng add @angular-eslint/schematics +`; +class LintCommand extends architect_command_1.ArchitectCommand { + constructor() { + super(...arguments); + this.target = 'lint'; + this.multiTarget = true; + } + async initialize(options) { + if (!options.help) { + return super.initialize(options); + } + } + async onMissingTarget() { + this.logger.warn(MissingBuilder); + const shouldAdd = await (0, prompt_1.askConfirmation)('Would you like to add ESLint now?', true, false); + if (shouldAdd) { + // Run `ng add @angular-eslint/schematics` + const binPath = path.resolve(__dirname, '../bin/ng.js'); + const { status, error } = (0, child_process_1.spawnSync)(process.execPath, [binPath, 'add', '@angular-eslint/schematics'], { + stdio: 'inherit', + }); + if (error) { + throw error; + } + return status !== null && status !== void 0 ? status : 0; + } + } +} +exports.LintCommand = LintCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint-long.md b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint-long.md new file mode 100644 index 00000000..1c912b24 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint-long.md @@ -0,0 +1,20 @@ +The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file. +When a project name is not supplied, executes the `lint` builder for all projects. + +To use the `ng lint` command, use `ng add` to add a package that implements linting capabilities. Adding the package automatically updates your workspace configuration, adding a lint [CLI builder](guide/cli-builder). +For example: + +```json +"projects": { + "my-project": { + ... + "architect": { + ... + "lint": { + "builder": "@angular-eslint/builder:lint", + "options": {} + } + } + } +} +``` diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint.d.ts new file mode 100644 index 00000000..91fc6534 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint.d.ts @@ -0,0 +1,29 @@ +/** + * Runs linting tools on Angular app code in a given project folder. + */ +export interface Schema { + /** + * One or more named builder configurations as a comma-separated list as specified in the + * "configurations" section of angular.json. + * The builder uses the named configurations to run the given target. + * For more information, see + * https://angular.io/guide/workspace-config#alternate-build-configurations. + */ + configuration?: string; + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; + /** + * The name of the project to lint. + */ + project?: string; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint.json new file mode 100644 index 00000000..824632e7 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/lint.json @@ -0,0 +1,36 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/lint.json", + "description": "Runs linting tools on Angular app code in a given project folder.", + "$longDescription": "./lint-long.md", + + "$aliases": ["l"], + "$scope": "in", + "$type": "architect", + "$impl": "./lint-impl#LintCommand", + + "type": "object", + "allOf": [ + { + "properties": { + "project": { + "type": "string", + "description": "The name of the project to lint.", + "$default": { + "$source": "argv", + "index": 0 + } + }, + "configuration": { + "description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.", + "type": "string", + "aliases": ["c"] + } + }, + "required": [] + }, + { + "$ref": "./definitions.json#/definitions/base" + } + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new-impl.d.ts new file mode 100644 index 00000000..098d8782 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new-impl.d.ts @@ -0,0 +1,16 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { Arguments } from '../models/interface'; +import { SchematicCommand } from '../models/schematic-command'; +import { Schema as NewCommandSchema } from './new'; +export declare class NewCommand extends SchematicCommand { + readonly allowMissingWorkspace = true; + schematicName: string; + initialize(options: NewCommandSchema & Arguments): Promise; + run(options: NewCommandSchema & Arguments): Promise; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new-impl.js new file mode 100644 index 00000000..d52bc537 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new-impl.js @@ -0,0 +1,37 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NewCommand = void 0; +const schematic_command_1 = require("../models/schematic-command"); +const version_1 = require("../models/version"); +class NewCommand extends schematic_command_1.SchematicCommand { + constructor() { + super(...arguments); + this.allowMissingWorkspace = true; + this.schematicName = 'ng-new'; + } + async initialize(options) { + this.collectionName = options.collection || (await this.getDefaultSchematicCollection()); + return super.initialize(options); + } + async run(options) { + // Register the version of the CLI in the registry. + const version = version_1.VERSION.full; + this._workflow.registry.addSmartDefaultProvider('ng-cli-version', () => version); + return this.runSchematic({ + collectionName: this.collectionName, + schematicName: this.schematicName, + schematicOptions: options['--'] || [], + debug: !!options.debug, + dryRun: !!options.dryRun, + force: !!options.force, + }); + } +} +exports.NewCommand = NewCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.d.ts new file mode 100644 index 00000000..091234f0 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.d.ts @@ -0,0 +1,41 @@ +/** + * Creates a new workspace and an initial Angular application. + */ +export interface Schema { + /** + * A collection of schematics to use in generating the initial application. + */ + collection?: string; + /** + * Disable interactive input prompts for options with a default. + */ + defaults?: boolean; + /** + * Run through and reports activity without writing out results. + */ + dryRun?: boolean; + /** + * Force overwriting of existing files. + */ + force?: boolean; + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; + /** + * Enable interactive input prompts. + */ + interactive?: boolean; + /** + * Add more details to output logging. + */ + verbose?: boolean; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.json new file mode 100644 index 00000000..90efa760 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.json @@ -0,0 +1,34 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/new.json", + "description": "Creates a new workspace and an initial Angular application.", + "$longDescription": "./new.md", + + "$aliases": ["n"], + "$scope": "out", + "$type": "schematic", + "$impl": "./new-impl#NewCommand", + + "type": "object", + "allOf": [ + { + "properties": { + "collection": { + "type": "string", + "aliases": ["c"], + "description": "A collection of schematics to use in generating the initial application." + }, + "verbose": { + "type": "boolean", + "default": false, + "aliases": ["v"], + "description": "Add more details to output logging." + } + }, + "required": [] + }, + { "$ref": "./definitions.json#/definitions/base" }, + { "$ref": "./definitions.json#/definitions/schematic" }, + { "$ref": "./definitions.json#/definitions/interactive" } + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.md b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.md new file mode 100644 index 00000000..135e1b2c --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/new.md @@ -0,0 +1,16 @@ +Creates and initializes a new Angular application that is the default project for a new workspace. + +Provides interactive prompts for optional configuration, such as adding routing support. +All prompts can safely be allowed to default. + +- The new workspace folder is given the specified project name, and contains configuration files at the top level. + +- By default, the files for a new initial application (with the same name as the workspace) are placed in the `src/` subfolder. + +- The new application's configuration appears in the `projects` section of the `angular.json` workspace configuration file, under its project name. + +- Subsequent applications that you generate in the workspace reside in the `projects/` subfolder. + +If you plan to have multiple applications in the workspace, you can create an empty workspace by setting the `--create-application` option to false. +You can then use `ng generate application` to create an initial application. +This allows a workspace name different from the initial app name, and ensures that all applications reside in the `/projects` subfolder, matching the structure of the configuration file. diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run-impl.d.ts new file mode 100644 index 00000000..8d96da65 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run-impl.d.ts @@ -0,0 +1,13 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command'; +import { Arguments } from '../models/interface'; +import { Schema as RunCommandSchema } from './run'; +export declare class RunCommand extends ArchitectCommand { + run(options: ArchitectCommandOptions & Arguments): Promise; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run-impl.js new file mode 100644 index 00000000..706c432a --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run-impl.js @@ -0,0 +1,22 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RunCommand = void 0; +const architect_command_1 = require("../models/architect-command"); +class RunCommand extends architect_command_1.ArchitectCommand { + async run(options) { + if (options.target) { + return this.runArchitectTarget(options); + } + else { + throw new Error('Invalid architect target.'); + } + } +} +exports.RunCommand = RunCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run-long.md b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run-long.md new file mode 100644 index 00000000..65a307fc --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run-long.md @@ -0,0 +1,16 @@ +Architect is the tool that the CLI uses to perform complex tasks such as compilation, according to provided configurations. +The CLI commands run Architect targets such as `build`, `serve`, `test`, and `lint`. +Each named target has a default configuration, specified by an "options" object, +and an optional set of named alternate configurations in the "configurations" object. + +For example, the "serve" target for a newly generated app has a predefined +alternate configuration named "production". + +You can define new targets and their configuration options in the "architect" section +of the `angular.json` file. +If you do so, you can run them from the command line using the `ng run` command. +Execute the command using the following format. + +``` +ng run project:target[:configuration] +``` diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run.d.ts new file mode 100644 index 00000000..d3c2c32f --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run.d.ts @@ -0,0 +1,30 @@ +/** + * Runs an Architect target with an optional custom builder configuration defined in your + * project. + */ +export interface Schema { + /** + * One or more named builder configurations as a comma-separated list as specified in the + * "configurations" section of angular.json. + * The builder uses the named configurations to run the given target. + * For more information, see + * https://angular.io/guide/workspace-config#alternate-build-configurations. + */ + configuration?: string; + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; + /** + * The Architect target to run. + */ + target?: string; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run.json new file mode 100644 index 00000000..f4e2287d --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/run.json @@ -0,0 +1,36 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/run.json", + "description": "Runs an Architect target with an optional custom builder configuration defined in your project.", + "$longDescription": "./run-long.md", + + "$aliases": [], + "$scope": "in", + "$type": "architect", + "$impl": "./run-impl#RunCommand", + + "type": "object", + "allOf": [ + { + "properties": { + "target": { + "type": "string", + "description": "The Architect target to run.", + "$default": { + "$source": "argv", + "index": 0 + } + }, + "configuration": { + "description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.", + "type": "string", + "aliases": ["c"] + } + }, + "required": [] + }, + { + "$ref": "./definitions.json#/definitions/base" + } + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve-impl.d.ts new file mode 100644 index 00000000..2b49dd24 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve-impl.d.ts @@ -0,0 +1,15 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command'; +import { Arguments } from '../models/interface'; +import { Schema as ServeCommandSchema } from './serve'; +export declare class ServeCommand extends ArchitectCommand { + readonly target = "serve"; + validate(): boolean; + run(options: ArchitectCommandOptions & Arguments): Promise; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve-impl.js new file mode 100644 index 00000000..3258a324 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve-impl.js @@ -0,0 +1,24 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ServeCommand = void 0; +const architect_command_1 = require("../models/architect-command"); +class ServeCommand extends architect_command_1.ArchitectCommand { + constructor() { + super(...arguments); + this.target = 'serve'; + } + validate() { + return true; + } + async run(options) { + return this.runArchitectTarget(options); + } +} +exports.ServeCommand = ServeCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve.d.ts new file mode 100644 index 00000000..aa1c3817 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve.d.ts @@ -0,0 +1,37 @@ +/** + * Builds and serves your app, rebuilding on file changes. + */ +export interface Schema { + /** + * One or more named builder configurations as a comma-separated list as specified in the + * "configurations" section of angular.json. + * The builder uses the named configurations to run the given target. + * For more information, see + * https://angular.io/guide/workspace-config#alternate-build-configurations. + * Setting this explicitly overrides the "--prod" flag. + */ + configuration?: string; + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; + /** + * Shorthand for "--configuration=production". + * Set the build configuration to the production target. + * By default, the production target is set up in the workspace configuration such that all + * builds make use of bundling, limited tree-shaking, and also limited dead code elimination. + */ + prod?: boolean; + /** + * The name of the project to build. Can be an application or a library. + */ + project?: string; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve.json new file mode 100644 index 00000000..efc7ba40 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/serve.json @@ -0,0 +1,17 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/serve.json", + "description": "Builds and serves your app, rebuilding on file changes.", + "$longDescription": "", + + "$aliases": ["s"], + "$scope": "in", + "$type": "architect", + "$impl": "./serve-impl#ServeCommand", + + "type": "object", + "allOf": [ + { "$ref": "./definitions.json#/definitions/architect" }, + { "$ref": "./definitions.json#/definitions/base" } + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test-impl.d.ts new file mode 100644 index 00000000..dbe640e6 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test-impl.d.ts @@ -0,0 +1,15 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command'; +import { Arguments } from '../models/interface'; +import { Schema as TestCommandSchema } from './test'; +export declare class TestCommand extends ArchitectCommand { + readonly target = "test"; + readonly multiTarget = true; + run(options: ArchitectCommandOptions & Arguments): Promise; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test-impl.js new file mode 100644 index 00000000..4072b4c9 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test-impl.js @@ -0,0 +1,22 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TestCommand = void 0; +const architect_command_1 = require("../models/architect-command"); +class TestCommand extends architect_command_1.ArchitectCommand { + constructor() { + super(...arguments); + this.target = 'test'; + this.multiTarget = true; + } + async run(options) { + return this.runArchitectTarget(options); + } +} +exports.TestCommand = TestCommand; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test-long.md b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test-long.md new file mode 100644 index 00000000..25086c17 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test-long.md @@ -0,0 +1,2 @@ +Takes the name of the project, as specified in the `projects` section of the `angular.json` workspace configuration file. +When a project name is not supplied, it will execute for all projects. diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test.d.ts new file mode 100644 index 00000000..50d2d6b3 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test.d.ts @@ -0,0 +1,37 @@ +/** + * Runs unit tests in a project. + */ +export interface Schema { + /** + * One or more named builder configurations as a comma-separated list as specified in the + * "configurations" section of angular.json. + * The builder uses the named configurations to run the given target. + * For more information, see + * https://angular.io/guide/workspace-config#alternate-build-configurations. + * Setting this explicitly overrides the "--prod" flag. + */ + configuration?: string; + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; + /** + * Shorthand for "--configuration=production". + * Set the build configuration to the production target. + * By default, the production target is set up in the workspace configuration such that all + * builds make use of bundling, limited tree-shaking, and also limited dead code elimination. + */ + prod?: boolean; + /** + * The name of the project to build. Can be an application or a library. + */ + project?: string; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test.json new file mode 100644 index 00000000..5fb4ce01 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/test.json @@ -0,0 +1,17 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/test.json", + "description": "Runs unit tests in a project.", + "$longDescription": "./test-long.md", + + "$aliases": ["t"], + "$scope": "in", + "$type": "architect", + "$impl": "./test-impl#TestCommand", + + "type": "object", + "allOf": [ + { "$ref": "./definitions.json#/definitions/architect" }, + { "$ref": "./definitions.json#/definitions/base" } + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update-impl.d.ts new file mode 100644 index 00000000..533ad38d --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update-impl.d.ts @@ -0,0 +1,38 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { Command } from '../models/command'; +import { Arguments } from '../models/interface'; +import { Schema as UpdateCommandSchema } from './update'; +export declare class UpdateCommand extends Command { + readonly allowMissingWorkspace = true; + private workflow; + private packageManager; + initialize(options: UpdateCommandSchema & Arguments): Promise; + private executeSchematic; + /** + * @return Whether or not the migration was performed successfully. + */ + private executeMigration; + /** + * @return Whether or not the migrations were performed successfully. + */ + private executeMigrations; + private executePackageMigrations; + run(options: UpdateCommandSchema & Arguments): Promise; + /** + * @return Whether or not the commit was successful. + */ + private commit; + private checkCleanGit; + /** + * Checks if the current installed CLI version is older or newer than a compatible version. + * @returns the version to install or null when there is no update to install. + */ + private checkCLIVersion; + private getCLIUpdateRunnerVersion; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update-impl.js new file mode 100644 index 00000000..b7c20c31 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update-impl.js @@ -0,0 +1,748 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UpdateCommand = void 0; +const schematics_1 = require("@angular-devkit/schematics"); +const tools_1 = require("@angular-devkit/schematics/tools"); +const child_process_1 = require("child_process"); +const fs = __importStar(require("fs")); +const npm_package_arg_1 = __importDefault(require("npm-package-arg")); +const npm_pick_manifest_1 = __importDefault(require("npm-pick-manifest")); +const path = __importStar(require("path")); +const semver = __importStar(require("semver")); +const workspace_schema_1 = require("../lib/config/workspace-schema"); +const command_1 = require("../models/command"); +const schematic_engine_host_1 = require("../models/schematic-engine-host"); +const version_1 = require("../models/version"); +const color_1 = require("../utilities/color"); +const install_package_1 = require("../utilities/install-package"); +const log_file_1 = require("../utilities/log-file"); +const package_manager_1 = require("../utilities/package-manager"); +const package_metadata_1 = require("../utilities/package-metadata"); +const package_tree_1 = require("../utilities/package-tree"); +const UPDATE_SCHEMATIC_COLLECTION = path.join(__dirname, '../src/commands/update/schematic/collection.json'); +/** + * Disable CLI version mismatch checks and forces usage of the invoked CLI + * instead of invoking the local installed version. + */ +const disableVersionCheckEnv = process.env['NG_DISABLE_VERSION_CHECK']; +const disableVersionCheck = disableVersionCheckEnv !== undefined && + disableVersionCheckEnv !== '0' && + disableVersionCheckEnv.toLowerCase() !== 'false'; +const ANGULAR_PACKAGES_REGEXP = /^@(?:angular|nguniversal)\//; +class UpdateCommand extends command_1.Command { + constructor() { + super(...arguments); + this.allowMissingWorkspace = true; + this.packageManager = workspace_schema_1.PackageManager.Npm; + } + async initialize(options) { + this.packageManager = await (0, package_manager_1.getPackageManager)(this.context.root); + this.workflow = new tools_1.NodeWorkflow(this.context.root, { + packageManager: this.packageManager, + packageManagerForce: options.force, + // __dirname -> favor @schematics/update from this package + // Otherwise, use packages from the active workspace (migrations) + resolvePaths: [__dirname, this.context.root], + schemaValidation: true, + engineHostCreator: (options) => new schematic_engine_host_1.SchematicEngineHost(options.resolvePaths), + }); + } + async executeSchematic(collection, schematic, options = {}) { + let error = false; + let logs = []; + const files = new Set(); + const reporterSubscription = this.workflow.reporter.subscribe((event) => { + // Strip leading slash to prevent confusion. + const eventPath = event.path.startsWith('/') ? event.path.substr(1) : event.path; + switch (event.kind) { + case 'error': + error = true; + const desc = event.description == 'alreadyExist' ? 'already exists' : 'does not exist.'; + this.logger.error(`ERROR! ${eventPath} ${desc}.`); + break; + case 'update': + logs.push(`${color_1.colors.cyan('UPDATE')} ${eventPath} (${event.content.length} bytes)`); + files.add(eventPath); + break; + case 'create': + logs.push(`${color_1.colors.green('CREATE')} ${eventPath} (${event.content.length} bytes)`); + files.add(eventPath); + break; + case 'delete': + logs.push(`${color_1.colors.yellow('DELETE')} ${eventPath}`); + files.add(eventPath); + break; + case 'rename': + const eventToPath = event.to.startsWith('/') ? event.to.substr(1) : event.to; + logs.push(`${color_1.colors.blue('RENAME')} ${eventPath} => ${eventToPath}`); + files.add(eventPath); + break; + } + }); + const lifecycleSubscription = this.workflow.lifeCycle.subscribe((event) => { + if (event.kind == 'end' || event.kind == 'post-tasks-start') { + if (!error) { + // Output the logging queue, no error happened. + logs.forEach((log) => this.logger.info(` ${log}`)); + logs = []; + } + } + }); + // TODO: Allow passing a schematic instance directly + try { + await this.workflow + .execute({ + collection, + schematic, + options, + logger: this.logger, + }) + .toPromise(); + reporterSubscription.unsubscribe(); + lifecycleSubscription.unsubscribe(); + return { success: !error, files }; + } + catch (e) { + if (e instanceof schematics_1.UnsuccessfulWorkflowExecution) { + this.logger.error(`${color_1.colors.symbols.cross} Migration failed. See above for further details.\n`); + } + else { + const logPath = (0, log_file_1.writeErrorToLogFile)(e); + this.logger.fatal(`${color_1.colors.symbols.cross} Migration failed: ${e.message}\n` + + ` See "${logPath}" for further details.\n`); + } + return { success: false, files }; + } + } + /** + * @return Whether or not the migration was performed successfully. + */ + async executeMigration(packageName, collectionPath, migrationName, commit) { + const collection = this.workflow.engine.createCollection(collectionPath); + const name = collection.listSchematicNames().find((name) => name === migrationName); + if (!name) { + this.logger.error(`Cannot find migration '${migrationName}' in '${packageName}'.`); + return false; + } + const schematic = this.workflow.engine.createSchematic(name, collection); + this.logger.info(color_1.colors.cyan(`** Executing '${migrationName}' of package '${packageName}' **\n`)); + return this.executePackageMigrations([schematic.description], packageName, commit); + } + /** + * @return Whether or not the migrations were performed successfully. + */ + async executeMigrations(packageName, collectionPath, from, to, commit) { + const collection = this.workflow.engine.createCollection(collectionPath); + const migrationRange = new semver.Range('>' + (semver.prerelease(from) ? from.split('-')[0] + '-0' : from) + ' <=' + to.split('-')[0]); + const migrations = []; + for (const name of collection.listSchematicNames()) { + const schematic = this.workflow.engine.createSchematic(name, collection); + const description = schematic.description; + description.version = coerceVersionNumber(description.version) || undefined; + if (!description.version) { + continue; + } + if (semver.satisfies(description.version, migrationRange, { includePrerelease: true })) { + migrations.push(description); + } + } + migrations.sort((a, b) => semver.compare(a.version, b.version) || a.name.localeCompare(b.name)); + if (migrations.length === 0) { + return true; + } + this.logger.info(color_1.colors.cyan(`** Executing migrations of package '${packageName}' **\n`)); + return this.executePackageMigrations(migrations, packageName, commit); + } + async executePackageMigrations(migrations, packageName, commit = false) { + for (const migration of migrations) { + const [title, ...description] = migration.description.split('. '); + this.logger.info(color_1.colors.cyan(color_1.colors.symbols.pointer) + + ' ' + + color_1.colors.bold(title.endsWith('.') ? title : title + '.')); + if (description.length) { + this.logger.info(' ' + description.join('.\n ')); + } + const result = await this.executeSchematic(migration.collection.name, migration.name); + if (!result.success) { + return false; + } + this.logger.info(' Migration completed.'); + // Commit migration + if (commit) { + const commitPrefix = `${packageName} migration - ${migration.name}`; + const commitMessage = migration.description + ? `${commitPrefix}\n\n${migration.description}` + : commitPrefix; + const committed = this.commit(commitMessage); + if (!committed) { + // Failed to commit, something went wrong. Abort the update. + return false; + } + } + this.logger.info(''); // Extra trailing newline. + } + return true; + } + // eslint-disable-next-line max-lines-per-function + async run(options) { + var _a; + await (0, package_manager_1.ensureCompatibleNpm)(this.context.root); + // Check if the current installed CLI version is older than the latest compatible version. + if (!disableVersionCheck) { + const cliVersionToInstall = await this.checkCLIVersion(options['--'], options.verbose, options.next); + if (cliVersionToInstall) { + this.logger.warn('The installed Angular CLI version is outdated.\n' + + `Installing a temporary Angular CLI versioned ${cliVersionToInstall} to perform the update.`); + return (0, install_package_1.runTempPackageBin)(`@angular/cli@${cliVersionToInstall}`, this.packageManager, process.argv.slice(2)); + } + } + const logVerbose = (message) => { + if (options.verbose) { + this.logger.info(message); + } + }; + if (options.all) { + const updateCmd = this.packageManager === workspace_schema_1.PackageManager.Yarn + ? `'yarn upgrade-interactive' or 'yarn upgrade'` + : `'${this.packageManager} update'`; + this.logger.warn(` + '--all' functionality has been removed as updating multiple packages at once is not recommended. + To update packages which don’t provide 'ng update' capabilities in your workspace 'package.json' use ${updateCmd} instead. + Run the package manager update command after updating packages which provide 'ng update' capabilities. + `); + return 0; + } + const packages = []; + for (const request of options['--'] || []) { + try { + const packageIdentifier = (0, npm_package_arg_1.default)(request); + // only registry identifiers are supported + if (!packageIdentifier.registry) { + this.logger.error(`Package '${request}' is not a registry package identifer.`); + return 1; + } + if (packages.some((v) => v.name === packageIdentifier.name)) { + this.logger.error(`Duplicate package '${packageIdentifier.name}' specified.`); + return 1; + } + if (options.migrateOnly && packageIdentifier.rawSpec) { + this.logger.warn('Package specifier has no effect when using "migrate-only" option.'); + } + // If next option is used and no specifier supplied, use next tag + if (options.next && !packageIdentifier.rawSpec) { + packageIdentifier.fetchSpec = 'next'; + } + packages.push(packageIdentifier); + } + catch (e) { + this.logger.error(e.message); + return 1; + } + } + if (!options.migrateOnly && (options.from || options.to)) { + this.logger.error('Can only use "from" or "to" options with "migrate-only" option.'); + return 1; + } + // If not asking for status then check for a clean git repository. + // This allows the user to easily reset any changes from the update. + if (packages.length && !this.checkCleanGit()) { + if (options.allowDirty) { + this.logger.warn('Repository is not clean. Update changes will be mixed with pre-existing changes.'); + } + else { + this.logger.error('Repository is not clean. Please commit or stash any changes before updating.'); + return 2; + } + } + this.logger.info(`Using package manager: '${this.packageManager}'`); + this.logger.info('Collecting installed dependencies...'); + const rootDependencies = await (0, package_tree_1.getProjectDependencies)(this.context.root); + this.logger.info(`Found ${rootDependencies.size} dependencies.`); + if (packages.length === 0) { + // Show status + const { success } = await this.executeSchematic(UPDATE_SCHEMATIC_COLLECTION, 'update', { + force: options.force || false, + next: options.next || false, + verbose: options.verbose || false, + packageManager: this.packageManager, + packages: [], + }); + return success ? 0 : 1; + } + if (options.migrateOnly) { + if (!options.from && typeof options.migrateOnly !== 'string') { + this.logger.error('"from" option is required when using the "migrate-only" option without a migration name.'); + return 1; + } + else if (packages.length !== 1) { + this.logger.error('A single package must be specified when using the "migrate-only" option.'); + return 1; + } + if (options.next) { + this.logger.warn('"next" option has no effect when using "migrate-only" option.'); + } + const packageName = packages[0].name; + const packageDependency = rootDependencies.get(packageName); + let packagePath = packageDependency === null || packageDependency === void 0 ? void 0 : packageDependency.path; + let packageNode = packageDependency === null || packageDependency === void 0 ? void 0 : packageDependency.package; + if (packageDependency && !packageNode) { + this.logger.error('Package found in package.json but is not installed.'); + return 1; + } + else if (!packageDependency) { + // Allow running migrations on transitively installed dependencies + // There can technically be nested multiple versions + // TODO: If multiple, this should find all versions and ask which one to use + const packageJson = (0, package_tree_1.findPackageJson)(this.context.root, packageName); + if (packageJson) { + packagePath = path.dirname(packageJson); + packageNode = await (0, package_tree_1.readPackageJson)(packageJson); + } + } + if (!packageNode || !packagePath) { + this.logger.error('Package is not installed.'); + return 1; + } + const updateMetadata = packageNode['ng-update']; + let migrations = updateMetadata === null || updateMetadata === void 0 ? void 0 : updateMetadata.migrations; + if (migrations === undefined) { + this.logger.error('Package does not provide migrations.'); + return 1; + } + else if (typeof migrations !== 'string') { + this.logger.error('Package contains a malformed migrations field.'); + return 1; + } + else if (path.posix.isAbsolute(migrations) || path.win32.isAbsolute(migrations)) { + this.logger.error('Package contains an invalid migrations field. Absolute paths are not permitted.'); + return 1; + } + // Normalize slashes + migrations = migrations.replace(/\\/g, '/'); + if (migrations.startsWith('../')) { + this.logger.error('Package contains an invalid migrations field. Paths outside the package root are not permitted.'); + return 1; + } + // Check if it is a package-local location + const localMigrations = path.join(packagePath, migrations); + if (fs.existsSync(localMigrations)) { + migrations = localMigrations; + } + else { + // Try to resolve from package location. + // This avoids issues with package hoisting. + try { + migrations = require.resolve(migrations, { paths: [packagePath] }); + } + catch (e) { + if (e.code === 'MODULE_NOT_FOUND') { + this.logger.error('Migrations for package were not found.'); + } + else { + this.logger.error(`Unable to resolve migrations for package. [${e.message}]`); + } + return 1; + } + } + let result; + if (typeof options.migrateOnly == 'string') { + result = await this.executeMigration(packageName, migrations, options.migrateOnly, options.createCommits); + } + else { + const from = coerceVersionNumber(options.from); + if (!from) { + this.logger.error(`"from" value [${options.from}] is not a valid version.`); + return 1; + } + result = await this.executeMigrations(packageName, migrations, from, options.to || packageNode.version, options.createCommits); + } + return result ? 0 : 1; + } + const requests = []; + // Validate packages actually are part of the workspace + for (const pkg of packages) { + const node = rootDependencies.get(pkg.name); + if (!(node === null || node === void 0 ? void 0 : node.package)) { + this.logger.error(`Package '${pkg.name}' is not a dependency.`); + return 1; + } + // If a specific version is requested and matches the installed version, skip. + if (pkg.type === 'version' && node.package.version === pkg.fetchSpec) { + this.logger.info(`Package '${pkg.name}' is already at '${pkg.fetchSpec}'.`); + continue; + } + requests.push({ identifier: pkg, node }); + } + if (requests.length === 0) { + return 0; + } + const packagesToUpdate = []; + this.logger.info('Fetching dependency metadata from registry...'); + for (const { identifier: requestIdentifier, node } of requests) { + const packageName = requestIdentifier.name; + let metadata; + try { + // Metadata requests are internally cached; multiple requests for same name + // does not result in additional network traffic + metadata = await (0, package_metadata_1.fetchPackageMetadata)(packageName, this.logger, { + verbose: options.verbose, + }); + } + catch (e) { + this.logger.error(`Error fetching metadata for '${packageName}': ` + e.message); + return 1; + } + // Try to find a package version based on the user requested package specifier + // registry specifier types are either version, range, or tag + let manifest; + if (requestIdentifier.type === 'version' || + requestIdentifier.type === 'range' || + requestIdentifier.type === 'tag') { + try { + manifest = (0, npm_pick_manifest_1.default)(metadata, requestIdentifier.fetchSpec); + } + catch (e) { + if (e.code === 'ETARGET') { + // If not found and next was used and user did not provide a specifier, try latest. + // Package may not have a next tag. + if (requestIdentifier.type === 'tag' && + requestIdentifier.fetchSpec === 'next' && + !requestIdentifier.rawSpec) { + try { + manifest = (0, npm_pick_manifest_1.default)(metadata, 'latest'); + } + catch (e) { + if (e.code !== 'ETARGET' && e.code !== 'ENOVERSIONS') { + throw e; + } + } + } + } + else if (e.code !== 'ENOVERSIONS') { + throw e; + } + } + } + if (!manifest) { + this.logger.error(`Package specified by '${requestIdentifier.raw}' does not exist within the registry.`); + return 1; + } + if (manifest.version === ((_a = node.package) === null || _a === void 0 ? void 0 : _a.version)) { + this.logger.info(`Package '${packageName}' is already up to date.`); + continue; + } + if (node.package && ANGULAR_PACKAGES_REGEXP.test(node.package.name)) { + const { name, version } = node.package; + const toBeInstalledMajorVersion = +manifest.version.split('.')[0]; + const currentMajorVersion = +version.split('.')[0]; + if (toBeInstalledMajorVersion - currentMajorVersion > 1) { + // Only allow updating a single version at a time. + if (currentMajorVersion < 6) { + // Before version 6, the major versions were not always sequential. + // Example @angular/core skipped version 3, @angular/cli skipped versions 2-5. + this.logger.error(`Updating multiple major versions of '${name}' at once is not supported. Please migrate each major version individually.\n` + + `For more information about the update process, see https://update.angular.io/.`); + } + else { + const nextMajorVersionFromCurrent = currentMajorVersion + 1; + this.logger.error(`Updating multiple major versions of '${name}' at once is not supported. Please migrate each major version individually.\n` + + `Run 'ng update ${name}@${nextMajorVersionFromCurrent}' in your workspace directory ` + + `to update to latest '${nextMajorVersionFromCurrent}.x' version of '${name}'.\n\n` + + `For more information about the update process, see https://update.angular.io/?v=${currentMajorVersion}.0-${nextMajorVersionFromCurrent}.0`); + } + return 1; + } + } + packagesToUpdate.push(requestIdentifier.toString()); + } + if (packagesToUpdate.length === 0) { + return 0; + } + const { success } = await this.executeSchematic(UPDATE_SCHEMATIC_COLLECTION, 'update', { + verbose: options.verbose || false, + force: options.force || false, + next: !!options.next, + packageManager: this.packageManager, + packages: packagesToUpdate, + }); + if (success) { + try { + // Remove existing node modules directory to provide a stronger guarantee that packages + // will be hoisted into the correct locations. + // The below should be removed and replaced with just `rm` when support for Node.Js 12 is removed. + const { rm, rmdir } = fs.promises; + if (rm) { + await rm(path.join(this.context.root, 'node_modules'), { + force: true, + recursive: true, + maxRetries: 3, + }); + } + else { + await rmdir(path.join(this.context.root, 'node_modules'), { + recursive: true, + maxRetries: 3, + }); + } + } + catch { } + const result = await (0, install_package_1.installAllPackages)(this.packageManager, options.force ? ['--force'] : [], this.context.root); + if (result !== 0) { + return result; + } + } + if (success && options.createCommits) { + const committed = this.commit(`Angular CLI update for packages - ${packagesToUpdate.join(', ')}`); + if (!committed) { + return 1; + } + } + // This is a temporary workaround to allow data to be passed back from the update schematic + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const migrations = global.externalMigrations; + if (success && migrations) { + for (const migration of migrations) { + // Resolve the package from the workspace root, as otherwise it will be resolved from the temp + // installed CLI version. + let packagePath; + logVerbose(`Resolving migration package '${migration.package}' from '${this.context.root}'...`); + try { + try { + packagePath = path.dirname( + // This may fail if the `package.json` is not exported as an entry point + require.resolve(path.join(migration.package, 'package.json'), { + paths: [this.context.root], + })); + } + catch (e) { + if (e.code === 'MODULE_NOT_FOUND') { + // Fallback to trying to resolve the package's main entry point + packagePath = require.resolve(migration.package, { paths: [this.context.root] }); + } + else { + throw e; + } + } + } + catch (e) { + if (e.code === 'MODULE_NOT_FOUND') { + logVerbose(e.toString()); + this.logger.error(`Migrations for package (${migration.package}) were not found.` + + ' The package could not be found in the workspace.'); + } + else { + this.logger.error(`Unable to resolve migrations for package (${migration.package}). [${e.message}]`); + } + return 1; + } + let migrations; + // Check if it is a package-local location + const localMigrations = path.join(packagePath, migration.collection); + if (fs.existsSync(localMigrations)) { + migrations = localMigrations; + } + else { + // Try to resolve from package location. + // This avoids issues with package hoisting. + try { + migrations = require.resolve(migration.collection, { paths: [packagePath] }); + } + catch (e) { + if (e.code === 'MODULE_NOT_FOUND') { + this.logger.error(`Migrations for package (${migration.package}) were not found.`); + } + else { + this.logger.error(`Unable to resolve migrations for package (${migration.package}). [${e.message}]`); + } + return 1; + } + } + const result = await this.executeMigrations(migration.package, migrations, migration.from, migration.to, options.createCommits); + if (!result) { + return 0; + } + } + } + return success ? 0 : 1; + } + /** + * @return Whether or not the commit was successful. + */ + commit(message) { + // Check if a commit is needed. + let commitNeeded; + try { + commitNeeded = hasChangesToCommit(); + } + catch (err) { + this.logger.error(` Failed to read Git tree:\n${err.stderr}`); + return false; + } + if (!commitNeeded) { + this.logger.info(' No changes to commit after migration.'); + return true; + } + // Commit changes and abort on error. + try { + createCommit(message); + } + catch (err) { + this.logger.error(`Failed to commit update (${message}):\n${err.stderr}`); + return false; + } + // Notify user of the commit. + const hash = findCurrentGitSha(); + const shortMessage = message.split('\n')[0]; + if (hash) { + this.logger.info(` Committed migration step (${getShortHash(hash)}): ${shortMessage}.`); + } + else { + // Commit was successful, but reading the hash was not. Something weird happened, + // but nothing that would stop the update. Just log the weirdness and continue. + this.logger.info(` Committed migration step: ${shortMessage}.`); + this.logger.warn(' Failed to look up hash of most recent commit, continuing anyways.'); + } + return true; + } + checkCleanGit() { + try { + const topLevel = (0, child_process_1.execSync)('git rev-parse --show-toplevel', { + encoding: 'utf8', + stdio: 'pipe', + }); + const result = (0, child_process_1.execSync)('git status --porcelain', { encoding: 'utf8', stdio: 'pipe' }); + if (result.trim().length === 0) { + return true; + } + // Only files inside the workspace root are relevant + for (const entry of result.split('\n')) { + const relativeEntry = path.relative(path.resolve(this.context.root), path.resolve(topLevel.trim(), entry.slice(3).trim())); + if (!relativeEntry.startsWith('..') && !path.isAbsolute(relativeEntry)) { + return false; + } + } + } + catch { } + return true; + } + /** + * Checks if the current installed CLI version is older or newer than a compatible version. + * @returns the version to install or null when there is no update to install. + */ + async checkCLIVersion(packagesToUpdate, verbose = false, next = false) { + const { version } = await (0, package_metadata_1.fetchPackageManifest)(`@angular/cli@${this.getCLIUpdateRunnerVersion(packagesToUpdate, next)}`, this.logger, { + verbose, + usingYarn: this.packageManager === workspace_schema_1.PackageManager.Yarn, + }); + return version_1.VERSION.full === version ? null : version; + } + getCLIUpdateRunnerVersion(packagesToUpdate, next) { + var _a, _b; + if (next) { + return 'next'; + } + const updatingAngularPackage = packagesToUpdate === null || packagesToUpdate === void 0 ? void 0 : packagesToUpdate.find((r) => ANGULAR_PACKAGES_REGEXP.test(r)); + if (updatingAngularPackage) { + // If we are updating any Angular package we can update the CLI to the target version because + // migrations for @angular/core@13 can be executed using Angular/cli@13. + // This is same behaviour as `npx @angular/cli@13 update @angular/core@13`. + // `@angular/cli@13` -> ['', 'angular/cli', '13'] + // `@angular/cli` -> ['', 'angular/cli'] + const tempVersion = coerceVersionNumber(updatingAngularPackage.split('@')[2]); + return (_b = (_a = semver.parse(tempVersion)) === null || _a === void 0 ? void 0 : _a.major) !== null && _b !== void 0 ? _b : 'latest'; + } + // When not updating an Angular package we cannot determine which schematic runtime the migration should to be executed in. + // Typically, we can assume that the `@angular/cli` was updated previously. + // Example: Angular official packages are typically updated prior to NGRX etc... + // Therefore, we only update to the latest patch version of the installed major version of the Angular CLI. + // This is important because we might end up in a scenario where locally Angular v12 is installed, updating NGRX from 11 to 12. + // We end up using Angular ClI v13 to run the migrations if we run the migrations using the CLI installed major version + 1 logic. + return version_1.VERSION.major; + } +} +exports.UpdateCommand = UpdateCommand; +/** + * @return Whether or not the working directory has Git changes to commit. + */ +function hasChangesToCommit() { + // List all modified files not covered by .gitignore. + const files = (0, child_process_1.execSync)('git ls-files -m -d -o --exclude-standard').toString(); + // If any files are returned, then there must be something to commit. + return files !== ''; +} +/** + * Precondition: Must have pending changes to commit, they do not need to be staged. + * Postcondition: The Git working tree is committed and the repo is clean. + * @param message The commit message to use. + */ +function createCommit(message) { + // Stage entire working tree for commit. + (0, child_process_1.execSync)('git add -A', { encoding: 'utf8', stdio: 'pipe' }); + // Commit with the message passed via stdin to avoid bash escaping issues. + (0, child_process_1.execSync)('git commit --no-verify -F -', { encoding: 'utf8', stdio: 'pipe', input: message }); +} +/** + * @return The Git SHA hash of the HEAD commit. Returns null if unable to retrieve the hash. + */ +function findCurrentGitSha() { + try { + const hash = (0, child_process_1.execSync)('git rev-parse HEAD', { encoding: 'utf8', stdio: 'pipe' }); + return hash.trim(); + } + catch { + return null; + } +} +function getShortHash(commitHash) { + return commitHash.slice(0, 9); +} +function coerceVersionNumber(version) { + if (!version) { + return null; + } + if (!version.match(/^\d{1,30}\.\d{1,30}\.\d{1,30}/)) { + const match = version.match(/^\d{1,30}(\.\d{1,30})*/); + if (!match) { + return null; + } + if (!match[1]) { + version = version.substr(0, match[0].length) + '.0.0' + version.substr(match[0].length); + } + else if (!match[2]) { + version = version.substr(0, match[0].length) + '.0' + version.substr(match[0].length); + } + else { + return null; + } + } + return semver.valid(version); +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update-long.md b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update-long.md new file mode 100644 index 00000000..72df66ce --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update-long.md @@ -0,0 +1,22 @@ +Perform a basic update to the current stable release of the core framework and CLI by running the following command. + +``` +ng update @angular/cli @angular/core +``` + +To update to the next beta or pre-release version, use the `--next` option. + +To update from one major version to another, use the format + +``` +ng update @angular/cli@^ @angular/core@^ +``` + +We recommend that you always update to the latest patch version, as it contains fixes we released since the initial major release. +For example, use the following command to take the latest 10.x.x version and use that to update. + +``` +ng update @angular/cli@^10 @angular/core@^10 +``` + +For detailed information and guidance on updating your application, see the interactive [Angular Update Guide](https://update.angular.io/). diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update.d.ts new file mode 100644 index 00000000..832c0100 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update.d.ts @@ -0,0 +1,65 @@ +/** + * Updates your application and its dependencies. See https://update.angular.io/ + */ +export interface Schema { + /** + * Whether to update all packages in package.json. + */ + all?: boolean; + /** + * Whether to allow updating when the repository contains modified or untracked files. + */ + allowDirty?: boolean; + /** + * Create source control commits for updates and migrations. + */ + createCommits?: boolean; + /** + * Ignore peer dependency version mismatches. Passes the `--force` flag to the package + * manager when installing packages. + */ + force?: boolean; + /** + * Version from which to migrate from. Only available with a single package being updated, + * and only on migration only. + */ + from?: string; + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; + /** + * Only perform a migration, do not update the installed version. + */ + migrateOnly?: MigrateOnly; + /** + * Use the prerelease version, including beta and RCs. + */ + next?: boolean; + /** + * The names of package(s) to update. + */ + packages?: string[]; + /** + * Version up to which to apply migrations. Only available with a single package being + * updated, and only on migrations only. Requires from to be specified. Default to the + * installed version detected. + */ + to?: string; + /** + * Display additional details about internal operations during execution. + */ + verbose?: boolean; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} +/** + * Only perform a migration, do not update the installed version. + */ +export declare type MigrateOnly = boolean | string; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update.json new file mode 100644 index 00000000..7de5a193 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/update.json @@ -0,0 +1,84 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/update.json", + "description": "Updates your application and its dependencies. See https://update.angular.io/", + "$longDescription": "./update-long.md", + + "$scope": "all", + "$aliases": [], + "$type": "schematics", + "$impl": "./update-impl#UpdateCommand", + + "type": "object", + "allOf": [ + { + "$ref": "./definitions.json#/definitions/base" + }, + { + "type": "object", + "properties": { + "packages": { + "description": "The names of package(s) to update.", + "type": "array", + "items": { + "type": "string" + }, + "$default": { + "$source": "argv" + } + }, + "force": { + "description": "Ignore peer dependency version mismatches. Passes the `--force` flag to the package manager when installing packages.", + "default": false, + "type": "boolean" + }, + "all": { + "description": "Whether to update all packages in package.json.", + "default": false, + "type": "boolean", + "x-deprecated": true + }, + "next": { + "description": "Use the prerelease version, including beta and RCs.", + "default": false, + "type": "boolean" + }, + "migrateOnly": { + "description": "Only perform a migration, do not update the installed version.", + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "string", + "description": "The name of the migration to run." + } + ] + }, + "from": { + "description": "Version from which to migrate from. Only available with a single package being updated, and only on migration only.", + "type": "string" + }, + "to": { + "description": "Version up to which to apply migrations. Only available with a single package being updated, and only on migrations only. Requires from to be specified. Default to the installed version detected.", + "type": "string" + }, + "allowDirty": { + "description": "Whether to allow updating when the repository contains modified or untracked files.", + "type": "boolean" + }, + "verbose": { + "description": "Display additional details about internal operations during execution.", + "type": "boolean", + "default": false + }, + "createCommits": { + "description": "Create source control commits for updates and migrations.", + "type": "boolean", + "default": false, + "aliases": ["C"] + } + } + } + ] +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version-impl.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version-impl.d.ts new file mode 100644 index 00000000..655d2d2e --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version-impl.d.ts @@ -0,0 +1,17 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { Command } from '../models/command'; +import { Schema as VersionCommandSchema } from './version'; +export declare class VersionCommand extends Command { + static aliases: string[]; + private readonly localRequire; + private readonly workspaceRequire; + run(): Promise; + private getVersion; + private getPackageManager; +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version-impl.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version-impl.js new file mode 100644 index 00000000..5823936f --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version-impl.js @@ -0,0 +1,179 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VersionCommand = void 0; +const child_process_1 = require("child_process"); +const module_1 = __importDefault(require("module")); +const command_1 = require("../models/command"); +const color_1 = require("../utilities/color"); +const package_manager_1 = require("../utilities/package-manager"); +/** + * Major versions of Node.js that are officially supported by Angular. + */ +const SUPPORTED_NODE_MAJORS = [12, 14, 16]; +class VersionCommand extends command_1.Command { + constructor() { + super(...arguments); + this.localRequire = module_1.default.createRequire(__filename); + // Trailing slash is used to allow the path to be treated as a directory + this.workspaceRequire = module_1.default.createRequire(this.context.root + '/'); + } + async run() { + const cliPackage = this.localRequire('../package.json'); + let workspacePackage; + try { + workspacePackage = this.workspaceRequire('./package.json'); + } + catch { } + const [nodeMajor] = process.versions.node.split('.').map((part) => Number(part)); + const unsupportedNodeVersion = !SUPPORTED_NODE_MAJORS.includes(nodeMajor); + const patterns = [ + /^@angular\/.*/, + /^@angular-devkit\/.*/, + /^@bazel\/.*/, + /^@ngtools\/.*/, + /^@nguniversal\/.*/, + /^@schematics\/.*/, + /^rxjs$/, + /^typescript$/, + /^ng-packagr$/, + /^webpack$/, + ]; + const packageNames = [ + ...Object.keys(cliPackage.dependencies || {}), + ...Object.keys(cliPackage.devDependencies || {}), + ...Object.keys((workspacePackage === null || workspacePackage === void 0 ? void 0 : workspacePackage.dependencies) || {}), + ...Object.keys((workspacePackage === null || workspacePackage === void 0 ? void 0 : workspacePackage.devDependencies) || {}), + ]; + const versions = packageNames + .filter((x) => patterns.some((p) => p.test(x))) + .reduce((acc, name) => { + if (name in acc) { + return acc; + } + acc[name] = this.getVersion(name); + return acc; + }, {}); + const ngCliVersion = cliPackage.version; + let angularCoreVersion = ''; + const angularSameAsCore = []; + if (workspacePackage) { + // Filter all angular versions that are the same as core. + angularCoreVersion = versions['@angular/core']; + if (angularCoreVersion) { + for (const angularPackage of Object.keys(versions)) { + if (versions[angularPackage] == angularCoreVersion && + angularPackage.startsWith('@angular/')) { + angularSameAsCore.push(angularPackage.replace(/^@angular\//, '')); + delete versions[angularPackage]; + } + } + // Make sure we list them in alphabetical order. + angularSameAsCore.sort(); + } + } + const namePad = ' '.repeat(Object.keys(versions).sort((a, b) => b.length - a.length)[0].length + 3); + const asciiArt = ` + _ _ ____ _ ___ + / \\ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| + / △ \\ | '_ \\ / _\` | | | | |/ _\` | '__| | | | | | | + / ___ \\| | | | (_| | |_| | | (_| | | | |___| |___ | | + /_/ \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_| \\____|_____|___| + |___/ + ` + .split('\n') + .map((x) => color_1.colors.red(x)) + .join('\n'); + this.logger.info(asciiArt); + this.logger.info(` + Angular CLI: ${ngCliVersion} + Node: ${process.versions.node}${unsupportedNodeVersion ? ' (Unsupported)' : ''} + Package Manager: ${await this.getPackageManager()} + OS: ${process.platform} ${process.arch} + + Angular: ${angularCoreVersion} + ... ${angularSameAsCore + .reduce((acc, name) => { + // Perform a simple word wrap around 60. + if (acc.length == 0) { + return [name]; + } + const line = acc[acc.length - 1] + ', ' + name; + if (line.length > 60) { + acc.push(name); + } + else { + acc[acc.length - 1] = line; + } + return acc; + }, []) + .join('\n... ')} + + Package${namePad.slice(7)}Version + -------${namePad.replace(/ /g, '-')}------------------ + ${Object.keys(versions) + .map((module) => `${module}${namePad.slice(module.length)}${versions[module]}`) + .sort() + .join('\n')} + `.replace(/^ {6}/gm, '')); + if (unsupportedNodeVersion) { + this.logger.warn(`Warning: The current version of Node (${process.versions.node}) is not supported by Angular.`); + } + } + getVersion(moduleName) { + let packageInfo; + let cliOnly = false; + // Try to find the package in the workspace + try { + packageInfo = this.workspaceRequire(`${moduleName}/package.json`); + } + catch { } + // If not found, try to find within the CLI + if (!packageInfo) { + try { + packageInfo = this.localRequire(`${moduleName}/package.json`); + cliOnly = true; + } + catch { } + } + let version; + // If found, attempt to get the version + if (packageInfo) { + try { + version = packageInfo.version + (cliOnly ? ' (cli-only)' : ''); + } + catch { } + } + return version || ''; + } + async getPackageManager() { + try { + const manager = await (0, package_manager_1.getPackageManager)(this.context.root); + const version = (0, child_process_1.execSync)(`${manager} --version`, { + encoding: 'utf8', + stdio: ['ignore', 'pipe', 'ignore'], + env: { + ...process.env, + // NPM updater notifier will prevents the child process from closing until it timeout after 3 minutes. + NO_UPDATE_NOTIFIER: '1', + NPM_CONFIG_UPDATE_NOTIFIER: 'false', + }, + }).trim(); + return `${manager} ${version}`; + } + catch { + return ''; + } + } +} +exports.VersionCommand = VersionCommand; +VersionCommand.aliases = ['v']; diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version.d.ts b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version.d.ts new file mode 100644 index 00000000..bdbbd3af --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version.d.ts @@ -0,0 +1,17 @@ +/** + * Outputs Angular CLI version. + */ +export interface Schema { + /** + * Shows a help message for this command in the console. + */ + help?: HelpUnion; +} +/** + * Shows a help message for this command in the console. + */ +export declare type HelpUnion = boolean | HelpEnum; +export declare enum HelpEnum { + HelpJson = "JSON", + Json = "json" +} diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version.js new file mode 100644 index 00000000..a772dc7b --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version.js @@ -0,0 +1,10 @@ +"use strict"; +// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE +// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...). +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HelpEnum = void 0; +var HelpEnum; +(function (HelpEnum) { + HelpEnum["HelpJson"] = "JSON"; + HelpEnum["Json"] = "json"; +})(HelpEnum = exports.HelpEnum || (exports.HelpEnum = {})); diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version.json b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version.json new file mode 100644 index 00000000..8f4c3ff1 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/commands/version.json @@ -0,0 +1,13 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "ng-cli://commands/version.json", + "description": "Outputs Angular CLI version.", + "$longDescription": "", + + "$aliases": ["v"], + "$scope": "all", + "$impl": "./version-impl#VersionCommand", + + "type": "object", + "allOf": [{ "$ref": "./definitions.json#/definitions/base" }] +} -- cgit v1.2.3