thejmazz / jmazz.me

3 stars 2 forks source link

Playing with vue@next, maybe gonna make a Vue alternative to react-static-boilerplate.

Why? For a blog that can be rendered to static HTML (pipe readable stream to file, or into res in express), but also have nice interactive tutorials, and for UI elements as components. React can do this, but is bigger (44kb vs 14) - which is not a huge deal. But Vue is simpler, can choose between templates or render functions for components, there will probably be a JSX template option later too (right now there is already pug (i.e. jade)).

Links

SPA

To run an SPA with Vue:

npm start

Files of relevance:

SSR

To run a streaming server render (with bundled app):

npm run render

Files of relevance:

FAQ

What is src/server/simple?

Uses no webpack bundle, so templates need to be handwritten with hyperscript.