Comments (3)
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.
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.
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)
- [BUG] 0.2-beta1: Line breaks are removed from tsd.json
- Expose link command (or more commands) HOT 2
- Unable to install from behind firewall HOT 4
- Tag for 0.2.0
- v0.0.2 publish to npm HOT 2
- use the cache in the same folder as the tsd HOT 4
- config file format and doc HOT 2
- Plugin doesn't create a tsd.d.ts file HOT 5
- Additional Properties are Not Allowed HOT 5
- grunt-tsd is updaing bundle file on reinstall HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-tsd.