This commit is contained in:
CHEVALLIER Abel
2025-11-13 16:23:22 +01:00
parent de9c515a47
commit cb235644dc
34924 changed files with 3811102 additions and 0 deletions

10
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.dev/license
*/
import { Rule } from '@angular-devkit/schematics';
import { Schema as NgNewOptions } from './schema';
export default function (options: NgNewOptions): Rule;

68
node_modules/@schematics/angular/ng-new/index.js generated vendored Executable file
View File

@@ -0,0 +1,68 @@
"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.dev/license
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = default_1;
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,
zoneless: options.zoneless,
};
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.schematic)('ai-config', {
tool: options.aiConfig?.length ? options.aiConfig : undefined,
}),
(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.skipGit) {
const commit = typeof options.commit == 'object' ? options.commit : options.commit ? {} : false;
context.addTask(new tasks_1.RepositoryInitializerTask(options.directory, commit), packageTask ? [packageTask] : []);
}
},
]);
}

167
node_modules/@schematics/angular/ng-new/schema.d.ts generated vendored Executable file
View File

@@ -0,0 +1,167 @@
/**
* Creates a new Angular workspace and an initial project. This schematic sets up the
* foundation for your Angular development, generating the workspace configuration files and
* an optional starter application. You can customize various aspects of the workspace and
* the initial project, such as routing, styling, and testing.
*/
export type Schema = {
/**
* Specifies which AI tools to generate configuration files for. These file are used to
* improve the outputs of AI tools by following the best practices.
*/
aiConfig?: AiConfig[];
/**
* Configure the initial Git commit for the new repository.
*/
commit?: CommitUnion;
/**
* Create a new initial application project in the new workspace. When false, creates an
* empty workspace with no initial application. You can then use the `ng generate
* application` command to create applications in the `projects` directory.
*/
createApplication?: boolean;
/**
* The directory where the new workspace and project should be created. If not specified,
* the workspace will be created in the current directory.
*/
directory?: string;
/**
* Include the styles for the initial application's root component directly within the
* `app.component.ts` file. By default, a separate stylesheet file (e.g.,
* `app.component.css`) is created.
*/
inlineStyle?: boolean;
/**
* Include the HTML template for the initial application's root component directly within
* the `app.component.ts` file. By default, a separate template file (e.g.,
* `app.component.html`) is created.
*/
inlineTemplate?: boolean;
/**
* Generate a minimal Angular workspace without any testing frameworks. This is intended for
* learning purposes and simple experimentation, not for production applications.
*/
minimal?: boolean;
/**
* The name for the new workspace and the initial project. This name will be used for the
* root directory and various identifiers throughout the project.
*/
name: string;
/**
* The path where new projects will be created within the workspace, relative to the
* workspace root. By default, new projects are created in the `projects` directory.
*/
newProjectRoot?: string;
/**
* The package manager used to install dependencies.
*/
packageManager?: PackageManager;
/**
* The prefix to apply to generated selectors for the initial project. For example, if the
* prefix is `my-app` and you generate a component named `my-component`, the selector will
* be `my-app-my-component`.
*/
prefix?: string;
/**
* Enable routing in the initial application project. This sets up the necessary files and
* modules for managing navigation between different views in your application.
*/
routing?: boolean;
/**
* Do not initialize a Git repository in the new workspace. By default, a Git repository is
* initialized to help you track changes to your project.
*/
skipGit?: boolean;
/**
* Skip the automatic installation of packages. You will need to manually install the
* dependencies later.
*/
skipInstall?: boolean;
/**
* Skip the generation of unit test files `spec.ts`.
*/
skipTests?: boolean;
/**
* Configure the initial application for Server-Side Rendering (SSR) and Static Site
* Generation (SSG/Prerendering).
*/
ssr?: boolean;
/**
* Creates an application based upon the standalone API, without NgModules.
*/
standalone?: boolean;
/**
* Enable 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.dev/tools/cli/template-typecheck#strict-mode
*/
strict?: boolean;
/**
* The type of stylesheet files to be created for components in the initial project.
*/
style?: Style;
/**
* The version of the Angular CLI to use.
*/
version: string;
/**
* Sets the view encapsulation mode for components in the initial project. This determines
* how component styles are scoped and applied. Options include: `Emulated` (default, styles
* are scoped to the component), `None` (styles are global), and `ShadowDom` (styles are
* encapsulated using Shadow DOM).
*/
viewEncapsulation?: ViewEncapsulation;
/**
* Create an initial application that does not utilize `zone.js`.
*/
zoneless?: boolean;
};
export declare enum AiConfig {
Claude = "claude",
Copilot = "copilot",
Cursor = "cursor",
Gemini = "gemini",
Jetbrains = "jetbrains",
None = "none",
Windsurf = "windsurf"
}
/**
* Configure the initial Git commit for the new repository.
*/
export type CommitUnion = boolean | CommitObject;
export type CommitObject = {
email: string;
message?: string;
name: string;
[property: string]: any;
};
/**
* The package manager used to install dependencies.
*/
export declare enum PackageManager {
Bun = "bun",
Cnpm = "cnpm",
Npm = "npm",
Pnpm = "pnpm",
Yarn = "yarn"
}
/**
* The type of stylesheet files to be created for components in the initial project.
*/
export declare enum Style {
Css = "css",
Less = "less",
Sass = "sass",
Scss = "scss"
}
/**
* Sets the view encapsulation mode for components in the initial project. This determines
* how component styles are scoped and applied. Options include: `Emulated` (default, styles
* are scoped to the component), `None` (styles are global), and `ShadowDom` (styles are
* encapsulated using Shadow DOM).
*/
export declare enum ViewEncapsulation {
Emulated = "Emulated",
None = "None",
ShadowDom = "ShadowDom"
}

