Skip to content

Soulwire's Percolator CakeFile ported to grunt task. Coffee Percolator is a Grunt Task which allows you to use import directives to easily manage dependancies in your CoffeeScript project.

License

Notifications You must be signed in to change notification settings

redde81/grunt-coffee-percolator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Release History

Merged grunt-coffee-percolator-v2 changes to grunt-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: '--bare'
  },
})

Multitask

grunt.initConfig({
  percolator: {
    main:{
        source: 'path/to/js/folder',
        output: 'path/to/js/folder/main.js',
        main: 'main.coffee',
        compile: true,
        opts: '--bare'
    },
    helpers:{
        source: 'path/to/js/helper/folder',
        output: 'path/to/js/helper/folder/main.js',
        main: 'helper.coffee',
        compile: true,
        opts: '--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: ''

A string value that of one or more coffee options.

About

Soulwire's Percolator CakeFile ported to grunt task. Coffee Percolator is a Grunt Task which allows you to use import directives to easily manage dependancies in your CoffeeScript project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 88.7%
  • JavaScript 11.3%