Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Adds 'dependOn' option to brunch config.
CoffeeScript
Branch: master
Failed to load latest commit information.
lib Implement with touch
src Implement with touch
test Fix some trivial codes
.gitignore first commit
.npmignore first commit
Gruntfile.coffee Bump version of grunt tasks
LICENSE-MIT first commit
README.md Bump version to 0.1.2
package.json Bump version to 0.1.2

README.md

dependency-brunch

Adds dependOn option to brunch config.

Installation

Add "dependency-brunch": "x.y.z" to package.json of your brunch app.

Pick a plugin version that corresponds to your minor (y) brunch version.

If you want to use git version of plugin, add "dependency-brunch": "git+ssh://git@github.com:shiwano/dependency-brunch.git".

Usage

You can use dependOn option in config.coffee. Example:

exports.config =
  files:
    javascripts:
      dependOn:
        'app/config.coffeeenv': [
          /^app(\/|\\)controllers/
          /^app(\/|\\)views/
          /^app(\/|\\)models/
        ]

Now, when app/controllers/home.coffee changed, brunch compile app/config.coffeeenv too.

More Examples:

exports.config =
  files:
    stylesheets:
      dependOn:
        'app/styli/foo.styl': 'app/styli/bar.styl'
exports.config =
  files:
    templates:
      dependOn:
        'app/templates/foo.hbs': /^app(\/|\\)templates/

Contributing

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.

Release History

  • 2013-03-02   v0.1.2   Use touch
  • 2013-02-09   v0.1.1   Replace underscore with lodash
  • 2012-12-16   v0.1.0   First release.

License

Copyright (c) 2012 Shogo Iwano Licensed under the MIT license.

Something went wrong with that request. Please try again.