48
node_modules/@schematics/angular/ng-new/schema.js generated vendored Executable file
View File

@@ -0,0 +1,48 @@
"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 = exports.AiConfig = void 0;
var AiConfig;
(function (AiConfig) {
AiConfig["Claude"] = "claude";
AiConfig["Copilot"] = "copilot";
AiConfig["Cursor"] = "cursor";
AiConfig["Gemini"] = "gemini";
AiConfig["Jetbrains"] = "jetbrains";
AiConfig["None"] = "none";
AiConfig["Windsurf"] = "windsurf";
})(AiConfig || (exports.AiConfig = AiConfig = {}));
/**
* The package manager used to install dependencies.
*/
var PackageManager;
(function (PackageManager) {
PackageManager["Bun"] = "bun";
PackageManager["Cnpm"] = "cnpm";
PackageManager["Npm"] = "npm";
PackageManager["Pnpm"] = "pnpm";
PackageManager["Yarn"] = "yarn";
})(PackageManager || (exports.PackageManager = PackageManager = {}));
/**
* The type of stylesheet files to be created for components in the initial project.
*/
var Style;
(function (Style) {
Style["Css"] = "css";
Style["Less"] = "less";
Style["Sass"] = "sass";
Style["Scss"] = "scss";
})(Style || (exports.Style = Style = {}));
/**
* Sets the view encapsulation mode for components in the initial project. This determines
* how component styles are scoped and applied. Options include: `Emulated` (default, styles
* are scoped to the component), `None` (styles are global), and `ShadowDom` (styles are
* encapsulated using Shadow DOM).
*/
var ViewEncapsulation;
(function (ViewEncapsulation) {
ViewEncapsulation["Emulated"] = "Emulated";
ViewEncapsulation["None"] = "None";
ViewEncapsulation["ShadowDom"] = "ShadowDom";
})(ViewEncapsulation || (exports.ViewEncapsulation = ViewEncapsulation = {}));

157
node_modules/@schematics/angular/ng-new/schema.json generated vendored Executable file
View File

