mozbrick / brick

UI Web Components for Modern Web Apps
http://mozbrick.github.io/
Other
2.97k stars 206 forks source link

Can I use brick without bower? #248

Open groovecoder opened 10 years ago

groovecoder commented 10 years ago

I've never used bower, and I want to use a brick component (brick-calendar) on an existing project. Can I use it without adding bower to my project?

lmorchard commented 10 years ago

Sure, but you'd just be chasing down the dependencies manually instead. Bower's a package manager like pip or npm, doesn't do anything at run time for an app on the client side.

potch commented 10 years ago

Technically, you can! We don't distribute platform.js, but if you were to grab everything out of the dist directory, all the dependencies you need to run brick (aside from platform) are there. We're working on a 'minified' version of brick, which will be 2 files (html and css), and then a version that is just JS and CSS for environments where HTML Imports is a Bad Thing.

groovecoder commented 10 years ago

Hmm ... then this is a feedback thread. I wanted/tried to use brick-calendar on @wfwalker's thecount project. But I got to the bower_components part of brick-calendar Usage and I got scared off.

I went with bootstrap-datepicker because I understood how to add it - i.e., just add the css and js resources to the page.

I would love to be able to add something like:

<script src="//cdn.jsdelivr.net/brick/1.0.0/platform.js">
<link rel="import" href="//cdn.jsdelivr.net/brick/1.0.0/calendar.html">
fwenzel commented 10 years ago

That's similar to #193, I think, though not quite the same.