Git Product home page Git Product logo

Comments (8)

ryanlelek avatar ryanlelek commented on August 21, 2024

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.

from raneto.

vyp avatar vyp commented on August 21, 2024

@ryanlelek https://github.com/gilbitron/Raneto/tree/master/public/bower_components. Although I'm not sure if npm can fulfill what bower does.

from raneto.

ryanlelek avatar ryanlelek commented on August 21, 2024

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.

from raneto.

vyp avatar vyp commented on August 21, 2024

Yeah normally I think the bower_components is under the root directory. But if not, I think there's usually a .bowerrc in the root directory specifying where the bower_components is. But it's been a while since I've used bower, so my knowledge may be rusty or not up to date.

from raneto.

ryanlelek avatar ryanlelek commented on August 21, 2024

Still spot on @vyp , that's exactly how to do it.
Bower configuration bower.json has been added in v0.7.1 in addition to having all module dependencies upgraded to the latest version.

@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.

from raneto.

sbussard avatar sbussard commented on August 21, 2024

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 grunt, gulp or webpack (my favorite). The simplest approach would probably be to use gulp and just have it copy specific files from node_modules to public.

To avoid having to install gulp globally you would change this line in package.json:

"postinstall": "npm update && ./node_modules/.bin/bower install"
to
"postinstall": "npm update && node_modules/gulp/bin/gulp.js"

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.

from raneto.

sbussard avatar sbussard commented on August 21, 2024

I created a PR for this #64

from raneto.

sbussard avatar sbussard commented on August 21, 2024

Thanks for accepting my PR!

from raneto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.