Giter Site home page Giter Site logo

Comments (5)

CVarisco avatar CVarisco commented on May 18, 2024

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.

CVarisco avatar CVarisco commented on May 18, 2024

Hi @viktorbergehall !

I created a doc file to create custom templates.
Give me some feedbacks 👍

from create-component-app.

vb avatar vb commented on May 18, 2024

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-appand that looks for test files with the naming *.test.js so files name *.tests.js doesn't run by default

from create-component-app.

CVarisco avatar CVarisco commented on May 18, 2024

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.

CVarisco avatar CVarisco commented on May 18, 2024

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)

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.