Skip to content

Using require() statements which refer to vendor/bower/ don't work. Possibly incompatibility with lineman-browserify? #6

@erichiggins

Description

@erichiggins

I basically copied the example in the README and lineman build failed:

Running "browserify:common" (browserify) task
Verifying property browserify.common exists in config...OK
Files: app/js/entrypoint.coffee -> generated/js/browserify.js
>> Error: module "jquery" not found from "my_lineman_app/app/js/entrypoint.coffee"
Warning: Error running grunt-browserify. Use --force to continue.

app/js/entrypoint.coffee

window.$ = require('jquery')(window);
require("./hello")

config/files.js

module.exports = function(lineman) {
  return {
    //Override file patterns here
    js: {
      vendor: [
        "vendor/bower/jquery/dist/jquery.js",
        "vendor/js/**/*.js"
      ]
    }
  };
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions