Skip to content

frantic1048/fly-pug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fly-pug

fly badge npm badge download badge travisbadge license badge

Pug plugin for Fly .

Install

This plugin requires Fly .

npm i -D fly-pug

Usage

Async/Await flavored:

export async function pagu () {
  await this
    .source('src/*.pug')
    .pug()
    // or pass your options to pug
    // .pug({pretty: true})
    .target('dist')
}

Generator function flavored:

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.

License

Do What The F*ck You Want To Public License