Git Product home page Git Product logo

iamtabrezkhan / awesome-react-generator Goto Github PK

View Code? Open in Web Editor NEW
101.0 101.0 5.0 441 KB

No more clicking around to create files in your react project! Awesome React Generator is Command Line Tool that let's you scaffold your components without leaving your terminal.

License: MIT License

JavaScript 100.00%
automation binary cli command-line-tool components nodejs react reactjs scaffold

awesome-react-generator's People

Contributors

aamir-mallick avatar dependabot[bot] avatar iamtabrezkhan avatar mikokofuyu avatar shadab14meb346 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

awesome-react-generator's Issues

New feature for typescript components.

I am suggesting a type of typescript and as well as it's good to have this for js also.
components with useStyle using react material-ui.
As an example, there should be a folder like SignIn. In this folder there should be two files index.tsx with below content

import React from "react";
import { useStyles } from "./useStyles";
const StudentProfile: React.FC<any> = () => {
const classes = useStyles();
  return (
    <div>Working</div>
  );
};

export default SignIn;

and a file useStyles.tsx with below starting code

import { makeStyles } from "@material-ui/core/styles";
export const useStyles = makeStyles((theme) => ({
}));

Update typescript templates

Right now cli tool generates typescript files but the boilerplate is not typescript.
We have to update typescript templates in the templates folder.

Why "Classes"?

In this template:

importCssLine = `import Classes from "./${pascalCaseName}.module.${css}";\n`;

The css module is imported with the name Classes In the CSS modules docs they use the word styles. Why was the name Classes chosen?

To keep consistent with more people's code, I propose we change it to styles as a default and add an option to change the name.

Documentation wanted

  1. Is it extendable?
    1. Can I add extra templates or override current?
    2. Which template engine is used?
    3. Can I make templates for style/test file?
  2. Can I override some of CLI params? For example, I want test files to be generated each time

Feat: add an optional argument in component command

Right now, component command only generates a js file and a css file. An optional argument can be given with command, for instance:

rg component rfc hello-world --test

that will generate a test file also.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.