create-components-react's People
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!
Does packages' including not work?
I call ccr like this:
ccr create --packages pac1:pac2:pac3 Test
but i don't see packages in my component.
What am I doing wrong?
Include documentation in the readme on creating function components
I believe the readme needs an update to include info on how to create a functional component.
I just happened to guess it right that you use the flag -f (for example ccr create -f Wow
) but I am sure it would be beneficial for others to document that.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.