Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Grunt task for node-browserify

This branch is 13 commits ahead, 319 commits behind jmreidy:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tasks
test
.gitignore
.npmignore
Gruntfile.js
LICENSE-MIT
README.md
package.json

README.md

grunt-browserify

Grunt task for node-browserify

Getting Started

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-browserify

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

grunt.loadNpmTasks('grunt-browserify');

Documentation

Add this to grunt.initConfig()

    pkg: '<json:package.json>',
    meta: {
      banner: '\n/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
        '<%= grunt.template.today("yyyy-mm-dd") %>\n ' + '<%= pkg.homepage ? "* " + pkg.homepage + "\n *\n " : "" %>' +
        '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;\n' +
        ' * Licensed under the <%= _.pluck(pkg.licenses, "type").join(", ") %> license */'
    },
    browserify: {
      "dist/bundle.js": {
        requires: ['traverse'],
        entries: ['src/**/*.js'],
        prepend: ['<banner:meta.banner>'],
        append: [],
        hook: function (bundle) {
          // Do something with bundle
        }
      }
    }

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

v0.1.0 - Initial release

License

Copyright (c) 2012 Camille Moncelier Licensed under the MIT license.

Something went wrong with that request. Please try again.