petermichaux / maria

The MVC framework for JavaScript applications. The real MVC. The Smalltalk MVC. The Gang of Four MVC.
BSD 2-Clause "Simplified" License
764 stars 51 forks source link

bower support #30

Closed petermichaux closed 11 years ago

petermichaux commented 11 years ago

https://github.com/twitter/bower

passy commented 11 years ago

:+1:

sindresorhus commented 11 years ago

:+1:

petermichaux commented 11 years ago

Unfortunately I'm finding the Bower documentation too brief for me. I'm baffled.

The Maria project on GitHub (i.e. this project) contains only source code. There are no built files included in this repository and there won't be any built files in the repository. Where can I put built release version outside of this GitHub repository and then register them with Bower?

If Bower uses GitHub as its repository, how does bower know how to find a certain version of a package if the repository keeps evolving to new version? Does it look through the history of the repository?

sindresorhus commented 11 years ago

For now you need to put the built files in the repo. You can of course create a new repo for just built files and bower.json and tag that.

To register a new package, there must be a valid manifest JSON in the current working directory, your package must be available at a Git endpoint (e.g., GitHub), and it should use semver Git tags.

We're working on a way to be able to publish packages into a hosted solution, much like npm.

petermichaux commented 11 years ago

I've created another repository on GitHub just for bower distribution. I'm trying the following command without success.

~/src/maria-component $ bower register maria git@github.com:petermichaux/maria-component.git
Registering a package will make it visible and installable via the registry.
Proceed (y/n)? y
bower error Incorrect format
passy commented 11 years ago

@petermichaux Try the anonymous git access:

bower register maria git://github.com/petermichaux/maria-component.git

petermichaux commented 11 years ago

Thanks but dammit I screwed up with this command

$ bower register maria git://github.com:petermichaux/maria-component.git

which does not work. That colon should have been a slash.

$ bower install maria
bower cloning git://github.com:petermichaux/maria-component.git
bower caching git://github.com:petermichaux/maria-component.git
bower error status code of git: 128

There were errors, here's a summary of them:
- maria status code of git: 128
fatal: Unable to look up github.com (port petermichaux) (nodename nor servname provided, or not known)

Can someone fix this in the bower registry?

petermichaux commented 11 years ago

https://github.com/twitter/bower/issues/390

petermichaux commented 11 years ago

Currently in Bower purgatory.

https://github.com/twitter/bower/issues/120#issuecomment-16298455

petermichaux commented 11 years ago

renamed the shim repository to

https://github.com/petermichaux/maria-bower

Still waiting for the Bower folks to delete Maria from their registry so I can register it again properly.

petermichaux commented 11 years ago

Marking this as a high priority issue.

petermichaux commented 11 years ago

Bower support is getting more important every day. I'll make this issue blocking for 1.0.0 release.

petermichaux commented 11 years ago

Whoa! 20 days!! Bower sure is clogged up with this issue which is making it virtually useless. Seems like no one is helping maintain their repository and package maintainers cannot do it themselves.

petermichaux commented 11 years ago

I screwed it up again. It has been so long that I forgot what I was doing. I hope this doesn't mean another month. :-S

The command I want to use is

bower register maria git://github.com/petermichaux/maria-bower.git