Comments (8)
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.
@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.
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.
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.
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.
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.
I created a PR for this #64
from raneto.
Thanks for accepting my PR!
from raneto.
Related Issues (20)
- Page meta "description" tag is not present
- Bug: Markdown Editor vs Rendered HOT 1
- Bug: Saving Markdown Document HTML-encodes entities
- Strange 'undefined' in "Edit" link HOT 5
- Blockquotes? HOT 3
- Sanitize only potential XSS HTML code, rather than all HTML on submit of edit page HOT 4
- Backticks are replaced with ` in the editor HOT 2
- [feature request] Adding color support? HOT 2
- Netlify Support HOT 1
- [bug] Saving too much text causes 413 error
- 'Add Page' does not add new .md file HOT 3
- How I package it into a format suitable for Github Page HOT 2
- docs or dumb user: Can't successfully make template changes HOT 2
- Sort order for alphabetical page sorting is reversed HOT 1
- Table of contents doesn't generate id for titles
- Expired Certificates on raneto.com HOT 1
- How to use the document I've uploaded HOT 1
- Bug: Editor does not fully scroll on long documents
- VOTE: New Updated Site Designs HOT 2
- How to enable Chinese language support for searching? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raneto.