-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch from bower to npm #63
Comments
Hi @sbussard, Where is bower a dependency? I looked in the main Raneto repository as well as its package.json but don't see Bower listed anywhere. I'm still familiarizing myself with the project so I might have missed it. |
@ryanlelek https://github.com/gilbitron/Raneto/tree/master/public/bower_components. Although I'm not sure if npm can fulfill what bower does. |
Ahhh, thanks for that @vyp. I was looking in the project root for bower_components/ and bower.json. Didn't even occur to me to look in public/. You're right, Bower is pretty critical to this project. @sbussard, Raneto is currently targeting a standalone installation on a subdomain or path URL, where all documentation is stored. Can you share your particular use-case with us so we can help find a solution for you? Regardless, I'll run through the bower_components/ directory and get those modules and versions codified in a bower.json configuration file for documentation and easier upgrades + modifications. |
Yeah normally I think the |
Still spot on @vyp , that's exactly how to do it. @sbussard, Could you and share more about your situation? I'm fine with removing Bower if it makes sense. Unfortunately, most Bower modules are not available on NPM because each targets and caters to a different audience. Open to simplification, but I don't yet see how we can remove Bower easily. |
npm has grown substantially and it has most front end libraries. To use npm for front end packages you'll probably need to use a build system like To avoid having to install gulp globally you would change this line in package.json:
Now I digress. Almost all (if not all) of what Raneto does can be done through a build script to generate a static site, which would be extremely easy to deploy and scale. The advantage of running a node server is that it could be used to author new content. So in a larger scope, I would like to see this project move in that direction — run a server locally (or publicly with authentication) to author content, then build a static site to deploy. |
I created a PR for this #64 |
Thanks for accepting my PR! |
As a developer I would like to remove the bower dependency so there will be fewer moving parts and things will be easier to keep track of.
The text was updated successfully, but these errors were encountered: