Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
src
www
.gitignore
README.md
compile.coffee
config.multi.coffee
config.single.coffee
package.json

README.md

Instrospection

Check out the compile.coffee file for different usages.

Requiring

    Toaster = require( "coffee-toaster" ).Toaster

Custom config files:

    # PASSSING CONFIG FILE (same as the single-folder example)
    new Toaster __dirname, {w:true, d:true, "config-file": "config.single.coffee"}

Or:

    # PASSSING CONFIG FILE (same as the multi-folder example)
    new Toaster __dirname, {w:true, d:true, "config-file": "config.multi.coffee"}

Using JS object:

    # PASSING OBJECT (single)
    new Toaster __dirname,
        w:true
        d:true
        config:
            # => SRC FOLDERS AND VENDORS
            folders: 'src': ''
            vendors:[]

            # OPTIONS
            bare: false
            packaging: true
            expose: 'window'
            minify: false

            # RELEASING
            httpfolder: ''
            release: "www/js/app.js"
            debug: 'www/js/app-debug.js'
    # PASSING OBJECT (multi)
    new Toaster __dirname,
        w:true
        d:true
        config:
            # => SRC FOLDERS AND VENDORS
            folders:
                'src/app': 'app'
                'src/artists': 'artists'
                'src/genres': 'genres'
            vendors:[]

            # OPTIONS
            bare: false
            packaging: true
            expose: 'window'
            minify: false

            # RELEASING
            httpfolder: ''
            release: "www/js/app.js"
            debug: 'www/js/app-debug.js'

Execute it to test it.

Something went wrong with that request. Please try again.