@kerthin/schematics

Kerthin schematics

Usage no npm install needed!

<script type="module">
  import kerthinSchematics from 'https://cdn.skypack.dev/@kerthin/schematics';
</script>

README

kerthin-schematics

Run schematics locally

Install dependencies

$ npm i -g @angular-devkit/schematics-cli

Generate schema interface

# Inside the schematic folder run the following
$ npx -p dtsgenerator dtsgen ./schema.json -o ./<schematic-name>.schema.d.ts

Run schematic locally

# build project
$ yarn build

# inside schematics root folder
$ schematics .:aggregate --dry-run=false <...params>

# example
$ schematics .:aggregate --dry-run=false --directory=example --moduleName=user --properties="name:Name,email:Email,addresses:Address:true,profile:Profile::true"