Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.24 KB

README.md

File metadata and controls

47 lines (31 loc) · 1.24 KB

Github action workflow status Coverage Status Known Vulnerabilities GitHub Release MIT Licence

Naive modular resource generation for 👉 Typeplate project.

> How to ?

Install

$ npm install -g rsgen

Generate

Go to project folder:

$ cd path-to-the-root-of-your-typeplate-project

Generate resource module or core member:

Short way

$ rsgen <name> [<target>] [<permissions>]
  • name : name of your entity|module|member as string
  • target : -c (core) or -r (resource). Default: -r
  • permissions : -p=[a,u,g]|[admin,user,ghost]. Default: admin

Interactive way

$ rsgen

And prompt will ask you to define your parameters.

> Licence

MIT