aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/@schematics/angular/e2e/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@schematics/angular/e2e/index.js')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/e2e/index.js82
1 files changed, 0 insertions, 82 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/e2e/index.js b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/e2e/index.js
deleted file mode 100644
index aa1104c8..00000000
--- a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/e2e/index.js
+++ /dev/null
@@ -1,82 +0,0 @@
-"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 });
-const core_1 = require("@angular-devkit/core");
-const schematics_1 = require("@angular-devkit/schematics");
-const dependencies_1 = require("../utility/dependencies");
-const json_file_1 = require("../utility/json-file");
-const paths_1 = require("../utility/paths");
-const workspace_1 = require("../utility/workspace");
-const workspace_models_1 = require("../utility/workspace-models");
-function addScriptsToPackageJson() {
- return (host) => {
- const pkgJson = new json_file_1.JSONFile(host, 'package.json');
- const e2eScriptPath = ['scripts', 'e2e'];
- if (!pkgJson.get(e2eScriptPath)) {
- pkgJson.modify(e2eScriptPath, 'ng e2e', false);
- }
- };
-}
-function default_1(options) {
- return async (host) => {
- const appProject = options.relatedAppName;
- const workspace = await (0, workspace_1.getWorkspace)(host);
- const project = workspace.projects.get(appProject);
- if (!project) {
- throw new schematics_1.SchematicsException(`Project name "${appProject}" doesn't not exist.`);
- }
- const root = (0, core_1.join)((0, core_1.normalize)(project.root), 'e2e');
- project.targets.add({
- name: 'e2e',
- builder: workspace_models_1.Builders.Protractor,
- defaultConfiguration: 'development',
- options: {
- protractorConfig: `${root}/protractor.conf.js`,
- },
- configurations: {
- production: {
- devServerTarget: `${options.relatedAppName}:serve:production`,
- },
- development: {
- devServerTarget: `${options.relatedAppName}:serve:development`,
- },
- },
- });
- return (0, schematics_1.chain)([
- (0, workspace_1.updateWorkspace)(workspace),
- (0, schematics_1.mergeWith)((0, schematics_1.apply)((0, schematics_1.url)('./files'), [
- (0, schematics_1.applyTemplates)({
- utils: core_1.strings,
- ...options,
- relativePathToWorkspaceRoot: (0, paths_1.relativePathToWorkspaceRoot)(root),
- }),
- (0, schematics_1.move)(root),
- ])),
- (host) => [
- {
- type: dependencies_1.NodeDependencyType.Dev,
- name: 'protractor',
- version: '~7.0.0',
- },
- {
- type: dependencies_1.NodeDependencyType.Dev,
- name: 'jasmine-spec-reporter',
- version: '~7.0.0',
- },
- {
- type: dependencies_1.NodeDependencyType.Dev,
- name: 'ts-node',
- version: '~9.1.1',
- },
- ].forEach((dep) => (0, dependencies_1.addPackageJsonDependency)(host, dep)),
- addScriptsToPackageJson(),
- ]);
- };
-}
-exports.default = default_1;