4 ms·
About web pack and many others: I use Vue with several others dependencies. But 0 package managers. This is mine: cat js/vue.js js/vue-router.js js/vueli
by mamcx 8y ago
About web pack and many others:
I use Vue with several others dependencies. But 0 package managers.
This is mine:
cat js/vue.js js/vue-router.js js/vuelidate.min.js js/validators.min.js
js/vuex.js js/vuex-i18n.umd.js js/translation.js js/vue-moment.js
js/vue-virtual-scroll.js > js/build.js
0 problems. Predictable, not folder with millons of little JS files, etc...
- slezyr 8y agoWhat about Babel, JSX? I'm a C++ dev that's trying to learn JS. As I know if you want to use modern JS you have to compile it with babel to "portable" JS with Babel. And it was really painful to create DOM elements with createElement and small wrappers around them, so JSX should help here. Or you can just skip those?
- rolleiflex 8y agoListen to the pain. You can skip JSX and Babel. As I’ve mentioned before, Vue obviates the need for both.
- coldtea 8y agoLibs are all ready to use, you don't need to compile them with babel. And for stuff you write yourself, they'll only need babel if you (a) want to support some ancient browsers (e.g. IE7), or (b) you want to use fancy new JS features. If you're OK to target 90% of the people with actual browsers from 3-4 years ago, then you don't need Babel at all (at least not for that).
- colecut 8y agoAre you able to use vue components? I would love to see how you manage your app js code with this approach.
- mamcx 8y agoI have a single JS file, not vue components. Is still possible, but then my DIY build.sh need to be more complex. Still, the main point is that you can bring as much extra machinery as needed, instead of bring all then only use a fraction.