nicolasey / plop-colonel

Plop actions for Colonel boilerplate
MIT License
0 stars 0 forks source link

plop generators for Colonel NestJS

An opinionated plop generator for NestJS Colonel boilerplate.

Installation

This package is hosted on npm.

npm install --save-dev @nicolasey/plop-colonel

Usage

You need to install Colonel NestJS based project. Those generators are specific.

Afterwards, be sure you have plop installed. Then, add the following lines to your plopfile.js.

const colonel =
  require("@nicolasey/plop-colonel").default;

colonel(plop, defaultConfig);

so your plopfile.js could look e.g. like this

const colonel =
  require("@nicolasey/plop-colonel").default;

const config = plop => {
  colonel(plop);
};

module.exports = config;

Generators

Now you'll have access to the plop-colonel generator as shown below.

Create a new module

plop module

Create a new service within a module

plop service

Create a new service within a controller

plop controller

Questions

Report bugs or provide feedback by filling issues

License

MIT see license.md