Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tinchoz49/parcel-plugin-surplus
- Owner: tinchoz49
- License: mit
- Created: 2018-02-12T20:27:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-03T20:33:27.000Z (over 5 years ago)
- Last Synced: 2024-10-17T01:11:37.753Z (20 days ago)
- Topics: jsx, parcel, parcel-plugin, surplus
- Language: JavaScript
- Size: 195 KB
- Stars: 11
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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",
}
}
```