0.2.3 • Published 11 years ago

grunt-coffee-percolator v0.2.3

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

grunt-coffee-percolator

Soulwire's CakeFile Percolator ported to grunt task For usage and documentation, see Soulwire's repo at https://github.com/soulwire/Coffee-Percolator

Getting Started

This plugin requires Grunt ~0.4.1

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-coffee-percolator --save-dev

One the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-coffee-percolator');

The "coffee_percolator" task

Overview

In your project's Gruntfile, add a section named coffee_percolator to the data object passed into grunt.initConfig().

grunt.initConfig({
  percolator: {
    source: 'path/to/js/folder',
    output: 'path/to/js/folder/main.js',
    main: 'main.coffee',
    compile: true,
    opts: '--lint --bare'
  },
})

Options

source

Type: String Default value: '.'

A string value that specifies the base folder of your js/coffee.

output

Type: String Default value: 'scripts.min.js'

A string value that is the compiled js file.

main

Type: String Default value: 'main.coffee'

A string value that is the main coffee-file to compile.

compile

Type: Boolean Default value: true

A boolean for if the files should be compiled or not.

opts

Type: String Default value: '--lint'

A string value that of one or more coffee options.

Release History

(Nothing yet)

0.2.3

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago