Skip to content

sourcehunter/metalsmith-coffee

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metalsmith-coffee

Build Status

A CoffeeScript plugin for Metalsmith.

Installation

npm install metalsmith-coffee

Usage

var coffee = require('metalsmith-coffee')

Metalsmith(__dirname)
  .use(coffee(options))
  .build()

Options

Use any or all of the following:

filter

A function to filter source files. By default all files with a valid coffeescript extension (.coffee, .litcoffee, .coffee.md) are included.

output

A function that receives as argument a coffee-script source file matched by filter and that shoud return de compiled file destination filepath.

preserveSources

if preserveSources is a truthy value then the files matched by filter will also be in the build folder

Aditional options to the coffee-script compile method can also be passed in the options object.

check the coffee-script compiler documentation for details

Tests

$ npm test

License

MIT License, see LICENSE for details.

Credits

This metalsmith plugin is an adaptation of the Metalsmith LESS plugin by Cristopher Cliff

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 100.0%