brick icon indicating copy to clipboard operation
brick copied to clipboard

Create and register bower packages

Open sgtpep opened this issue 11 years ago • 5 comments

It could be great to be able to run something like bower install brick-open-sans and almost instantly be ready to use it.

But it may require to create separate git repository for each font, because it has no sense to register package with all of brick fonts.

sgtpep avatar Apr 05 '14 11:04 sgtpep

I'm not too familiar with Bower, but from what I know, I don't think Brick is suitable for it. Firstly, there's the multiple repository issue; then there's the issue that Brick is used by adding a <link> tag to your HTML pages (I'm not sure Bower can do this), and not a file resource like jQuery.

alfredxing avatar Apr 05 '14 15:04 alfredxing

A lot of binary resources already distributed with bower, including custom fonts. Example: http://bower.io/search/?q=open-sans. The only things that package should contain are: .woff file(s), and .css file with @font-face declaration. Optionally, it can contain .less/.scss file, besides .css, which allow you to redefine path to font files with some variable. Example: https://github.com/FontFaceKit/open-sans.

The inclusion of resources from bower packages is manual by adding needed /

sgtpep avatar Apr 05 '14 15:04 sgtpep

Bower is everywhere in frontend now. It's useful not just for speed libraries/resources retrieval, it's for separtion of concerns. So I'd like to use brick fonts in project. I should manually download them and add binary files to repositories of each project, where I want to use them. And update them manually later. The common pattern nowadays it to enlist all required bower components in bower.json and just run bower install from project dir.

sgtpep avatar Apr 05 '14 15:04 sgtpep

@sgtpep I think you're misunderstanding how to use Brick. You don't have to download anything; like Google Fonts, everything is hosted. You just need to reference it.

See the usage page for more details. If you have any questions about this, feel free to ask!

alfredxing avatar Apr 05 '14 20:04 alfredxing

Adding Brick to Bower would be very nice. Some of us would rather not (or are not allowed to) depend on (m)any external hosting solutions. Adding it to bower would be nice, but in the meantime I'm loading the repo via bower by referencing the git repo directly.

connor4312 avatar Jan 26 '15 03:01 connor4312