Open pnicolli opened 4 years ago
@pnicolli I haven't heard of the feature, but if it fulfills our requirements we can for sure! We only need time to invest on it! I can't recall if there's something else that we do that CRA doesn't...
/cc @nileshgulia1
@pnicolli I just saw the feature, its really good. There are two things:
CONS
What if we switched to cra-template and removed create-volto-app tool and later in future if the CRA team drops support for the templates(may be), or some other feature may come up in future which doesn't allow us to create templates.
The templates (for now) doesn't support scoped packages. So npx create-react-app my-app --template cra-template-@plone/volto-starter-kit
would throw an error. There's a PR in progress to solve this though: https://github.com/facebook/create-react-app/pull/8167
PROS
Nonetheless, I see no major issues while switching to cra-templates, as long as its maintained by the community.
There was a new release in create-react-app that allows creation of custom templates. https://github.com/facebook/create-react-app/releases/tag/v3.3.0
Should we convert volto-starter-kit to a cra-template and drop support for this create-volto-app tool?
I haven't looked into templates thoroughly yet, so I'm not 100% sure it's doable with no hassle. I would like to hear a first opinion first :)