@@ -0,0 +1,157 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "SchematicsAngularNgNew",
"title": "Angular Ng New Options Schema",
"type": "object",
"description": "Creates a new Angular workspace and an initial project. This schematic sets up the foundation for your Angular development, generating the workspace configuration files and an optional starter application. You can customize various aspects of the workspace and the initial project, such as routing, styling, and testing.",
"additionalProperties": false,
"properties": {
"directory": {
"type": "string",
"description": "The directory where the new workspace and project should be created. If not specified, the workspace will be created in the current directory."
},
"name": {
"description": "The name for the new workspace and the initial project. This name will be used for the root directory and various identifiers throughout the 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": "Skip the automatic installation of packages. You will need to manually install the dependencies later.",
"type": "boolean",
"default": false
},
"skipGit": {
"description": "Do not initialize a Git repository in the new workspace. By default, a Git repository is initialized to help you track changes to your project.",
"type": "boolean",
"default": false,
"alias": "g"
},
"commit": {
"description": "Configure the initial Git commit for the new repository.",
"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 within the workspace, relative to the workspace root. By default, new projects are created in the `projects` directory.",
"type": "string",
"default": "projects"
},
"inlineStyle": {
"description": "Include the styles for the initial application's root component directly within the `app.component.ts` file. By default, a separate stylesheet file (e.g., `app.component.css`) is created.",
"type": "boolean",
"alias": "s",
"x-user-analytics": "ep.ng_inline_style"
},
"inlineTemplate": {
"description": "Include the HTML template for the initial application's root component directly within the `app.component.ts` file. By default, a separate template file (e.g., `app.component.html`) is created.",
"type": "boolean",
"alias": "t",
"x-user-analytics": "ep.ng_inline_template"
},
"viewEncapsulation": {
"description": "Sets the view encapsulation mode for components in the initial project. This determines how component styles are scoped and applied. Options include: `Emulated` (default, styles are scoped to the component), `None` (styles are global), and `ShadowDom` (styles are encapsulated using Shadow DOM).",
"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 application project. This sets up the necessary files and modules for managing navigation between different views in your application.",
"x-user-analytics": "ep.ng_routing"
},
"prefix": {
"type": "string",
"format": "html-selector",
"description": "The prefix to apply to generated selectors for the initial project. For example, if the prefix is `my-app` and you generate a component named `my-component`, the selector will be `my-app-my-component`.",
"minLength": 1,
"default": "app",
"alias": "p"
},
"style": {
"description": "The type of stylesheet files to be created for components in the initial project.",
"type": "string",
"enum": ["css", "scss", "sass", "less"],
"x-user-analytics": "ep.ng_style"
},
"skipTests": {
"description": "Skip the generation of unit test files `spec.ts`.",
"type": "boolean",
"default": false,
"alias": "S"
},
"createApplication": {
"description": "Create a new initial application project in the new workspace. When false, creates an empty workspace with no initial application. You can then use the `ng generate application` command to create applications in the `projects` directory.",
"type": "boolean",
"default": true
},
"minimal": {
"description": "Generate a minimal Angular workspace without any testing frameworks. This is intended for learning purposes and simple experimentation, not for production applications.",
"type": "boolean",
"default": false
},
"strict": {
"description": "Enable 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.dev/tools/cli/template-typecheck#strict-mode",
"type": "boolean",
"default": true
},
"packageManager": {
"description": "The package manager used to install dependencies.",
"type": "string",
"enum": ["npm", "yarn", "pnpm", "cnpm", "bun"]
},
"standalone": {
"description": "Creates an application based upon the standalone API, without NgModules.",
"type": "boolean",
"default": true,
"x-user-analytics": "ep.ng_standalone"
},
"ssr": {
"description": "Configure the initial application for Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering).",
"type": "boolean",
"x-user-analytics": "ep.ng_ssr"
},
"zoneless": {
"description": "Create an initial application that does not utilize `zone.js`.",
"type": "boolean"
},
"aiConfig": {
"type": "array",
"uniqueItems": true,
"description": "Specifies which AI tools to generate configuration files for. These file are used to improve the outputs of AI tools by following the best practices.",
"items": {
"type": "string",
"enum": ["none", "gemini", "copilot", "claude", "cursor", "jetbrains", "windsurf"]
}
}
},
"required": ["name", "version"]
}