updated: documentation
This commit is contained in:
parent
4ee51ea76f
commit
12829a45a8
29
Readme.md
29
Readme.md
@ -7,13 +7,26 @@ A parcel plugin for riot.js
|
|||||||
|
|
||||||
## Important
|
## Important
|
||||||
|
|
||||||
If you are using Riot.js < 4.0.0 please check the [v3 branch](https://github.com/riot/parcel-plugin-riot/tree/v3)
|
- If you are using Parcel < 1.0.0 please check the [this branch](https://github.com/riot/parcel-transformer-riot/tree/parcel-v1)
|
||||||
|
- If you are using Riot.js < 4.0.0 please check the [v3 branch](https://github.com/riot/parcel-transformer-riot/tree/v3)
|
||||||
|
|
||||||
## Using
|
## Using
|
||||||
Add parcel-plugin-riot to your project.
|
|
||||||
|
### 1. Add the riot parcel transformer to your project.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm i -D @riotjs/parcel-plugin-riot @riotjs/compiler
|
npm i -D @riotjs/parcel-transformer-riot @riotjs/compiler
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. Configure your .parcelrc file
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"extends": "@parcel/config-default",
|
||||||
|
"transformers": {
|
||||||
|
"*.riot": ["@riotjs/parcel-transformer-riot"]
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
-> You are ready!
|
-> You are ready!
|
||||||
@ -70,13 +83,13 @@ npm i @riotjs/hot-reload -D
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
[ci-image]:https://img.shields.io/github/workflow/status/riot/parcel-plugin-riot/test?style=flat-square
|
[ci-image]:https://img.shields.io/github/workflow/status/riot/parcel-transformer-riot/test?style=flat-square
|
||||||
[ci-url]:https://github.com/riot/parcel-plugin-riot/actions
|
[ci-url]:https://github.com/riot/parcel-transformer-riot/actions
|
||||||
|
|
||||||
[license-image]: https://img.shields.io/badge/license-MIT-000000.svg?style=flat-square
|
[license-image]: https://img.shields.io/badge/license-MIT-000000.svg?style=flat-square
|
||||||
[license-url]: LICENSE
|
[license-url]: LICENSE
|
||||||
|
|
||||||
[npm-version-image]: https://img.shields.io/npm/v/@riotjs/parcel-plugin-riot.svg?style=flat-square
|
[npm-version-image]: https://img.shields.io/npm/v/@riotjs/parcel-transformer-riot.svg?style=flat-square
|
||||||
[npm-downloads-image]: https://img.shields.io/npm/dm/@riotjs/parcel-plugin-riot.svg?style=flat-square
|
[npm-downloads-image]: https://img.shields.io/npm/dm/@riotjs/parcel-transformer-riot.svg?style=flat-square
|
||||||
[npm-url]: https://npmjs.org/package/@riotjs/parcel-plugin-riot
|
[npm-url]: https://npmjs.org/package/@riotjs/parcel-transformer-riot
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/andruschka/parcel-plugin-riot"
|
"url": "https://github.com/riot/parcel-plugin-riot"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@riotjs/compiler": "^6.0.0"
|
"@riotjs/compiler": "^6.0.0"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user