bespokejs / bespoke

DIY Presentation Micro-Framework
http://markdalgleish.com/projects/bespoke.js/
MIT License
4.68k stars 443 forks source link

Add "main" key to package.json to make it npm installable #21

Closed andreypopp closed 11 years ago

andreypopp commented 11 years ago

Please also consider releasing it on npm — that way those who use CommonJS bundlers like browserify would be able to use bespoke easily.

markdalgleish commented 11 years ago

The way that Bespoke.js currently works, your code when using browserify would look like this:

require('bespoke');
require('bespoke-bullets');
require('bespoke-hash');

bespoke.horizontal.from('article', {
  bullets: 'li',
  hash: true
});

Doesn't seem very idiomatic, but would this be okay for you?

andreypopp commented 11 years ago

@markdalgleish it is certainly better than nothing!

P.S. thanks for bespoke.js

markdalgleish commented 11 years ago

I've manually pulled in your changes, and published Bespoke.js and all first-party plugins to npm. Let me know if you have any issues :)

markdalgleish commented 11 years ago

Thanks for the pull request!