grunt-coffee-toaster-api

0.2.0 • Public • Published

grunt-coffee-toaster-api

Build Status Dependency Status NPM version

Grunt for Coffee Toaster Api.

DEPRICATION NOTICE:

This project hasn't been maintained and updated for a while now. Please use as is and send PRs if you need changes.

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-api --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-api');

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 ExtendScript Toaster! Please see the Coffee Toaster Api 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-api');
 
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.

Package Sidebar

Install

npm i grunt-coffee-toaster-api

Weekly Downloads

1

Version

0.2.0

License

none

Last publish

Collaborators

  • franklinkim