All Projects → diegohaz → Generact

diegohaz / Generact

Licence: mit
Generate React components by replicating your own

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Generact

Reactprimer
React component prototyping tool that generates fully connected class component code.
Stars: ✭ 743 (-49.49%)
Mutual labels:  create-react-app, generator, react-boilerplate
Rispa Cli
Modular project management
Stars: ✭ 30 (-97.96%)
Mutual labels:  cli, generator
Create Component App
Tool to generate different types of React components from the terminal. 💻
Stars: ✭ 879 (-40.24%)
Mutual labels:  cli, create-react-app
Readme Md Generator
📄 CLI that generates beautiful README.md files
Stars: ✭ 9,184 (+524.34%)
Mutual labels:  cli, generator
Cfonts
Sexy fonts for the console
Stars: ✭ 789 (-46.36%)
Mutual labels:  cli, generator
React Boilerplate Cra Template
🔥 Setup Create React App with React Boilerplate. Highly scalable & Best DX & Performance Focused & Best practices.
Stars: ✭ 859 (-41.6%)
Mutual labels:  create-react-app, react-boilerplate
Guaka
The smartest and most beautiful (POSIX compliant) Command line framework for Swift 🤖
Stars: ✭ 1,145 (-22.16%)
Mutual labels:  cli, generator
Create React Library
⚡CLI for creating reusable react libraries.
Stars: ✭ 4,554 (+209.59%)
Mutual labels:  cli, create-react-app
Cra Generate
Scaffold a React component.
Stars: ✭ 78 (-94.7%)
Mutual labels:  cli, create-react-app
Angular Librarian
An Angular 2+ scaffolding setup for creating libraries
Stars: ✭ 92 (-93.75%)
Mutual labels:  cli, generator
Easywebpack Cli
A Powerful Cross-platform Webpack CLI Tool
Stars: ✭ 110 (-92.52%)
Mutual labels:  cli, react-boilerplate
Bangajs
Bàngá is a CLI generator for scaffolding ExpressJS applications with speed and efficiency.
Stars: ✭ 102 (-93.07%)
Mutual labels:  cli, generator
Devkit
Stars: ✭ 561 (-61.86%)
Mutual labels:  cli, generator
Samples Viewer Generator
🎉 A CLI utility tool to generate web app of data visualization samples for presentation purpose
Stars: ✭ 13 (-99.12%)
Mutual labels:  cli, generator
Xcodegen
A Swift command line tool for generating your Xcode project
Stars: ✭ 5,032 (+242.08%)
Mutual labels:  cli, generator
Telosys Cli
Telosys v 3 CLI - Command Line Interface
Stars: ✭ 66 (-95.51%)
Mutual labels:  cli, generator
Cra Universal
🌏 Create React App companion for universal app. No eject, auto SSR, zero config, full HMR, and more (inactive project)
Stars: ✭ 419 (-71.52%)
Mutual labels:  cli, create-react-app
Plop
Consistency Made Simple
Stars: ✭ 4,765 (+223.93%)
Mutual labels:  cli, generator
The forge
Our groundbreaking, lightning fast PWA CLI tool
Stars: ✭ 70 (-95.24%)
Mutual labels:  cli, generator
Generator Ngx Rocket
🚀 Extensible Angular 11+ enterprise-grade project generator
Stars: ✭ 1,329 (-9.65%)
Mutual labels:  cli, generator

generact

Generated with nod NPM version Build Status Coverage Status


Tool for generating React components by replicating your own.
It's intended to work no matter how your file structure is.


generact

 Are you looking for a VS Code extension? Try vscode-generact.


It already works with boilerplates such as create-react-app (above example), react-boilerplate, react-starter-kit and ARc (ok, I'm self-promoting here 😆). So, most likely this will work for you with your current project.

Install

$ npm install -g generact

Motivation

Facebook poll Facebook poll

I usually work on different projects with different file structures. Whenever I needed to create a new component, the approach I used was to copy and paste a similar or very basic component and start writing the new component from it. Talking with other developers, this seemed like a very common process.

However, I've never been satisfied with that. It looked like I was doing a robot job. So why not create a robot to do that?

Usage

$ cd ~/my-projects/my-react-project
$ generact

That will scan ~/my-projects/my-react-project for components to replicate.

Specify another root path to find components

If you want to replicate components from another directory, you can do that by using root option:

$ generact --root relative/or/absolute/path/to/any/react/project

Specify component path to replicate

generact will probably find all component files inside the root path automagically (using list-react-files). But, if it doesn't, you can still pass in the component path:

$ generact relative/or/absolute/path/to/component.js

Contributing

PRs are welcome.

Use npm run watch while coding.

License

MIT © Diego Haz

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].