1.0.6 • Published 3 years ago

@remcolakens/simple-component-generator-2 v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Simple Component Generator

Node NPM

Simple component generator helps you to kickstart your new React components, by removing the cumbersome process of creating and configuring each file individually.

Video

Requirements

This tool is built on top of Node JS, so you don't need to install much tooling. It will basically work with any front-end stack just make sure to edit the blueprint folder to fit your requirements. For this tool you need the following:

  • Node LTS
  • Terminal
  • Front-end stack

Installation

Download and include this repo in your front-end, for example in the folder: @tools/generator. Now you need to create the link by adding this line into your package.json

"scripts": {
    ...
    "generate": "node @tools/generator/component-generator.js",
    ...
}

Install the required dependencies in to your front-end stack:

yarn add -D inquirer replace-in-file

Open @tools/generator/component-generator.js and check if the directories match with your front-end setup.

Now the tool is almost configured, don't forget to adjust the files in the /blueprint folder!

How to Use

It's very simple to get started just run the following command in your terminal:

yarn generate

You will get a simple questionnaire and that’s it your component has been generated.

Bugs

Found a bug? Please verify your Node and NPM versions with the versions listed above.

Still not working, or do you have other questions and feedback? Please post create an issue in this repository and I will have a look at it ASAP.

List of contributers

License

MIT

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