Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tinchoz49/parcel-plugin-surplus

A parcel plugin to compile your Surplus JSX views
https://github.com/tinchoz49/parcel-plugin-surplus

jsx parcel parcel-plugin surplus

Last synced: 14 days ago
JSON representation

A parcel plugin to compile your Surplus JSX views

Awesome Lists containing this project

README

        

# Parcel Surplus Plugin
> A parcel plugin to compile your [Surplus](https://github.com/adamhaile/surplus) JSX views.

[![Build Status](https://travis-ci.com/tinchoz49/parcel-plugin-surplus.svg?branch=master)](https://travis-ci.com/tinchoz49/parcel-plugin-surplus)
[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)

## Usage
```
$ npm install --save-dev parcel-plugin-surplus
```

![example](https://user-images.githubusercontent.com/819446/38743167-cad3cb44-3f14-11e8-96cf-a6b0c54076f9.gif)

## For TypeScript users

To work with TypeScript it's necessary to add in your tsconfig.json the `jsxFactory` prop:

```json
{
"compilerOptions": {
...
"jsx": "preserve",
"jsxFactory": "Surplus",
}
}
```