edbyrnee-schematics-nestjs

Custom Material Design Schematics

Usage no npm install needed!

<script type="module">
  import edbyrneeSchematicsNestjs from 'https://cdn.skypack.dev/edbyrnee-schematics-nestjs';
</script>

README

Tfg-Mat(erial)-Schematics

  1. Install the package into your angular-cli project
    • npm install --save tfg-mat-schematics
  2. Run any of the following:
    • schematics tfg-mat-schematics:tfgdatatable --dry-run=false --path=output/accounts/accounts-list --name=AccountsList --columns=account_namen,account_type_namen,count*n
    • schematics tfg-mat-schematics:tfgdialog

Development

Make sure you have both the tsc and typescript packages installed

schematics .:tfg-page --dry-run=false --path=../../output/test-page/page-list

Publish an update

  1. Update package version 0.0.4 -> 0.0.5
    • npm version patch
  2. Run the following to complie
    • npm run build
  3. Run the following to publish changes
    • npm publish

Test running the schematics

schematics edbyrnee-mat-schematics:tfg-page --dry-run=false --path jobs/jobs-list

Model with providers

Run edbyrnee-schematics-nestjs % schematics .:model-with-providers --dry-run=false --name=User --path=modules/users --properties user_name:string

Run (test) schematics .:model-with-providers --dry-run=false --name=User --path=users --properties user_name:string schematics .:model-with-providers --name=User --properties user_name:string

Install sequelize

Dependancies

npm install --save sequelize mysql2 sequelize-typescript

Run schematics edbyrnee-schematics-nestjs:sequelize-init

Run (test) schematics .:sequelize-init --dry-run=false

Create basic crud service

Run schematics .:service-basic-crud

Run (test) schematics .:service-basic-crud --dry-run=false