Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sergeylukin/docpad-plugin-bowerrequirejs
Automagically wire-up bower components with Requirejs
https://github.com/sergeylukin/docpad-plugin-bowerrequirejs
Last synced: 27 days ago
JSON representation
Automagically wire-up bower components with Requirejs
- Host: GitHub
- URL: https://github.com/sergeylukin/docpad-plugin-bowerrequirejs
- Owner: sergeylukin
- Created: 2013-07-07T02:14:13.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-09T14:26:45.000Z (over 11 years ago)
- Last Synced: 2024-12-04T13:04:20.845Z (about 1 month ago)
- Language: CoffeeScript
- Size: 145 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
Awesome Lists containing this project
README
# bower-requirejs Plugin for [DocPad](http://docpad.org)
DocPad plugin that wires-up installed Bower components into RequireJS configUseful for statically generated assets
## Why?
Assuming you've installed `jquery` via `bower`, like so:
```
bower install jquery
```and set it as a dependency in one of your AMD modules:
```
define(['jquery'], function($) {
console.log('hooray I have jquery available: ' + $);
});
```If you're using `r.js` optimizer to bundle your JS files and you want `jquery`
to be part of a bundle, you'd have to provide it's `path` in rjsConfig file.This plugin does that automagically
## Install
```
npm install docpad-plugin-bowerrequirejs --save-dev
```## History
You can discover the history inside the `History.md` file## License
MIT: [sergey.mit-license.org](http://sergey.mit-license.org)