Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lineman-bower

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lineman-bower

This is a plugin to make it easy to use Bower in conjunction with a [Lineman](http://linemanjs.com) app.

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.9K
decreased by-8.95%
Maintainers
1
Weekly downloads
 
Created
Source

lineman-bower

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

Usage

First, add the plugin to your lineman project:

$ npm install lineman-bower --save-dev

When you install lineman-bower, it should create a default .bowerrc (unless one already exists) with the following vendor directory:

{
  "directory": "/vendor/bower"
}

Third, you'll want to make sure that your bower dependencies don't get checked into git, so add them to your .gitignore:

/vendor/bower

Next, you'll need a bower.json to start pulling down dependencies:

{
  "name": "my-app",
  "version": "0.0.1",
  "dependencies": {
    "jquery": "~1.9.0"
  }
}

Finally, you'll want to make sure that jquery is made available when Lineman concatenates your vendor JavaScript libraries. You can do this by extending the js.vendor configuration in config/files.js like so:

module.exports = require(process.env["LINEMAN_MAIN"]).config.extend("files", {
  js: {
    vendor: [
      "vendor/bower/jquery/jquery.js",
      "vendor/js/**/*.js"  //Note that this glob remains for traditional vendor libs
    ]
  }
});

Now, when you run lineman run and visit localhost:8000, you should see Bower install jQuery and have access to the library on the page.

FAQs

Package last updated on 14 Jan 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc