edbyrnee-schematics-nestjs
v0.0.10
Published
Custom Material Design Schematics
Downloads
6
Readme
Tfg-Mat(erial)-Schematics
- Install the package into your angular-cli project
- npm install --save tfg-mat-schematics
- 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
- Update package version 0.0.4 -> 0.0.5
- npm version patch
- Run the following to complie
- npm run build
- 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