Built-in project templates
See original GitHub issueBranching from discussion https://github.com/facebookincubator/create-react-app/issues/11#issuecomment-233492323. This is something I want to support in a potential v2.
create-react-app my-app # default like structure like now
create-react-app my-app --from empty
create-react-app my-app --from todomvc
create-react-app my-app --from relay-starter
create-react-app my-app --from you-see-where-im-going
I’m opposed to turning this project into a code generator. However I think initial templates can be useful because they offer a nice way to “clone” examples. We could move the official React examples into this system, and libraries could provide third party “starters”.
I’m not sure this is a good idea but I’d love to be able to tell people to run create-react-app my-app --from redux-todomvc
instead of telling them to clone a project, run npm install
, etc.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:8
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Contribute to built-in project templates - GitLab Docs
To contribute a built-in project template, you must complete the following tasks: Create a project template for GitLab review; Add the template SVG...
Read more >Save projects as templates | IntelliJ IDEA Documentation
If you have a project that you want to reproduce when creating new projects, you can save it as a custom project template....
Read more >Built-in Step templates - Octopus Deploy
Octopus includes built-in step templates that have been developed by the Octopus team to handle the most common deployment scenarios.
Read more >Creating a New Project from a Built-in Template
Viewing Built-In Project Templates. Scrivener comes preloaded with a variety of templates (projects with predefined settings) for you to choose from, ...
Read more >MLOps Project Templates - Amazon SageMaker
Describes the templates in Amazon SageMaker projects. ... A SageMaker project template is an AWS Service Catalog product that SageMaker makes available to ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s effectively what vue-cli does, installing boilerplates from vue-templates with some configurable bits templated.
I think this would be awesome. I would totally prefer boilerplates that are using the “official react app creation setup”. It’s also a way for people to filter out old boilerplates - if they don’t work with the most recent create-react-app, they’re out of date.
It might be awkward to put a whole lot of dependencies in
create-react-app
but maybe you could have them be loaded by something likecreate-react-app MyApp --from github.com/blah/jeiowf
orcreate-react-app MyApp --from npm:jims-react-boilerplate