Hi, I was going through the ticket <https://trac.macports.org/ticket/55978> and implemented a really basic (and incomplete) version of View nr. 1: https://rajdeepbharati.github.io/macports-views/ as a standalone Vue app. This is currently fetching 10 latest commits using the GitHub API (You can see the code here <https://github.com/rajdeepbharati/macports-views>). I wonder if this is the correct way of doing this? Also, how can I check the success/failure status of the commit? Note that this hasn't been connected to buildbot.
Thank you. Rajdeep On Fri, Mar 22, 2019 at 4:57 PM Rajdeep Bharati <rajdeepbharat...@gmail.com> wrote: > I set up the project according to your PR and it's working fine using > React. For setting it up with Vue, do I need to write the components in > typescript? Also, I had a doubt: after making changes to the code and > testing, do I need to run `pip install -e .` again and again? The webpack > or gulp dev server isn't working for me. > > Rajdeep > > On Fri, Mar 22, 2019 at 3:38 PM Rajdeep Bharati < > rajdeepbharat...@gmail.com> wrote: > >> Thanks, I'll check it out. >> >> On Fri, Mar 22, 2019 at 3:12 PM Pierre Tardy <tar...@gmail.com> wrote: >> >>> Hi Rajdeep, >>> >>> I created a pull request against the react boilerplate to cleanup the >>> angular.js integration: >>> https://github.com/uglycoyote/buildbot-react-plugin-boilerplate/pull/1 >>> >>> I guess using this method should work better for you for vue.js as well. >>> >>> Pierre >>> >>> On Fri, Mar 22, 2019 at 9:10 AM Rajdeep Bharati < >>> rajdeepbharat...@gmail.com> wrote: >>> >>>> Yes, I can see it. >>>> >>>> On Fri, Mar 22, 2019 at 1:16 PM Pierre Tardy <tar...@gmail.com> wrote: >>>> >>>>> Hi Rajdeep. >>>>> I commented in the code. Do you see the comments? >>>>> >>>>> https://github.com/rajdeepbharati/buildbot-vue-plugin-boilerplate/commit/a1ff8178a327b52757d63e907036b6586a9cf5cc >>>>> >>>>> Pierre >>>>> >>>>> On Fri, Mar 22, 2019 at 8:35 AM Pierre Tardy <tar...@gmail.com> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> Vue and React are the two major JS frameworks in 2018/2019. React is >>>>>> still the major one, probably thanks to the fact that react-native is >>>>>> very >>>>>> useful for mobile. So learning react allows you to make both webapps and >>>>>> mobile apps (even if you cannot really share UI code between the two >>>>>> frameworks) >>>>>> >>>>>> For the web, I like Vue better, recommend it and use it for all my >>>>>> new web projects, because I think it is easier to use, and produce less >>>>>> complex code for simple projects. >>>>>> I think react best practices are oriented more toward very large web >>>>>> apps, and using them for smaller apps is for me a waste of ressource. >>>>>> React indeed only support one way binding, and forces people to use >>>>>> state store like redux, which is for me very hard to use right, and >>>>>> requires lots of boilerplate code. >>>>>> >>>>>> On the contrary, vue.js scales better and allows you to write clean >>>>>> and readable code for small components, thanks to its support for two way >>>>>> binding. >>>>>> It is in my opinon easier for the beginner as its basic concepts are >>>>>> simple to comprehend, and harder to make it wrong. >>>>>> Vue still supports state store with vuex, which you can use when your >>>>>> app is large enough to require it. >>>>>> >>>>>> So I think vue is the best compromise between ideas from angular and >>>>>> ideas from react. >>>>>> >>>>>> This is good for a novice web developer to have experience in both, >>>>>> hence I asked Rajdeep to also consider vue. >>>>>> I challenged him to adapt the boilerplate to vue, because I was >>>>>> impressed he was able to set up so quickly. >>>>>> So I suggested a bit harder challenge to test how far we can go in >>>>>> the expectations. This is fine to struggle on a challenge, or else it is >>>>>> not a challenge :) >>>>>> >>>>>> Finally, challenge aside, you may decide which framework you want to >>>>>> use in your project I don't want to force you :) >>>>>> >>>>>> >>>>>> Pierre >>>>>> >>>>>> >>>>>> On Fri, Mar 22, 2019 at 5:13 AM Mojca Miklavec <mo...@macports.org> >>>>>> wrote: >>>>>> >>>>>>> Dear Pierre, >>>>>>> >>>>>>> Out of curiosity: what is the difference between the two frameworks? >>>>>>> I mean, not technical difference, but I assume that the solution would >>>>>>> only >>>>>>> be provided / written in one of the frameworks? Is Vue.js your internal >>>>>>> preference or newer trend over React.js? (I have some experience with >>>>>>> React, none with Vue.) >>>>>>> >>>>>>> Mojca >>>>>>> >>>>>> -- >>>>>> >>>>>> >>>>>> -- >>>>> >>>>> >>>>> -- >>> >>> >>>