Skip to content

steve-lebleu/rsgen

Repository files navigation

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