-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
92c7674 build: migrate @angular-devkit/schematics-cli to npm_package
- Loading branch information
Angular Builds
committed
Jan 15, 2025
1 parent
ece7fbd
commit a61140c
Showing
50 changed files
with
560 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
/** | ||
* Generates an application shell for running a server-side version of an app. | ||
* Configures your project to generate an app-shell during build time. | ||
*/ | ||
export interface Schema { | ||
/** | ||
* The name of the related client app. | ||
* The name of the project where the app-shell should be generated. | ||
*/ | ||
project: string; | ||
/** | ||
* Creates a server application using the Server Routing API (Developer Preview). | ||
* Set up a server application using the Server Routing and App Engine APIs (Developer | ||
* Preview). | ||
*/ | ||
serverRouting?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,32 @@ | ||
/** | ||
* Creates a new, generic class definition in the given project. | ||
* Creates a new class in your project. Classes are the fundamental building blocks for | ||
* object-oriented programming in TypeScript. They provide a blueprint for creating objects | ||
* with properties and methods. This schematic helps you generate a new class with the basic | ||
* structure and optional test files. | ||
*/ | ||
export interface Schema { | ||
/** | ||
* The name of the new class. | ||
* The name for the new class. This will be used to create the class file (e.g., | ||
* `my-class.ts`) and, if enabled, the corresponding test file `my-class.spec.ts`. | ||
*/ | ||
name: string; | ||
/** | ||
* The path at which to create the class, relative to the workspace root. | ||
* The path where the class file should be created, relative to the workspace root. If not | ||
* specified, the class will be created in the current directory. | ||
*/ | ||
path?: string; | ||
/** | ||
* The name of the project. | ||
* The name of the project where the class should be added. If not specified, the CLI will | ||
* determine the project from the current directory. | ||
*/ | ||
project: string; | ||
/** | ||
* Do not create "spec.ts" test files for the new class. | ||
* Skip the generation of a unit test file `spec.ts` for the new class. | ||
*/ | ||
skipTests?: boolean; | ||
/** | ||
* Adds a developer-defined type to the filename, in the format "name.type.ts". | ||
* Adds a custom type to the filename, allowing you to create more descriptive class names. | ||
* For example, if you set the type to `helper`, the filename will be `my-class.helper.ts`. | ||
*/ | ||
type?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.