@firestitch/codegenerator
v18.0.13
Published
## Installation
Keywords
Readme
Running Code Generator and Schematics From Source
Installation
- Clone repo
git clone [email protected]:Firestitch/ngx-code-generator.git npm install- At this step we have to build our package for future using inside this project
npm run package - When package build finishes we need to start using
distfolder as schematic sourcecd distnpm linkcd ..npm link @firestitch/codegenerator
- All done!
Development
In /apps folder we have 3 different projects:
- api
- code-generator
- playground
Api Project
This project constains backend part of code generator. It receives API calls from CodeGenerator in browser and run schematics with passed parameters.
Its just simple NodeJS server
Code-generator
This is frontend part of code generator. Contains Angular application
Playground
Playground is a sandbox project where actual code generator can be tested.
Where is Schematics code?
Schematics code placed in /libs/schematics
How to run Dev Server?
Dev server is not single application and you have to start 3 different servers
npx nx serve code-generatornpx nx serve api '--args=--root=project' --verbose=truenpm run watch:schematics
Manual generation of schematics if you are not watching run on every change
npm run package
Build & Publish
Use npm run package for build and npm run package:publish for publishing your changes
Debug Schematics
- node --inspect-brk ./node_modules/.bin/schematics .:dialog --name=testa --module=common.module.ts --path=project/common --included-module-exports=false --routable-component=undefined --route-observer=undefined --titled-component=false --dry-run=false
- open in browser chrome://inspect
