jesusreal / angular-schematics-playground

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MyProject

This project was generated with Angular CLI version 12.1.3.

Schematics test

Install project dependencies

yarn install --frozen-lockfile

Install schematics library dependencies and build the library

yarn --cwd libs/schematics-test install --frozen-lockfile && \
yarn --cwd libs/schematics-test build 

Run the test schematic with ng generate command

ng g ./dist/libs/schematics/collection.json:my-test-schematic --localize.locale=de

You should see the following error

Unknown option: '--localize.locale'

Run the test schematic with schematics command

schematics ./dist/libs/schematics/collection.json:my-test-schematic --localize.locale=de

The option is passed to the schematic. You should see the following output

My test schematic: {"localize":{"locale":"de"}}

About


Languages

Language:HTML 74.2%Language:TypeScript 21.3%Language:JavaScript 4.3%Language:CSS 0.2%