definitelytyped / grunt-tsd Goto Github PK
View Code? Open in Web Editor NEWGrunt plugin to automate TSD and TypeScript definition related tasks
License: MIT License
Grunt plugin to automate TSD and TypeScript definition related tasks
License: MIT License
This is my grunt config for grunt-tsd:
{
tsd: {
reinstall: {
options: {
command: 'reinstall',
latest: false,
config: 'tsd.json'
}
}
}
}
It always changes my tsd.d.ts, which is really simple:
/// <reference path="tsd/jquery/jquery.d.ts" />
/// <reference path="tsd/winjs/winjs.d.ts" />
It changes it to:
/// <reference path="tsd/tsd/jquery/jquery.d.ts" />
/// <reference path="tsd/tsd/winjs/winjs.d.ts" />
/// <reference path="tsd/jquery/jquery.d.ts" />
/// <reference path="tsd/winjs/winjs.d.ts" />
The first two lines are invalid, they are a incorrect paths.
If I run tsd reinstall
this does not happen.
This is my tsd.json:
{
"version": "v4",
"repo": "borisyankov/DefinitelyTyped",
"ref": "master",
"path": "wwwroot/ts/typings/tsd",
"bundle": "wwwroot/ts/typings/tsd.d.ts",
"installed": {
"winjs/winjs.d.ts": {
"commit": "0d595e843d872c24d8f45dd7df9c15404e6daff4"
},
"jquery/jquery.d.ts": {
"commit": "0d595e843d872c24d8f45dd7df9c15404e6daff4"
}
}
}
tsd-cache folder is created in the same folder as the Gruntfile.js now.
However, I think that use the ~ /.tsd-cache as well as tsd is good. ๐บ
After running grunt-tsd (version 0.2-beta1), all line breaks (\n etc) are removed from tsd.json making it unreadable for humans.
Would it make sense to build-in functionality to grunt-tsd that checks if all specified typings are present in the typings folder, and install them if any are missing?
This seems like a very fundamental use case, then you can put grunt-tsd-verify in the build task and developers never have to think about their typing files or tsd.
please publish new version of grunt-tsd.
we need a #1 ๐
Plugin doesn't create a tsd.d.ts
file in typings
director
Please mark this as a question.
Where can I find the details of config file
config: '../conf/tsd.json'
say, what should I put to get the latest version of jquery ?
I saw a fixture file in the test. https://github.com/DefinitelyTyped/grunt-tsd/blob/master/test/modules/reinstall_latest/fixtures/tsd.json But, what is the commit (grunt-tsd commit?) ? does it needs to be changed manually? any doc , example. Thanks.
Hello,
please add a tag for Version 0.2.0.
there is a bug in tsd 0.6.0.beta.5 which is realy annoying. every time I run the task it will dublicate all entrys in my tsd.d.ts. This bug is fixed in a later version of tsd.
Please release a version of grunt-tsd with a actual version of tsd.
Maybe I miss something and someone can give me a hint how I can get this working with the latest tsd.
best regards KirK
When I try to do "npm install grunt-tsd --save-dev" from behind our corporate firewall, I get the following error because the git URL is git:// instead of https://. I'd be happy to update the package and submit a pull request, but I'm not sure what the proper protocol is :)
npm WARN engine [email protected]: wanted: {"node":">= 0.10.0 < 0.11.0"} (current: {"node":"0.12.0","npm":"2.5.1"})
npm WARN git config --get remote.origin.url
returned wrong result (git://github.com/Bartvds/update-notifier/)
npm ERR! git clone git://github.com/Bartvds/update-notifier/ Cloning into bare repository 'C:\Users\xxxxxxxx\App
Data\Roaming\npm-cache_git-remotes\git-github-com-Bartvds-update-notifier--a420e038'...
npm ERR! git clone git://github.com/Bartvds/update-notifier/ fatal: unable to connect to github.com:
npm ERR! git clone git://github.com/Bartvds/update-notifier/ github.com[0: 192.30.252.130]: errno=No such file o
r directory
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cl
i.js" "install" "grunt-tsd" "--save-dev"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code 128
I'm using bower's script feature to run tsd link
as a post script. It would be nice to do this in grunt-tsd
I managed to install and overwrite every file with tsd-cli without any problem, but after I register a tsd task to project gruntfile and took this error because schema pattern properties does not allow us to inner files as its pattern regex is
"^[\\w\\.-]+\\/[\\w\\.-]+\\.d\\.ts$"
so installing some package (cordova in my situation) which contains some other folders in its (plugins folder in this case) cannot be installed via grunt-tsd
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.