An open API service indexing awesome lists of open source software.

https://github.com/steve-lebleu/rsgen

Naive resources generation for Typeplate.
https://github.com/steve-lebleu/rsgen

entity-generation typeplate

Last synced: 3 months ago
JSON representation

Naive resources generation for Typeplate.

Awesome Lists containing this project

README

        

![Github action workflow status](https://github.com/steve-lebleu/rsgen/actions/workflows/build.yml/badge.svg?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/steve-lebleu/rsgen/badge.svg?branch=master)](https://coveralls.io/github/steve-lebleu/rsgen?branch=master)
![Known Vulnerabilities](https://snyk.io/test/github/steve-lebleu/rsgen/badge.svg)
![GitHub Release](https://img.shields.io/github/v/release/steve-lebleu/rsgen?logo=Github)
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)

Naive modular resource generation for :point_right: [Typeplate](https://github.com/steve-lebleu/typeplate) project.

## > How to ?

### Install

```bash
$ npm install -g rsgen
```

### Generate

Go to project folder:

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

Generate resource module or core member:

#### Short way

```bash
$ rsgen [] []
```

- **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

```bash
$ rsgen
```

And prompt will ask you to define your parameters.

## > Licence

[MIT](/LICENSE)