ag-schematics
v0.0.4
Published
Ag schematics is a collection of Angular schematics for generating and modifying Angular projects.
Readme
ag-schematics
An Angular schematics library built with @angular-devkit/schematics.
Schematics
| Name | Description |
|------|-------------|
| ag-schematics | A blank schematic. |
| test-component | A blank schematic. |
Development
Install dependencies
npm installBuild
Compiles TypeScript to dist/ (spec files excluded). The dist/ folder is the publishable artifact.
npm run buildOutput:
dist/
collection.json
ag-schematics/
index.js
index.d.ts
test-component/
index.js
index.d.tsTest
Compiles everything (including spec files) to out/ and runs the Vitest test suite.
npm testProject structure
src/
collection.json # Schematic collection manifest
ag-schematics/
index.ts # Schematic implementation
index_spec.ts # Tests
test-component/
index.ts # Schematic implementation
index_spec.ts # Tests
tsconfig.json # Base compiler config (used by npm test → out/)
tsconfig.lib.json # Lib build config (used by npm run build → dist/)Using the schematics
After building, link or publish the package and run a schematic with the Angular CLI:
ng generate ag-schematics:ag-schematics
ng generate ag-schematics:test-component