Comments (5)
Hi @viktorbergehall !
Yes, you are right.
I'm creating a .md file with more details about the custom templates.
Thanks for your support 🚀
from create-component-app.
Hi @viktorbergehall !
I created a doc file to create custom templates.
Give me some feedbacks 👍
from create-component-app.
Thanks for the guide!
A couple of thoughts:
- How do you specify pure/stateless/class in templates?
- If you collect all settings in one file then the settings doesn't seem to apply. For example:
# config.json
{
"path": "./src/components",
"jsExtension": "js",
"cssExtension": "scss",
"includeTests": true,
"includeStories": true,
"type": "custom",
"templatesPath": ".ccarc/templates"
}
- It would be great if the script defaulted to look for settings in
.ccarc/config.json
(or something) rather than you'd have to specify it with the config flag. - It wold be great if you could specify file name for each file. I thinking something like this:
# config.json
{
...
file_name: {
test: 'COMPONENT_NAME.test.js',
etc
}
}
I'm running create-react-app
and that looks for test files with the naming *.test.js
so files name *.tests.js
doesn't run by default
from create-component-app.
How do you specify pure/stateless/class in templates ?
If you collect all settings in one file then the settings doesn't seem to apply
With type custom
you can't specify from the config the type because I can't know what are you writing in your template.
So, the only options that you can use when you use type:custom
are:
- path
- templatesPath
The other will be ignore because you are writing your own templates, and in your templates folder you can put whatever you want 👍 .
It would be great if the script defaulted to look for settings in .ccarc/config.json (or something) rather than you'd have to specify it with the config flag.
It is already in this way 🙂
If doesn't work give me additional information to fix the bug 💪
It would be great if you could specify file name for each file.
Cool 🌮 Do you want contribute with this enhancement ?
I'm running create-react-appand that looks for test files with the naming *.test.js so files name *.tests.js doesn't run by default
Sorry, but I don't understand what you mean 🙁
Thanks a lot for your support.
If there are other issue/questions I'm here 🎉
from create-component-app.
Hi @viktorbergehall
If you don't have any question, I'm closing the issue
Thanks a lot for your contribute 🙂
from create-component-app.
Related Issues (20)
- Does not process files in template subdirectories HOT 1
- Ability to create a component without creating it's parent directory? HOT 6
- Support for TypeScript components HOT 2
- import styles from './undefined.css' HOT 3
- Does not work with no config or example configs HOT 5
- Change file naming format for tests HOT 5
- there's no `--path` param HOT 2
- Proposal: Searching for config file from `.` to `/` HOT 1
- [Error] Cannot convert undefined or null to object HOT 1
- Proposal: Do you want semicolons ? HOT 4
- Proposal: Make create-component-app usable from other apps
- Proposal: Create a tree components configuration object
- Extraneous`null` emitted HOT 2
- Proposal: componentMethods option - unintuitive behavior HOT 2
- support for typescript HOT 3
- Template Creation Docs Are Unclear HOT 2
- Control Case Of Template Name HOT 1
- Proposal: Alter the default path in a template HOT 1
- Proposal - add support for .ts and .tsx extensions HOT 3
- No config file detected HOT 2
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 create-component-app.