4 ms·
Not needing to compile Vue.js is what got me started with it. Looking forward to pure ES6 module version of Vue.js as a standard build for download from vuejs.
by RobertRoberts 8y ago
Not needing to compile Vue.js is what got me started with it.
Looking forward to pure ES6 module version of Vue.js as a standard build for download from vuejs.org/npm. There's a test build (or something) from Nov. 2017, but it's not advertised, and it's an older version.
But it would mean no CLI/build/config needed at all to implement Vue in more modern environments.
But any improvements in the ecosystem is better for everyone.
- spankalee 8y agoYou should check out lit-html+LitElement. It's standards Web Components from the get-go - you don't write to a non-standard API and then compile it out like with Vue, you just use the standard connectedCallback(), disconnectedCallback(), etc lit-html is standard JS, with all the flexibility of a non-standard syntax extension like JSX, but without a compiler. Templates are expressions, can be passed to higher-order functions, and use JavaScript for control-flow. It's all ES modules, published to npm as ES modules, and loadable directly from CDNs like unpkg.com into all modern browsers. No CLI or custom tools needed, but also works with all the tools our there. Edit, link: https://github.com/Polymer/lit-element https://github.com/Polymer/lit-element
- deleted 8y ago[deleted]
- RobertRoberts 8y agoI don't trust anything Google builds anymore, they've thrown so many projects under the bus that I'm not willing to invest in anything they build. Unless I am really misunderstanding the connection of Polymer and lit-html... But also JSX gives me an icky feeling, I'd rather use standards compliant code everywhere. (while I contradict this statement with my v-bind: stuff everywhere, lol) Plus, I got up and running with Vue.js on a major project in a day, and had reproduced a major jquery/ssr app in a week. I don't have much motivation to change at this point. Unless Vue.js esm build never materializes, but that is a ways off to be concerned about now. Thanks for the suggestions, I will take a look at lit-html again when I get a break.
- spankalee 8y ago| I don't trust anything Google builds anymore, they've thrown so many projects under the bus that I'm not willing to invest in anything they build. Google's a huge company that makes a huge number of things. Of course you're going to hear about canceled projects, but there are far more that aren't canceled. But trust what you will, I can't really argue for or against that. | But also JSX gives me an icky feeling, I'd rather use standards compliant code everywhere lit-html is standard JavaScript. It uses tagged template literals for markup rather than non-standard syntax. But because template are expressions, they're structurally very similar to JSX expressions, and there's basically a 1-1 relationship between JSX forms and lit-html. So if you like the power and flexibility of JSX, but not the non-standard syntax. I only suggested LitElement because of your desire for something like Vue but in pure ES6 modules and without a compiler. Since Vue is heavily inspired by Web Components, and LitElement meets your other requirements, I thought you might find it interesting.
- RobertRoberts 8y ago>I only suggested LitElement because of your desire for something like Vue but in pure ES6 modules and without a compiler. Which I appreciate, thanks. I have looked into it, but it was so long ago I had forgotten about it. And to be frank, it hasn't gotten a lot of attention online. That being said, I will wait a while to see if Vue.js comes around with an ESM build (I guess I could make one myself, but that seems to brittle). And if not, then I will have motivation to look into another library/framework.
- sjellis 8y ago> I don't trust anything Google builds anymore, they've thrown so many projects under the bus that I'm not willing to invest in anything they build. Google will terminate free consumer products that don't work out, but my experience is that they will provide multi-year deprecation periods on things that developers or businesses rely on. For example, Angular 1 only went into maintenance mode last month, and will be supported until 2021.
- k__ 8y agoStrange thing is, this also works with React. https://github.com/kay-is/react-from-zero https://github.com/kay-is/react-from-zero
- RobertRoberts 8y agoReact (to me) has the same problem Angular has, a nasty stench of a corporate overlord that will throw everyone under the bus for it's own benefit. I know it's "opensource", but many opensource projects are messed up/abandoned by big corps for the latest and greatest ideas that suit them better. I know that Vue.js could be abandoned too, but for some reason I am not as concerned about it. (personal foible I suppose)
- k__ 8y agoYes, I understand this. It's a curse and a blessing.
- nkg 8y agoYup, that's how they got me hooked. After I was in, I understood the advantages of making bundles.