Code Monkey home page Code Monkey logo

Comments (9)

sodatea avatar sodatea commented on May 3, 2024 7

For example, if you created your project two weeks ago, answered yes to "Add TypeScript", "Add JSX Support", and "Add Vitest for Unit Testing", you can run the following commands to see the diffs between the templates generated then and now:

git clone https://github.com/vuejs/create-vue-templates.git
cd create-vue-templates
git log --since="2 weeks ago" -p typescript-jsx-vitest
# or
# git log --since="2022.02.10" -p typescript-jsx-vitest

The https://github.com/vuejs/create-vue-templates repository stores snapshots of the generated templates after each release of create-vue.

from create-vue.

mjwfilippo avatar mjwfilippo commented on May 3, 2024 1

Another interesting question would be how to add features to an existing project that you chose not to add them in the first place.

has there been an answer to this yet? I cannot seem to find anything, and the course i am taking doesn't help. I am currently not able to continue and don't know what to do

from create-vue.

cexbrayat avatar cexbrayat commented on May 3, 2024 1

@bmulholland That could be a good idea. Feel free to open a PR and we'll gladly review and merge it πŸ‘

from create-vue.

segevfiner avatar segevfiner commented on May 3, 2024

Another interesting question would be how to add features to an existing project that you chose not to add them in the first place.

from create-vue.

messenjer avatar messenjer commented on May 3, 2024

You can try to use diff -r

git clone https://github.com/vuejs/create-vue-templates.git
cd create-vue-templates
diff -r typescript-pinia-vitest typescript-pinia-vitest-cypress

from create-vue.

bmulholland avatar bmulholland commented on May 3, 2024

What about a mode that does a soft run of create-vue on an existing app, and then shows the diffs for each file? I think that would be easy to build, trivial to maintain, and go a long way to helping people stay up to date.

from create-vue.

bmulholland avatar bmulholland commented on May 3, 2024

Yep, cool. My strategy for such things is I invest time in them roughly in line with the inconvenience they cause me, when they cause me that pain. That means I'll watch this project for releases and put work into such a feature as I need to do manual work to stay up to date.

from create-vue.

cexbrayat avatar cexbrayat commented on May 3, 2024

πŸ‘

My strategy to be up to date is to do something similar to #70 (comment)

from create-vue.

bmulholland avatar bmulholland commented on May 3, 2024

Oh yeah that's almost exactly what I had in mind. Nice! Can't believe I missed it :)

I'll probably start with that. One easy approach for the feature I suggested is to basically wrap your solution in the TUI, to auto-fill the dir in the templates repo.

from create-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.