Hacker News new | ask | show | jobs
by williamdclt 2555 days ago
I keep hearing this "a vue component is still as simple as {template: 'hi'}". Genuine question: I've been using Vue for the last couple of months, is anybody actually using this in the real world? Instead of vue-cli apps with single-file components (which is the other argument often seen)?
5 comments

I also am. I love the simplicity of vue api, but I hate vue-cli, webpack(it is good because it's configurable and extensible, but it's overwhelmingly complex, all the output formats are a pain to debug, I have never seen sourcemaps work in chrome developer tools) and single file components.

That led me to create my own architecture to scaffold vue apps, which Evan You seems to hate.

https://github.com/vuejs/vue/issues/8106

In this comment, I showcased some production apps running with this:

https://github.com/vuejs/vue/issues/8106#issuecomment-386064...

https://github.com/vuejs/vue/pull/8807

I have improved this architecture even further in new apps, but I hadn't time yet to update the "vue-generator" boilerplate.

I am. I wrote a bang-simple extensible blogging system several months ago using Vue.

I started very, very simple. I ended up with multi-component files. No vue-cli. Three files. A few hundred lines of code.

Works fine. Never had to touch it again.

Might I ask if you could open source it? I badly need dead simple Real World examples.
Sure. Hell I'll not only open-source it, I'll do a 10-minute video walkthru if I can get some coders to watch and ask questions.
If you upload it to YouTube, I'll watch and probably have a question or two for the comments section :-)
Here you go. Ping me if you need anything.

I came in cold, having not looked at the code in 5 months. I figured that would make for a much more honest walk-through than doing a lot of prep beforehand.

https://www.youtube.com/watch?v=IKFMA8G_dng

Checkout Gridsome too :)
I am on a reasonably sized project (which I didn't start but took over).

It's just an easier better way to enhance existing server rendered pages to include responsive elements without needing all the single page/routing stuff nor dealing with mass of jQuery binds and hand rolled data stores.

And best part is, Vue plays quite nicely with jQuery so can still use existing libraries and elements.

I am using it that way an app I wrote for our company. I do have a custom bundler that will make a minified file for production environment but it just runs the source files through “terser”.
Sometimes all I need is data binding.

And Rivets.js seems to be defunct.