首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >TSD/DefinitelyTyped安装目录而不是特定文件

TSD/DefinitelyTyped安装目录而不是特定文件
EN

Stack Overflow用户
提问于 2014-08-21 14:43:54
回答 3查看 1.1K关注 0票数 1

我需要在TSD存储库中安装一个完整的目录,而不仅仅是一个目录。

例如,运行tsd install cordova只下载cordova目录中的cordova.d.ts文件。我还需要cordova.d.ts中的are,它位于cordova目录中的plugins目录中。

因此,我需要类似tsd install cordova/*的东西,它可以下载cordova目录中的所有文件/文件夹。

对这怎么可能有什么想法吗?

编辑:

我试图使用-r标志作为文档声明,但这是我得到的:

代码语言:javascript
复制
>> tsd 0.5.7
-> warning path reference not in index: plugins/BatteryStatus.d.ts
-> warning path reference not in index: plugins/Camera.d.ts
-> warning path reference not in index: plugins/Contacts.d.ts
-> warning path reference not in index: plugins/Device.d.ts
-> warning path reference not in index: plugins/DeviceMotion.d.ts
-> warning path reference not in index: plugins/DeviceOrientation.d.ts
-> warning path reference not in index: plugins/Dialogs.d.ts
-> warning path reference not in index: plugins/FileSystem.d.ts
-> warning path reference not in index: plugins/FileTransfer.d.ts
-> warning path reference not in index: plugins/Globalization.d.ts
-> warning path reference not in index: plugins/InAppBrowser.d.ts
-> warning path reference not in index: plugins/Media.d.ts
-> warning path reference not in index: plugins/MediaCapture.d.ts
-> warning path reference not in index: plugins/NetworkInformation.d.ts
-> warning path reference not in index: plugins/Push.d.ts
-> warning path reference not in index: plugins/Splashscreen.d.ts
-> warning path reference not in index: plugins/Vibration.d.ts
-> warning path reference not in index: plugins/WebSQL.d.ts

 - cordova/cordova.d.ts : <head> : 2014-08-21 12:11

>> running install..
    > skipped existing: cordova/cordova.d.ts

>> written zero files

它仍然只安装主cordova/cordova.d.ts文件。

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2014-08-22 19:51:14

我在科多瓦那里遇到过这个问题,我找到的唯一解决办法就是用咕噜声。我通常有一个“咕噜安装”任务来运行tsd、bower等。

您可以使用咕噜壳咕噜-干净来完成这个任务。

这是要旨。您可能需要修改它以满足您的需要,但这是一个开始。这不是最优雅的解决方案,但它比手动安装cordova依赖项要好得多。

票数 2
EN

Stack Overflow用户

发布于 2014-10-26 12:24:58

TSD作者:这是0.5.x上的一个已知问题,但在0.6.0中得到了解决:我将在任何一天向npm发布它,或者看这张关于如何获得预释放:https://github.com/DefinitelyTyped/tsd/issues/100的票证。

然后在0.6中你可以做到:

代码语言:javascript
复制
tsd install cordova/ -rs
票数 4
EN

Stack Overflow用户

发布于 2014-08-21 15:30:47

您需要使用resolve标志,即-r

代码语言:javascript
复制
tsd query cordova -a install -r
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25429327

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档