Codesandbox-client: Ability to change template

Created on 28 May 2018  路  5Comments  路  Source: codesandbox/codesandbox-client

Currently, whether I create a sandbox from the ui, from a GitHub repo, or from the CLI, a template is chosen for me (e.g. create-react-app, parcel). But the detection is sometimes wrong (e.g. creating a sandbox from https://github.com/marmelab/react-admin/tree/master/examples/simple detects it as "create-react-app", which is wrong), or we may want to change our minds.

So the ability to switch to another template would really be great.

Most helpful comment

This one is coming in today! You can set your template in sandbox.config.json and if it changes we update all settings.

We don't change automatically detected templates, only the templates explicitly defined in the config.

All 5 comments

This is the one feature preventing our organization from using CodeSandbox as our primary teaching assessment tool. Students submit their assignments (in the form of a Github URL) via our LMS. Unfortunately, since the auto template is not always accurate (we do more than just create-react-app), it makes it difficult for us to test their code and provide feedback.

Being able to switch templates within a project would instantly resolve our bottleneck. Thank you!

I have experienced this issue too, even after adding a sandbox.config.json with

{
  "template": "parcel"
}

The "Project Info" tab still shows the auto-detected template, not the explicitly defined one.

sandbox - importantly, this code works offline.

This one is coming in today! You can set your template in sandbox.config.json and if it changes we update all settings.

We don't change automatically detected templates, only the templates explicitly defined in the config.

This is awesome @CompuIves ! I successfully converted my React template project to a Vanilla template project and started using the alias package.json field #467 and now have a monorepo-style project!

Coool! I'll close this one now 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eckmLJE picture eckmLJE  路  3Comments

Haroenv picture Haroenv  路  3Comments

k15a picture k15a  路  3Comments

kentcdodds picture kentcdodds  路  3Comments

NataliaTepluhina picture NataliaTepluhina  路  3Comments