Code Generator
Description
Goal of this project is the automation of code generator.
Use cases
- help: visualizza la lista dei comandi
- init: create a new project with a cgconf.json file
- generate schematic: generate files from schema-name. Each schema-name point to a folder that contains:
- stepnumber: file that contain step number, 0 by default
- templates folder: folder with files
- subschematics folder: folder with sub schematics ordered by step
- variables.json: variables used to substitute value on template's files
- version.json: a version file with number, description, changelog
- connect: to connect with remote repository of schematics
Init
Se all'avvio viene impostato come command init, verrà eseguito il seguente flusso:
- se è stato passato un'altro parametro dopo init (
console.log(process.argv);
), verrà considerato come nome progetto da creare. Diversamente verrà chiesto il nome del progetto - Verrà creata una cartella con il nome del progetto
- Verrà creato all'interno della cartella del progetto il file cgconf.json
Project Structure
- ./schematics