Navigation Menu

Skip to content

Commit

Permalink
include babel-preset-lightscript as a peerDependency
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Dec 19, 2017
1 parent abfa4df commit 95bf79f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
16 changes: 13 additions & 3 deletions README.md
@@ -1,13 +1,23 @@
# parcel plugin lightscript
# parcel-plugin-lightscript

an example parcel plugin for loading lightscript


## usage

```
$ yarn add parcel-plugin-lightscript babel-plugin-lightscript
$ yarn add parcel-plugin-lightscript babel-preset-lightscript
```

create a .babelrc and add 'lightscript' to the presets

example:

```js
{
"presets": ["lightscript"]
}
```

then import an `lsc` file, or `<script src=` it in your index.html

and hooray your legs off
8 changes: 5 additions & 3 deletions package.json
@@ -1,10 +1,12 @@
{
"name": "parcel-plugin-lightscript",
"version": "0.0.6",
"version": "0.1.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"babylon-lightscript": "^0.5.9",
"parcel-bundler": "^1.2.0"
"parcel-bundler": "^1.2.1"
},
"peerDependencies": {
"babel-preset-lightscript": "^0.5.0"
}
}

0 comments on commit 95bf79f

Please sign in to comment.