# lineman-bower

> A Bower plugin for Lineman

Latest version **0.0.5** (published 2014-08-13) · 0 weekly downloads

## Install

```sh
npm install lineman-bower
pnpm add lineman-bower
yarn add lineman-bower
bun add lineman-bower
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2014-08-13 |
| First published | 2013-12-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 15 |
| Author | Justin Searls |
| Maintainers | searls, jayharris |
| Keywords | lineman, linemanplugin, bower, package |

## Links

- npm: https://www.npmjs.com/package/lineman-bower
- Repository: https://github.com/linemanjs/lineman-bower
- Issues: https://github.com/linemanjs/lineman-bower/issues
- npm.io page: https://npm.io/package/lineman-bower

## Dependencies (3)

- [coffee-script](https://npm.io/package/coffee-script.md) ~1.6.3
- [grunt-bower-task](https://npm.io/package/grunt-bower-task.md) ~0.4.0
- [find-root-package](https://npm.io/package/find-root-package.md) 0.0.1

## Recent versions

- 0.0.5 (latest) — 2014-08-13
- 0.0.4 — 2014-08-03
- 0.0.3 — 2014-01-14
- 0.0.2 — 2014-01-14
- 0.0.1 — 2013-12-06

## README

# lineman-bower

This is a plugin to make it easy to use Bower in conjunction with a
[Lineman](http://linemanjs.com) 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. Feel free to customize this directory to a different location if you like.

```
{
  "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. This can be completed by executing `bower init`
from the command prompt:

```
{
  "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](http://localhost:8000),
you should see Bower install jQuery and have access to the library on the page.

---
_Source: https://npm.io/package/lineman-bower · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
