2.0.1 • Published 3 years ago

neomi-cli v2.0.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
3 years ago

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
2.0.1

3 years ago

2.0.0

3 years ago

1.0.18

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago