Giter Club home page Giter Club logo

create-components-react's People

Contributors

marcellino-ornelas avatar orrison avatar xingzo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

create-components-react's Issues

Template interpolation feature

Description

This feature request is going to allow a user to develop there own react templates to use for every creation of a component. This will also give a user the opportunity to use there own specific react structure through out there app with little to no modifications to the files themselves.

Usages

This will be the folder structure that create-components-react will use to initialize your templates.

.ccrrc
    | - - main
    | - - index
    | - - style

Local Templating and settings is not working

I have followed the instructions in the readme and it seems that my local settings and templates are not taking hold. For example here are my settings:

{
	"test": false,
	"css": true,
	"index": true,
	"default": true,
	"cssType": "module.css",
	"templates": true,
	"extendCwd": "./src",
	"verbose": false
}

Yet when I run a command to make a component, such as:

ccr create Wow

None of my settings take affect, for example the css file just comes out as Wow.css even though template dictates it should be named './{{= it.component.name }}.{{= it.settings.cssType}}' so I would expect the file to come out as Wow.module.css

Am I doing something wrong?

recursion flag

Intro

The recursion flag with make components from a long path without having to make one by one. This will help stop redundant path files.

Commander module will be very helpful in this feature. Look at the docs to see how to use this module.

examples

react-component -r Nav/NavItem

This would make a folder structure of:

Nav
| -- Nav.js
| -- Nav.css
| -- index.js
|
| -- NavItem
      | -- NavItem.js
      | -- NavItem.css
      | -- index.js

As of right now to accomplish what we want done here we would need to write(old way):

 react-component Nav Nav/NavItem

Feature Request: Global settings/templates

Thank you so much for making this project, it has saved me a lot of time.

I just wanted to notate it could be very useful to be able to create global settings and templates. Which could be overridden by local settings/templates.

But generally I make a lot of my components similar so being able to create globals and not spend time copying over templates from another project would be awesome.

Thank you!

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.