Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include babel-preset-lightscript as a peerDependency
- Loading branch information
chee
committed
Dec 19, 2017
1 parent
abfa4df
commit 95bf79f
Showing
2 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} |