this is a cli made for NEOMI project to handle and generate repetitive code generation.
this is a cli re-lay in this main concepts :
- Binding matrices : for each ressource we have a automatically generated csv matrice that allow to point the inversify inversion of controlls
- Generating inversify : generating the needed inversify config and types
- Generating template : generating the new ressourses template files
install with commande :
npm install neomi-cli
please install it globally for more convenience with the commande :
npm -g install neomi-cli
the main commande for the CLI :
neomi help
the keywords for subCommande are :
- -new : allow to create a new ressource
- -print : allow you to see the current configuration
- -generate : allow you to generate the necessary configurations and files of the chapter
the config commande allow you to configure you project paths and global configuration :
- print global configuration
neomi config-print
- delete current global configuration
neomi config-reset
- allow to synchronize and generate all necessary files and configuration with current config
neomi config-generate
the respository commande allow you to handle repositories ressources :
- print repository mapping matrice and check the health of repositories config
neomi repository-print
- create new repository (interface,implementation) and add it configuration to inversify (config,type)
neomi repository-new
- generate and synchorinze all the (interface,implementation) and inversify configs (config,type) with the mappings matrice
neomi repository-generate
the service commande allow you to handle repositories ressources :
- print service mapping matrice and check the health of repositories config
neomi service-print
- create new service (interface,implementation) and add it configuration to inversify (config,type)
neomi service-new
- generate and synchorinze all the repositories (interface,implementation) and inversify configs (config,type) with the mappings matrice
neomi service-generate
the controller commande allow you to handle repositories ressources :
- print controller mapping matrice and check the health of repositories config
neomi controller-print
- create new controller and add it configuration to inversify (config)
neomi controller-new
- generate and synchorinze all the controllers (interface) and inversify configs (config) with the mappings matrice
neomi controller-generate
you can build the project and test it locally with the following command :
npm link && npm upgrade -g neomi
you can build patch the project and test locally with the following command :
new patch version :
npm version patch
npm publish
npm upgrade -g neomi-cli
new minor version
npm version minor
npm publish
npm upgrade -g neomi-cli
new major version
npm version major
npm publish
npm upgrade -g neomi-cli