Giter VIP home page Giter VIP logo

grunt-tsd's Issues

Tag for 0.2.0

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

Additional Properties are Not Allowed

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

Task to verify if necessary typings are installed, and update if not?

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.

Unable to install from behind firewall

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

grunt-tsd is updaing bundle file on reinstall

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"
    }
  }
}

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.