0.9.0 ā€¢ Published 6 years ago

playgrounds v0.9.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

What is Playgrounds?

Playgrounds is an alternative to Codesandbox or webpackbin with the difference that it's running locally on your computer. This gives you the advantage that you can use your own editor which is already configured like you want. Playgrounds is build to quickly prototype new ideas or try out libraries but not for production ready applications.

Getting Started

# Install playgrounds on your machine
npm install -g playgrounds

# Create your first playground
playgrounds

You can use npx playgrounds to try out playgrounds without installing it globally.

Features

JSX

We support JSX for React, Preact and Inferno. We decide which transform we use based on the imports of the file. If you import from react we will transform JSX to React.createElement. If you import from preact we transform JSX to h. If you import from inferno we transform JSX to Inferno.createVNode. Otherwise we will disable all JSX transforms.

Automatic Node Package Installation

As soon as you import a package from NPM we will download it for you so you don't have to care about this. We also install peer dependencies so nothing is missing.

Babel Macros

We support babel-macros out of the box. Feel free to use them.

Templates

We currently have templates for React, Preact and styled-components. We try to keep the templates as simple as possible because nobody wants to delete code they don't need.

You can override the existing templates or create a new template in your ~/.playgrounds/templates directory. Create a new directory with the template name and put everything there you want. Then you can use the template with playgrounds --template <template-name>.

šŸ¦„

0.9.0

6 years ago

0.8.0

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago