-
-
Notifications
You must be signed in to change notification settings - Fork 255
[Survey] Why you're not using vbuild? #118
Comments
In short: eagerly waiting for 3 things:
While we're using vbuild already for standalone components, we can switch to it only if it handles the above issues stupidly simple, or there is no real benefit of switching to it when we have to configure everything by ourselves afterwards. But don't take this negative, I'm loving vbuild whenever I need to kickstart something fast, really. Please keep up the good work and kudos to you! |
@Anonyfox thanks for the words, so:
|
we started with vue 1.X in our project in mid/late 2016, with the webpack settings of the time, gradually increased the versions of vue/vuex to the most recent ones (2.X) over the last weeks, but no one really wants to tackle the neccessary webpack changes. I started to introduce vbuild for developing standalone components for the main app several weeks ago (where this project seems like it won't receive much updates) and I'm still surprised now that I see this amount of recent activity. Again: Kudos! Basically I would love to throw away all the "old" webpack mess and endless package.json stuff in not-so-recent versions in our main project, and let vbuild handle all the details. SSR is just something we're currently not able to do (because old webpack'n'stuff). We just replaced the deprecated vue-resource with a universal-fetch package, so in theory most stuff might work now for SSR. I really don't care for the absolute latest and greatest bleeding edge versions of everything, but completely hiding all the horrible micro-configuration stuff would help with very notable productivity slow-downs for our small development team. A note on testing: I just saw that there seems to be testing in vbuild at all. Last time I checked the "book"/tutorial there just was a big "TODO". :) Oh and please: do NOT go the route of real server assumptions. compiling a hassle-free server-bundle.js (or maybe something even simpler that I can just require and drop into express.js?) would be golden! Let the gazillion of backend dev's and their tools take care of the rest, there are just too many opinions out there if you want to please backend folks, too! (but this is just my opinion as a full-stack dev) EDIT: |
Great, completely hiding all the horrible micro-configuration stuff is what vbuild is trying to achieve 🤗 |
Published vbuild-karma to make it easier to run unit tests with vbuild |
still have it in some projects but I stopped using it as vue-cli has all the features I need now, it's official and I had less problems during setup or usage. I know that last bit is vague but it's my experience (had around 15 projects with vue. After 4 (I think) I switched to vue-cli)). |
@codeofsumit do you mean the vue-cli webpack template? |
yes. It's enough even for our biggest projects right now. Small example just because it's happening while writing this: |
@codeofsumit can't blame you, there're many breaking changes (as expected, v4 to v6) I'm trying to keep it more stable though, should be been quite better now. |
@sylvainpolletvillard Thanks for the feedback!
vbuild includes vue-loader by default, comparing to using vue-cli's webpack template, your project only needs one dev dependency and fewer configurations.
I thought it was obvious, maybe I should explicitly point this out somewhere.
the website is really for demonstrating for now, do you prefer a website over the readme? For your screenshot:
You can see the JSX compiled result in the live editor: vue-jsx.surge.sh |
So it's time to improve it now :D btw, for the JSX question, that's really related to Vue itself. |
@Anonyfox I just revisited the nuxt.js project, seems you can use it as a middleware to work with any server framework like koa seamlessly. |
@sylvainpolletvillard FYI, in |
@egoist: and there is a nice article about this change : https://medium.com/@nycudr/a-small-change-with-big-consequences-or-why-did-i-start-open-source-d6616acd7df1#.b18arn3xx |
Its not clear in the readme the features which are supported. |
Does vbuild support offline mode like vue-pack? |
@aristidesfl for any webpack project you can use offline-plugin to make it offline-ready, here's an example project I made which uses vbuild and offline-plugin: https://github.com/egoist/codepan And here's the doc about this: https://vbuild.js.org/#/recipes/progressive-web-app You can ignore |
Thanks, I was looking into a template like vuepack, with offline enabled by default, but which uses vbuild. Second question: How does vbuild compare to vue-cli-build. Are you responsible for both? Which one to use? |
@aristidesfl you may get the answers here https://github.com/egoist/vbuild#faq // P.S. one of the reasons that people might use vbuild is they don't need to look for a boilerplate 😂 |
Hm have you thought about merging vbuild into vue-cli build? |
The confusion with |
@egoist - I like this project! I was originally looking to use nuxt.js but I ran into one major issue - their current lack of server less support (which is how I found your project). Before I switched to Vue from React I was following the Next.js project. After I started using these frameworks it is pretty hard to go back to boilerplates. Boilerplates have their purpose and are nice when you are either a) learning or b) doing the same type of project over and over again. The problem is when you start to build production apps you are no longer playing with technology and there are always changes over time making the code hard to maintain. The ability to update vbuild to the latest version with npm and not have to worry about the inner working of webpack while getting the most common features (that everyone uses) is HUGE imo Having said that (as others mentioned) the documentation needs more work. For example when I couldn't find what I needed in the docs I naturally searched the issues list. All the examples for aliasing were using mergeConfig. When I tried this in my code I couldn't understand why it wasn't working? ...until I realized later you deprecated it in v6 duh lol Better documentation helps alleviate much of this kind of wasted effort One thing I would also like to see you explore is to provide the ability for us to update versions of core pieces like vue. I know this was discussed in the next.js project at one point as well (although I am not sure if they solved it). Right now you seem very attentive to this project but over time this may not be the case (the vue-material project for example has PRs piling up for almost 2 months now with only 1 maintainer). If critical core dependencies are released that we need, we are stuck until you update your package ;) Not sure how hard this would be to do but I think that would be a pretty beneficial feature (use at our own risk of course). Just my 2 cents... as I said I am using this to build a prod app currently and it has been really helpful to me! Thanks for your hard work :) |
@abelovic you can install desired vue and vue-template-compiler version in your project |
but I still need to create basic directory structure and files like index.js, right? Is there any template I can use which would generate basic structure for me? With POI as a dev-dependency maybe? thanks |
You don't need to care about build configs means you can start from a And the folder structure doesn't really matter, maybe using something like this (the official Vue webpack template or any type of structure you like |
@dodas here's a simple template, it doesn't do too much tho https://github.com/egoist/template-vue |
I started using poi today. My experience with create-react-app wasn't good and I'm skeptical about build systems since. To date Brunch has been the only build tool I've trusted. So what made me choose poi for my vuejs project? Long time use of Vuepack. I was about to vue init it again and noticed a link on the read me that said vBuild and I ended up using poi. |
@Rayraegah I haven't tried Brunch but it seems like a simplified version of Gulp. So can you share your experience with create-react-app (why it's not good enough for you)? Poi is similar to |
@egoist I couldn't configure my build without ejecting the react-scripts. (this was back in 2016 btw). Example: sometimes, I wanted to set up a babel-plugin-import say for ant-design components or use prettier to format certain files... there was no way to override the build config without ejecting the scripts. |
@Rayraegah Hmm I think we don't have that problem in Poi, since you can even modify webpack config and babel config is fully supported. However we don't support eject 😅 |
Closing this since things have changed a lot in Poi (Previously vbuild). |
If you can't find a proper reason in the poll, please reply in this issue.
Poll: http://qstn.co/q/AP3UZqzO
The text was updated successfully, but these errors were encountered: