Giter VIP home page Giter VIP logo

Comments (3)

Bartvds avatar Bartvds commented on June 9, 2024

I'm not quite clear on what your use case is:

Could be this is covered in TSD itself but not fully exposed in grunt-tsd (yet)?

If you've saved to tsd.json and want to reinstall missing files but not overwrite existing you can update without using --overwrite flag.

from grunt-tsd.

decentralion avatar decentralion commented on June 9, 2024

So, the use case is I setup a project and don't check the typing files into git, and then when someone downloads the library and runs grunt, it will detect that the typing files are missing and install them automagically.

This could be solved by just checking the definitions into git which probably makes more sense. I don't like to do that because it messes up Github's language statistics and lines-of-code counter.

from grunt-tsd.

Bartvds avatar Bartvds commented on June 9, 2024

If you use TSD and install your definitions using --save, and check-in your tsd.json you can do this already (unless I miss-read your case).

When somebody downloads your project they can run TSD (either from cli or from grunt-tsd) and use reinstall (or update) and it will read the tsd.json and get those files.

Reinstall is safest as it is pinned to a commit-sha1 on DefinitelyTyped: sometimes definitions have breaking changes so a 'blind' update is risky.

If you want this automated you could look into npm scripts (post-install) and run grunt-tsd from there.

from grunt-tsd.

Related Issues (11)

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.