Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frantic1048/fly-pug
Pug plugin for Fly.
https://github.com/frantic1048/fly-pug
Last synced: 27 days ago
JSON representation
Pug plugin for Fly.
- Host: GitHub
- URL: https://github.com/frantic1048/fly-pug
- Owner: frantic1048
- License: wtfpl
- Created: 2016-07-13T15:11:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-24T15:12:18.000Z (over 7 years ago)
- Last Synced: 2024-09-14T04:51:11.490Z (about 2 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fly-pug
[![fly badge][fly-bgp]][fly-bg] [![npm badge][npm-bgp]][npm-bg] ![download badge][dl-bgp] [![travisbadge][travis-bgp]][travis-bg] [![license badge][license-bgp]][license-bg]
[fly-bgp]: https://img.shields.io/badge/fly-JS-05B3E1.svg?style=flat-square&maxAge=2592000
[fly-bg]: https://github.com/flyjs/fly[npm-bgp]: https://img.shields.io/npm/v/fly-pug.svg?style=flat-square
[npm-bg]: https://www.npmjs.org/package/fly-pug[dl-bgp]: https://img.shields.io/npm/dm/fly-pug.svg?style=flat-square
[travis-bgp]: https://img.shields.io/travis/frantic1048/fly-pug.svg?style=flat-square
[travis-bg]: https://travis-ci.org/frantic1048/fly-pug[license-bgp]: https://img.shields.io/github/license/frantic1048/fly-pug.svg?style=flat-square
[license-bg]: https://spdx.org/licenses/WTFPL.html[Pug][] plugin for *[Fly][]* .
[Fly]: https://github.com/flyjs/fly
[Pug]: https://github.com/pugjs/pug## Install
This plugin requires [Fly][] .
```bash
npm i -D fly-pug
```## Usage
Async/Await flavored:
```js
export async function pagu () {
await this
.source('src/*.pug')
.pug()
// or pass your options to pug
// .pug({pretty: true})
.target('dist')
}
```Generator function flavored:
```js
exports.pagu = function* () {
yield this
.source('src/*.pug')
.pug()
// or pass your options to pug
// .pug({pretty: true})
.target('dist')
}
```Check out Pug [documentation][] for available options.
[documentation]: http://jade-lang.com/api/
## License
[Do What The F*ck You Want To Public License](https://spdx.org/licenses/WTFPL)