grunt-coffee-toaster

Grunt for CoffeeScript Toaster.

npm install grunt-coffee-toaster
7 downloads in the last week
11 downloads in the last month

grunt-coffee-toaster

Build Status Dependency Status NPM version

Grunt for Coffee Toaster.

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-toaster --save-dev

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

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

The "toaster" Task

Run this task with the grunt toaster command.

Coffee Toaster is a minimalist build system for CoffeeScript, made for those who dare to use class definitions in CoffeeScript while being able to easily inherit from external files. The system is powered with import directives that uses wildcards facilities, exposed scopes, excluded files filter options and a packaging system that can inject your folders-as-namespaces to all your classes based on where they are under your src folder.

Options

All options are directly passed to CoffeeScript Toaster! Please see the Coffee Toaster documentation for all available options.

Usage Examples

Compile sources from src/app to bin/app.js.

grunt.initConfig({
  toaster: {
    dist: {
      bare: false,
      minify: false,
      folders: { "src/app":"app" },
      release: "bin/app.js"
    }
  }
});

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

grunt.registerTask('default', ['toaster']);

Contributing

I Love Open Source

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Copyright (c) We Are Interactive under the MIT license.

Bitdeli Badge

npm loves you