Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.