Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthonyshort/bfc
Make built components usable by browserify
https://github.com/anthonyshort/bfc
Last synced: 24 days ago
JSON representation
Make built components usable by browserify
- Host: GitHub
- URL: https://github.com/anthonyshort/bfc
- Owner: anthonyshort
- Created: 2014-04-17T04:47:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-15T04:44:38.000Z (almost 10 years ago)
- Last Synced: 2024-04-15T03:16:19.877Z (7 months ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bfc
Make standalone component builds requireable by Browserify. Useful mainly for libraries that are built with Component and want to support npm and Browserify.
```
npm install -g bfc
```## Usage
```
bfc < ./build/build-standalone.js > ./dist/output.js
```You can then make `dist/output.js` the `main` field in your package.json and it will require load up just fine.
## This is crappy
Yep. But Browserify parses dependencies for requires and will freak out about not being about to resolve them.
This also means that Browserify builds are requiring the built component rather than the individual components themselves. Generally not too much of a problem if your library is small.