question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Built-in project templates

See original GitHub issue

Branching 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:closed
  • Created 7 years ago
  • Reactions:8
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
insincommented, Jul 19, 2016

That’s effectively what vue-cli does, installing boilerplates from vue-templates with some configurable bits templated.

1reaction
lackercommented, Jul 19, 2016

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 like

create-react-app MyApp --from github.com/blah/jeiowf or create-react-app MyApp --from npm:jims-react-boilerplate

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found