Codesandbox-client: Empty (non-framework) template for JavaScript and TypeScript

Created on 7 Oct 2017  ยท  4Comments  ยท  Source: codesandbox/codesandbox-client

Hey @CompuIves. Again, awesome work with CodeSandbox!

It would be great if we could have an empty (non-react/non-framework) templates for both plain JavaScript and TypeScript. I often just want to try out or share pure data-based JavaScript, like RxJS concepts and I don't need any visual representation for that, yet CodeSandbox is great for this use case too. Even better, perhaps the View part in such cases could be replaced with a visual console.log.

Cheers!
Bazyli

๐Ÿค” Improvement

Most helpful comment

Ooooh I like this! Will think some more about this.

All 4 comments

A vanilla template sounds very appealing! The big question is what we should include in this template in terms of webpack loaders, maybe we should just add everything and turn them on dynamically, but I don't want this template to be a catch-all template...

This is some tricky situation, would love to discuss this more.

Regarding the console, we have support for it very ๐Ÿ”œ thanks to the work of @lbogdan ๐Ÿ˜„ .

Hmm, I propose to have these two rows of big button choices when creating a new sandbox.

Select your framework (โ“ tooltip: missing your favorite framework? Add it -here- -- links to new issue in this repo):

  • react (default)
  • preact
  • ... (whatever other framework)
  • empty project

Select your language/transpiler (โ“ tooltip: missing your favorite language/transpiler? Add it -here- -- links to new issue in this repo):

  • JavaScript + Babel (default)
  • TypeScript
  • Reason
  • ... (whatever other transpiler)

And lastly, you'd have a tick box/button:

  • Customize

and that last option would allow one to customize the config, transpiler options, turn on/off loaders, etc. as needed.

Ooooh I like this! Will think some more about this.

We can close this with the vanilla template ๐Ÿ˜„

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gautamarora picture gautamarora  ยท  50Comments

faceyspacey picture faceyspacey  ยท  44Comments

Enjoy2Live picture Enjoy2Live  ยท  20Comments

Nico-L picture Nico-L  ยท  21Comments

Telokis picture Telokis  ยท  24Comments