Skip to content

linemanjs/lineman-browserify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lineman-browserify

This is a plugin to make it easy to use Browserify in conjunction with a Lineman app.

Usage

First, add the plugin to your lineman project:

$ npm install lineman-browserify --save-dev

Next, you'll want to add the browserify entry points to config/files.js. The plugin supports a javascript and/or coffeescript entrypoint.

module.exports = function(lineman) {
  return {
    js: {
      entrypoint: "app/js/entrypoint.js"
    },

    coffee: {
      entrypoint: "app/js/entrypoint.coffee"
    }
  };
};

lineman-browserify configures concat_sourcemap to concatenate the 2 files that grunt-browserify emits:

  • "generated/js/browserifyBundle.js"
  • "generated/js/browserifyBundle.coffee.js"

Now, when you run lineman run and visit localhost:8000, you should see Browserify compile the modules, and emit js and coffee sourcemaps in the browser.

About

A Lineman plugin that configures Browserify for you

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5