Comments (2)
1st Capitalization issue:
npx generate-react-cli component -f test --path src/components/base
If you take a look at the template and the calls to replace(...)
you can see that this is intended behavior. By convention, in React, components are PascalCase
, which is true for the component filenames as well. (e.g. App.tsx)
2nd Capitalization issue:
npx generate-react-cli component -f ABTest --path src/components/base
What is your expected behavior in this case? Which do you consider to be correct, ABTest
or AbTest
, or do you only care if it's consistent?
You can create a custom template which uses templatename
vs TemplateName
for the import. (I would go this route for now)
You could submit a PR to allow the config file to keep certain replacements as is.
You could submit a pr to change filenames to PascalCase
.
from generate-react-cli.
Related Issues (20)
- Creating componentENOENT: no such file or directory rg.config.json HOT 1
- styled components HOT 2
- Whenever i try to create a component in a subfolder the subfolder declarations appear on the component declaration. HOT 1
- Custom template where user decide files and content HOT 4
- Only Pascal casing seems to work for custom templates HOT 3
- instead of using given name for folder name uses undefined HOT 1
- Page creation using existing directory HOT 2
- Custom templated filenames cannot be formatted to different cases HOT 2
- Shorten commands with aliases HOT 1
- --flat isn't working HOT 3
- `ReDoS` security vulnerability in minimatch -> replace HOT 2
- Pascal case component generation broken HOT 2
- Dependency Dashboard
- Param issue HOT 1
- Allow to generate from relative paths flag HOT 1
- Add context, custom hook and redux toolkits modules templates HOT 2
- Built-in scripts to improve user experience HOT 1
- allow to customize folder naming convention HOT 2
- Component template with internal folder structure HOT 1
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.
from generate-react-cli.