npm

neomi-cli

2.0.1 • Public • Published

neomi-cli

About

this is a cli made for NEOMI project to handle and generate repetitive code generation.

Concept

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

Installation

install with commande :

npm install neomi-cli

please install it globally for more convenience with the commande :

npm -g install neomi-cli

CLI Commandes

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

config

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

repository

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

service

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

controller

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

local developpement

you can build the project and test it locally with the following command :

npm link && npm upgrade -g neomi

build the project and publish new version

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

Package Sidebar

Install

npm i neomi-cli

Weekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

53.9 kB

Total Files

43

Last publish

Collaborators

  • lil-k