New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@benyap/react-template-generator

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@benyap/react-template-generator

Template generator for React projects.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

React Template Generator

Don't work harder, work smarter.

A simple CLI tool used to help scaffold React components from custom templates for your project = efficiency and consistency.

Quickstart

  1. Use Node 10.

  2. Install the package:

yarn add -D @benyap/react-template-generator
  1. Create a configuration file in your project root called reactgenconfig.json. Learn how to configure it.

  2. Create your templates in your project root in a folder called templates. Learn how to create templates.

  3. Run a simple command* to generate your component.

yarn reactgen <name>

* If using npm, as this to your package.json:

{
  "scripts": {
    "reactgen": "reactgen"
  }
}

and use npm run reactgen <name> to generate your component.

Examples

See an example configuration here. Treat the example folder as the project root.

Why Generators?

From Plop:

Because when you create your boilerplate separate from your code, you naturally put more time and thought into it.

Because saving your team (or yourself) 5-15 minutes when creating every route, component, controller, helper, test, view, etc... really adds up.

Because context switching is expensive and saving time is not the only benefit to automating workflows.

License

MIT

FAQs

Package last updated on 09 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc