romannurik / SlidesCodeHighlighter

A little web app that helps you copy+paste syntax-highlighted code into slide decks.
https://romannurik.github.io/SlidesCodeHighlighter/
Apache License 2.0
1.06k stars 92 forks source link

Question about usage of 'bower' #8

Closed alexjlockwood closed 7 years ago

alexjlockwood commented 7 years ago

Hey Roman,

I was trying to learn from your web apps again and I was just wondering what is the purpose of using 'bower' in this web app? Couldn't you just add google-code-prettify, ace-builds, and jquery as npm dependencies in package.json and remove bower from the project entirely? Just wondering...

romannurik commented 7 years ago

Yeah bower is deprecated in favor of nom+webpack. For really, really simple projects like this one bower easier to setup IMO and is still better than downloading JS libraries manually.

alexjlockwood commented 7 years ago

What I mean though is couldn't you just add the deps declared in bower.json into package.json and then reference the libraries under node_modules/ instead of bower_components?

alexjlockwood commented 7 years ago

Then you could use npm-check-updates and stuff (not sure if there is something similar for bower as well).

romannurik commented 7 years ago

Yep there's bower update I believe

On Tue, Aug 1, 2017, 5:53 PM Alex Lockwood notifications@github.com wrote:

Then you could use npm-check-updates and stuff (not sure if there is something similar for bower as well).

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/romannurik/SlidesCodeHighlighter/issues/8#issuecomment-319508064, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGHO59e7WTuT9jN_Jo3ozF3NKWn7Et-ks5sT55LgaJpZM4OqVtX .