grunt-brunch

Grunt Brunch wrapper

npm install grunt-brunch
5 downloads in the last day
23 downloads in the last week
100 downloads in the last month

Drive Brunch with Grunt
Build Status Dependency Status NPM version Stories in Ready

Run Brunch.IO as a Grunt task

Getting Started

Install this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with: npm install grunt-brunch

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-brunch');

[getting_started]: https://github.com/cowboy/grunt/blob/master/docs/getting_started.md

Usage

Configuration:

grunt.initConfig({
  ...
  brunch: {
    // Watch and run server at 8888
    serve: {
      action: 'serve',
      port: 8888
    },
    // Just like 'serve' but an asnchronous task
    serveAsync: {
      action: 'serve',
      port: 8888,
      async: true
    },
    // Watch for file changes only
    watch: {
      action: 'watch',
      port: 8888
    },
    // Compile
    compile: {
      action: 'compile'
    },
    // Build (compile + minify + uglify)
    build: {
      action: 'build'
    }
  },
  ...
});
npm loves you