aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/index.d.ts10
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/index.js65
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/schema.d.ts122
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/schema.js34
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/schema.json143
5 files changed, 374 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/index.d.ts b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/index.d.ts
new file mode 100644
index 00000000..d26a3d7e
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/index.d.ts
@@ -0,0 +1,10 @@
+/**
+ * @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 { Rule } from '@angular-devkit/schematics';
+import { Schema as NgNewOptions } from './schema';
+export default function (options: NgNewOptions): Rule;
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/index.js b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/index.js
new file mode 100644
index 00000000..212de742
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/index.js
@@ -0,0 +1,65 @@
+"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 schematics_1 = require("@angular-devkit/schematics");
+const tasks_1 = require("@angular-devkit/schematics/tasks");
+function default_1(options) {
+ if (!options.directory) {
+ // If scoped project (i.e. "@foo/bar"), convert directory to "foo/bar".
+ options.directory = options.name.startsWith('@') ? options.name.substr(1) : options.name;
+ }
+ const workspaceOptions = {
+ name: options.name,
+ version: options.version,
+ newProjectRoot: options.newProjectRoot,
+ minimal: options.minimal,
+ strict: options.strict,
+ packageManager: options.packageManager,
+ };
+ const applicationOptions = {
+ projectRoot: '',
+ name: options.name,
+ inlineStyle: options.inlineStyle,
+ inlineTemplate: options.inlineTemplate,
+ prefix: options.prefix,
+ viewEncapsulation: options.viewEncapsulation,
+ routing: options.routing,
+ style: options.style,
+ skipTests: options.skipTests,
+ skipPackageJson: false,
+ // always 'skipInstall' here, so that we do it after the move
+ skipInstall: true,
+ strict: options.strict,
+ minimal: options.minimal,
+ };
+ return (0, schematics_1.chain)([
+ (0, schematics_1.mergeWith)((0, schematics_1.apply)((0, schematics_1.empty)(), [
+ (0, schematics_1.schematic)('workspace', workspaceOptions),
+ options.createApplication ? (0, schematics_1.schematic)('application', applicationOptions) : schematics_1.noop,
+ (0, schematics_1.move)(options.directory),
+ ])),
+ (_host, context) => {
+ let packageTask;
+ if (!options.skipInstall) {
+ packageTask = context.addTask(new tasks_1.NodePackageInstallTask({
+ workingDirectory: options.directory,
+ packageManager: options.packageManager,
+ }));
+ if (options.linkCli) {
+ packageTask = context.addTask(new tasks_1.NodePackageLinkTask('@angular/cli', options.directory), [packageTask]);
+ }
+ }
+ if (!options.skipGit) {
+ const commit = typeof options.commit == 'object' ? options.commit : options.commit ? {} : false;
+ context.addTask(new tasks_1.RepositoryInitializerTask(options.directory, commit), packageTask ? [packageTask] : []);
+ }
+ },
+ ]);
+}
+exports.default = default_1;
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/schema.d.ts b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/schema.d.ts
new file mode 100644
index 00000000..a1e74bb8
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/schema.d.ts
@@ -0,0 +1,122 @@
+/**
+ * Creates a new project by combining the workspace and application schematics.
+ */
+export interface Schema {
+ /**
+ * Initial git repository commit information.
+ */
+ commit?: CommitUnion;
+ /**
+ * Create a new initial application project in the 'src' folder of the new workspace. When
+ * false, creates an empty workspace with no initial application. You can then use the
+ * generate application command so that all applications are created in the projects folder.
+ */
+ createApplication?: boolean;
+ /**
+ * The directory name to create the workspace in.
+ */
+ directory?: string;
+ /**
+ * Include styles inline in the component TS file. By default, an external styles file is
+ * created and referenced in the component TypeScript file.
+ */
+ inlineStyle?: boolean;
+ /**
+ * Include template inline in the component TS file. By default, an external template file
+ * is created and referenced in the component TypeScript file.
+ */
+ inlineTemplate?: boolean;
+ /**
+ * Link the CLI to the global version (internal development only).
+ */
+ linkCli?: boolean;
+ /**
+ * Create a workspace without any testing frameworks. (Use for learning purposes only.)
+ */
+ minimal?: boolean;
+ /**
+ * The name of the new workspace and initial project.
+ */
+ name: string;
+ /**
+ * The path where new projects will be created, relative to the new workspace root.
+ */
+ newProjectRoot?: string;
+ /**
+ * The package manager used to install dependencies.
+ */
+ packageManager?: PackageManager;
+ /**
+ * The prefix to apply to generated selectors for the initial project.
+ */
+ prefix?: string;
+ /**
+ * Generate a routing module for the initial project.
+ */
+ routing?: boolean;
+ /**
+ * Do not initialize a git repository.
+ */
+ skipGit?: boolean;
+ /**
+ * Do not install dependency packages.
+ */
+ skipInstall?: boolean;
+ /**
+ * Do not generate "spec.ts" test files for the new project.
+ */
+ skipTests?: boolean;
+ /**
+ * Creates a workspace with stricter type checking and stricter bundle budgets settings.
+ * This setting helps improve maintainability and catch bugs ahead of time. For more
+ * information, see https://angular.io/guide/strict-mode
+ */
+ strict?: boolean;
+ /**
+ * The file extension or preprocessor to use for style files.
+ */
+ style?: Style;
+ /**
+ * The version of the Angular CLI to use.
+ */
+ version: string;
+ /**
+ * The view encapsulation strategy to use in the initial project.
+ */
+ viewEncapsulation?: ViewEncapsulation;
+}
+/**
+ * Initial git repository commit information.
+ */
+export declare type CommitUnion = boolean | CommitObject;
+export interface CommitObject {
+ email: string;
+ message?: string;
+ name: string;
+}
+/**
+ * The package manager used to install dependencies.
+ */
+export declare enum PackageManager {
+ Cnpm = "cnpm",
+ Npm = "npm",
+ Pnpm = "pnpm",
+ Yarn = "yarn"
+}
+/**
+ * The file extension or preprocessor to use for style files.
+ */
+export declare enum Style {
+ Css = "css",
+ Less = "less",
+ Sass = "sass",
+ Scss = "scss"
+}
+/**
+ * The view encapsulation strategy to use in the initial project.
+ */
+export declare enum ViewEncapsulation {
+ Emulated = "Emulated",
+ None = "None",
+ ShadowDom = "ShadowDom"
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/schema.js b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/schema.js
new file mode 100644
index 00000000..2916aeb5
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/schema.js
@@ -0,0 +1,34 @@
+"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.ViewEncapsulation = exports.Style = exports.PackageManager = void 0;
+/**
+ * The package manager used to install dependencies.
+ */
+var PackageManager;
+(function (PackageManager) {
+ PackageManager["Cnpm"] = "cnpm";
+ PackageManager["Npm"] = "npm";
+ PackageManager["Pnpm"] = "pnpm";
+ PackageManager["Yarn"] = "yarn";
+})(PackageManager = exports.PackageManager || (exports.PackageManager = {}));
+/**
+ * The file extension or preprocessor to use for style files.
+ */
+var Style;
+(function (Style) {
+ Style["Css"] = "css";
+ Style["Less"] = "less";
+ Style["Sass"] = "sass";
+ Style["Scss"] = "scss";
+})(Style = exports.Style || (exports.Style = {}));
+/**
+ * The view encapsulation strategy to use in the initial project.
+ */
+var ViewEncapsulation;
+(function (ViewEncapsulation) {
+ ViewEncapsulation["Emulated"] = "Emulated";
+ ViewEncapsulation["None"] = "None";
+ ViewEncapsulation["ShadowDom"] = "ShadowDom";
+})(ViewEncapsulation = exports.ViewEncapsulation || (exports.ViewEncapsulation = {}));
diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/schema.json b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/schema.json
new file mode 100644
index 00000000..3ed52ab1
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/ng-new/schema.json
@@ -0,0 +1,143 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema",
+ "$id": "SchematicsAngularNgNew",
+ "title": "Angular Ng New Options Schema",
+ "type": "object",
+ "description": "Creates a new project by combining the workspace and application schematics.",
+ "additionalProperties": false,
+ "properties": {
+ "directory": {
+ "type": "string",
+ "description": "The directory name to create the workspace in."
+ },
+ "name": {
+ "description": "The name of the new workspace and initial project.",
+ "type": "string",
+ "$default": {
+ "$source": "argv",
+ "index": 0
+ },
+ "x-prompt": "What name would you like to use for the new workspace and initial project?"
+ },
+ "skipInstall": {
+ "description": "Do not install dependency packages.",
+ "type": "boolean",
+ "default": false
+ },
+ "linkCli": {
+ "description": "Link the CLI to the global version (internal development only).",
+ "type": "boolean",
+ "default": false,
+ "visible": false
+ },
+ "skipGit": {
+ "description": "Do not initialize a git repository.",
+ "type": "boolean",
+ "default": false,
+ "alias": "g"
+ },
+ "commit": {
+ "description": "Initial git repository commit information.",
+ "oneOf": [
+ { "type": "boolean" },
+ {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "email": {
+ "type": "string",
+ "format": "email"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": ["name", "email"]
+ }
+ ],
+ "default": true
+ },
+ "newProjectRoot": {
+ "description": "The path where new projects will be created, relative to the new workspace root.",
+ "type": "string",
+ "default": "projects"
+ },
+ "inlineStyle": {
+ "description": "Include styles inline in the component TS file. By default, an external styles file is created and referenced in the component TypeScript file.",
+ "type": "boolean",
+ "alias": "s",
+ "x-user-analytics": 9
+ },
+ "inlineTemplate": {
+ "description": "Include template inline in the component TS file. By default, an external template file is created and referenced in the component TypeScript file.",
+ "type": "boolean",
+ "alias": "t",
+ "x-user-analytics": 10
+ },
+ "viewEncapsulation": {
+ "description": "The view encapsulation strategy to use in the initial project.",
+ "enum": ["Emulated", "None", "ShadowDom"],
+ "type": "string",
+ "x-user-analytics": 11
+ },
+ "version": {
+ "type": "string",
+ "description": "The version of the Angular CLI to use.",
+ "visible": false,
+ "$default": {
+ "$source": "ng-cli-version"
+ }
+ },
+ "routing": {
+ "type": "boolean",
+ "description": "Generate a routing module for the initial project.",
+ "x-user-analytics": 17
+ },
+ "prefix": {
+ "type": "string",
+ "format": "html-selector",
+ "description": "The prefix to apply to generated selectors for the initial project.",
+ "minLength": 1,
+ "default": "app",
+ "alias": "p"
+ },
+ "style": {
+ "description": "The file extension or preprocessor to use for style files.",
+ "type": "string",
+ "enum": ["css", "scss", "sass", "less"],
+ "x-user-analytics": 5
+ },
+ "skipTests": {
+ "description": "Do not generate \"spec.ts\" test files for the new project.",
+ "type": "boolean",
+ "default": false,
+ "alias": "S",
+ "x-user-analytics": 12
+ },
+ "createApplication": {
+ "description": "Create a new initial application project in the 'src' folder of the new workspace. When false, creates an empty workspace with no initial application. You can then use the generate application command so that all applications are created in the projects folder.",
+ "type": "boolean",
+ "default": true
+ },
+ "minimal": {
+ "description": "Create a workspace without any testing frameworks. (Use for learning purposes only.)",
+ "type": "boolean",
+ "default": false,
+ "x-user-analytics": 14
+ },
+ "strict": {
+ "description": "Creates a workspace with stricter type checking and stricter bundle budgets settings. This setting helps improve maintainability and catch bugs ahead of time. For more information, see https://angular.io/guide/strict-mode",
+ "type": "boolean",
+ "default": true,
+ "x-user-analytics": 7
+ },
+ "packageManager": {
+ "description": "The package manager used to install dependencies.",
+ "type": "string",
+ "enum": ["npm", "yarn", "pnpm", "cnpm"]
+ }
+ },
+ "required": ["name", "version"]
+}