Вопрос

I am trying to move some code into a bower package, and my code depends on prototypejs. Prototypejs is not in the bower registry (or it wasn't-- actually I just added it incorrectly, so this question is a bit like asking how to avoid spilling milk after it is already running off the table). What is the proper way to go about getting it there?

I thought I could just point the registry to the prototypejs repo on github, but that resulted in a checkout of files which did not include a built prototype.js file, and it seems it can't be built with the latest version of ruby/rake. So, one option would be to create a new github repo with the built version (downloaded from the website) and a bower.json file. Development on prototypejs seems to have stalled (according to github), so it is unlikely the author(s) would be doing that anytime soon.

Это было полезно?

Решение 2

I would create a repo with as you suggested for now, but still try to submit a PR on the upstream repo.

Другие советы

DISCLAIMER

I'm beating my own drum but this should help

My PrototypeJS repo has updates in it as well as can be built using grunt and has the actual finished build files in it. Please take a look and see if it works for you.

https://github.com/jwestbrook/prototype

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top