# @happyvalleyio/parcel-plugin-pebble

> A parcel bundler plugin for working with pebble template files

Latest version **0.1.3** (published 2020-06-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @happyvalleyio/parcel-plugin-pebble
pnpm add @happyvalleyio/parcel-plugin-pebble
yarn add @happyvalleyio/parcel-plugin-pebble
bun add @happyvalleyio/parcel-plugin-pebble
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2020-06-09 |
| First published | 2020-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Happy Valley IO |
| Maintainers | stepbeek |

## Links

- npm: https://www.npmjs.com/package/@happyvalleyio/parcel-plugin-pebble
- Repository: https://github.com/HappyValleyIO/parcel-plugin-pebble
- Homepage: https://github.com/HappyValleyIO/parcel-plugin-pebble#readme
- Issues: https://github.com/HappyValleyIO/parcel-plugin-pebble/issues
- npm.io page: https://npm.io/package/@happyvalleyio/parcel-plugin-pebble

## Recent versions

- 0.1.3 (latest) — 2020-06-09
- 0.1.2 — 2020-06-09
- 0.1.1 — 2020-06-08
- 0.1.0 — 2020-06-08

## README

# parcel-plugin-pebble
A basic parcel plugin to fix issues with building pebble templates

## Install

Simple install the plugin and parcel will do the rest:

```bash
npm i -D @happyvalleyio/parcel-plugin-pebble
```

## What it does

This is a stupidly simple plugin currently. It treats any `.peb` files as HTML *but* does not attempt to process any 
url that contains pebble syntax. As an example,

```html
<a href="/secure/{{ resource.resourceId }}">Go to resource</a>
``` 

This would normally fail to build due to parcel attempting to resolve `secure/{{ resource.resourceId }}` as a dependency. 
We ignore any url that contains `{{ something }}` and allow parcel to happily treat the rest of the doc as HTML.

## Future work

![What do now](https://newfastuff.com/wp-content/uploads/2019/10/43-hFEuVqC.png)

We want to add some configuration:

* allow custom file extensions (for jinja or twig templates for instance) ([issue](https://github.com/HappyValleyIO/parcel-plugin-pebble/issues/1))
* allow processing other resource types than HTML ([issue](https://github.com/HappyValleyIO/parcel-plugin-pebble/issues/2))
* any other problems we run into while trying to build pebble templates with parcel

## Contributing
Feel free to open a pull request. We use this project in production so should be fairly quick to respond.

---
_Source: https://npm.io/package/@happyvalleyio/parcel-plugin-pebble · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
