Updated the files.

This commit is contained in:
Batuhan Berk Başoğlu 2024-02-08 19:38:41 -05:00
parent 1553e6b971
commit 753967d4f5
23418 changed files with 3784666 additions and 0 deletions

10
my-app/node_modules/@schematics/angular/ng-new/index.d.ts generated vendored Executable file
View file

@ -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;

67
my-app/node_modules/@schematics/angular/ng-new/index.js generated vendored Executable file
View file

@ -0,0 +1,67 @@
"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.slice(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,
standalone: options.standalone,
ssr: options.ssr,
};
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;

132
my-app/node_modules/@schematics/angular/ng-new/schema.d.ts generated vendored Executable file
View file

@ -0,0 +1,132 @@
/**
* 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;
/**
* Enable routing in 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 an application with Server-Side Rendering (SSR) and Static Site Generation
* (SSG/Prerendering) enabled.
*/
ssr?: boolean;
/**
* Creates an application based upon the standalone API, without NgModules.
*/
standalone?: 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 type CommitUnion = boolean | CommitObject;
export interface CommitObject {
email: string;
message?: string;
name: string;
[property: string]: any;
}
/**
* 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"
}

34
my-app/node_modules/@schematics/angular/ng-new/schema.js generated vendored Executable file
View file

@ -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 = 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 = 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 = ViewEncapsulation = {}));

150
my-app/node_modules/@schematics/angular/ng-new/schema.json generated vendored Executable file
View file

@ -0,0 +1,150 @@
{
"$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": "ep.ng_inline_style"
},
"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": "ep.ng_inline_template"
},
"viewEncapsulation": {
"description": "The view encapsulation strategy to use in the initial project.",
"enum": ["Emulated", "None", "ShadowDom"],
"type": "string"
},
"version": {
"type": "string",
"description": "The version of the Angular CLI to use.",
"visible": false,
"$default": {
"$source": "ng-cli-version"
}
},
"routing": {
"type": "boolean",
"description": "Enable routing in the initial project.",
"x-user-analytics": "ep.ng_routing"
},
"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": "ep.ng_style"
},
"skipTests": {
"description": "Do not generate \"spec.ts\" test files for the new project.",
"type": "boolean",
"default": false,
"alias": "S"
},
"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
},
"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
},
"packageManager": {
"description": "The package manager used to install dependencies.",
"type": "string",
"enum": ["npm", "yarn", "pnpm", "cnpm"]
},
"standalone": {
"description": "Creates an application based upon the standalone API, without NgModules.",
"type": "boolean",
"default": true,
"x-user-analytics": "ep.ng_standalone"
},
"ssr": {
"description": "Creates an application with Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) enabled.",
"type": "boolean",
"x-user-analytics": "ep.ng_ssr"
}
},
"required": ["name", "version"]
}