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"
]
}
};
};
I basically copied the example in the README and
lineman buildfailed:app/js/entrypoint.coffeeconfig/files.js