Comparing version 0.2.2 to 0.3.0
[ | ||
{ "name": "angular", "description": "Google - Angular.Js", "versions": [ { "key": "C7349CEE-CFBF-4139-AA3D-D6054FB3E8E1", "dependencies": [], "version": "1.0", "author": "Diego Vilar", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/angular-1.0.d.ts"}]}, | ||
{ "name": "angular-cookies", "description": "Google - Angular.Js", "versions": [ { "key": "FC94247C-E148-4677-9110-C7CCF8754FBD", "dependencies": [], "version": "1.0", "author": "Diego Vilar", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/angular-cookies-1.0.d.ts"}]}, | ||
{ "name": "angular-mocks", "description": "Google - Angular.Js", "versions": [ { "key": "4656A224-8C17-442A-8E65-FCA6C3C74788", "dependencies": [], "version": "1.0", "author": "Diego Vilar", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/angular-mocks-1.0.d.ts"}]}, | ||
{ "name": "angular-resource", "description": "Google - Angular.Js", "versions": [ { "key": "8918D3CF-AAF2-4572-B3D2-509716336A99", "dependencies": [], "version": "1.0", "author": "Diego Vilar", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/angular-resource-1.0.d.ts"}]}, | ||
{ "name": "angular-sanitize", "description": "Google - Angular.Js", "versions": [ { "key": "88CAE139-240F-4F8B-BED5-3595EF87EEDD", "dependencies": [], "version": "1.0", "author": "Diego Vilar", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/angular-sanitize-1.0.d.ts"}]}, | ||
{ "name": "async", "description": "Async utilities for node and the browser", "versions": [ { "key": "C9E5903D-85FB-4127-A487-0F8479942F42", "dependencies": [], "version": "0.1", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/async-0.1.d.ts"}]}, | ||
{ "name": "backbone", "description": "Javascript MV* framework", "versions": [ { "key": "37387AAB-922D-460C-82C8-C00DB2920791", "dependencies": [], "version": "0.9", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/backbone-0.9.d.ts"}]}, | ||
{ "name": "Bootstrap", "description": "Twitter Bootstrap javascript code.", "versions": [ { "key": "D02BBE29-B1F2-4E9A-AD69-B1BF3D9BFDDD", "dependencies": [], "version": "2.1", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/bootstrap-2.1.d.ts"}]}, | ||
{ "name": "choosen", "description": "Chosen is a JavaScript plugin that makes long, unwieldy select boxes much more user-friendly.", "versions": [ { "key": "AA07EAB9-73B4-43A4-B07C-26A899045D72", "dependencies": [], "version": "0.9", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/chosen-0.9.d.ts"}]}, | ||
{ "name": "codemirror", "description": "In-browser code editing", "versions": [ { "key": "4EF706B3-CADB-4F59-9238-15760D3A999E", "dependencies": [], "version": "3.0", "author": "Fran�ois de Campredon", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/codemirror-3.0.d.ts"}]}, | ||
{ "name": "easeljs", "description": "A Javascript library that makes working with the HTML5 Canvas element easy.", "versions": [ { "key": "A0111221-6227-447D-B0C8-BAAAA0E59D69", "dependencies": [], "version": "0.5", "author": "Pedro Ferreira", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/easeljs-0.5.d.ts"}]}, | ||
{ "name": "angular", "description": "Google - Angular.Js", "versions": [ { "key": "C7349CEE-CFBF-4139-AA3D-D6054FB3E8E1", "dependencies": [{"name": "jquery", "version":""}], "version": "1.0", "author": "Diego Vilar", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/angularjs/angular.d.ts"}]}, | ||
{ "name": "angular-cookies", "description": "Google - Angular.Js", "versions": [ { "key": "FC94247C-E148-4677-9110-C7CCF8754FBD", "dependencies": [{"name": "angular", "version":""}], "version": "1.0", "author": "Diego Vilar", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/angularjs/angular-cookies.d.ts"}]}, | ||
{ "name": "angular-mocks", "description": "Google - Angular.Js", "versions": [ { "key": "4656A224-8C17-442A-8E65-FCA6C3C74788", "dependencies": [{"name": "angular", "version":""}], "version": "1.0", "author": "Diego Vilar", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/angularjs/angular-mocks.d.ts"}]}, | ||
{ "name": "angular-resource", "description": "Google - Angular.Js", "versions": [ { "key": "8918D3CF-AAF2-4572-B3D2-509716336A99", "dependencies": [{"name": "angular", "version":""}], "version": "1.0", "author": "Diego Vilar", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/angularjs/angular-resource.d.ts"}]}, | ||
{ "name": "angular-sanitize", "description": "Google - Angular.Js", "versions": [ { "key": "88CAE139-240F-4F8B-BED5-3595EF87EEDD", "dependencies": [{"name": "angular", "version":""}], "version": "1.0", "author": "Diego Vilar", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/angularjs/angular-sanitize.d.ts"}]}, | ||
{ "name": "async", "description": "Async utilities for node and the browser", "versions": [ { "key": "C9E5903D-85FB-4127-A487-0F8479942F42", "dependencies": [], "version": "0.1", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/async/async.d.ts"}]}, | ||
{ "name": "backbone", "description": "Javascript MV* framework", "versions": [ { "key": "94727903-4C29-46C7-9A0C-943BE6A3B22C", "dependencies": [{"name": "jquery", "version":""}], "version": "0.9", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/backbone/backbone.d.ts"}]}, | ||
{ "name": "bootstrap.datepicker", "description": "A datepicker for @twitter bootstrap", "versions": [ { "key": "BF35ABC1-0C08-421C-8296-72589C74FF9C", "dependencies": [{"name": "jquery", "version":""}], "version": "", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/bootstrap.datepicker/bootstrap.datepicker.d.ts"}]}, | ||
{ "name": "Bootstrap", "description": "Twitter Bootstrap javascript code.", "versions": [ { "key": "D02BBE29-B1F2-4E9A-AD69-B1BF3D9BFDDD", "dependencies": [{"name": "jquery", "version":""}], "version": "2.1", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/bootstrap/bootstrap.d.ts"}]}, | ||
{ "name": "breeze", "description": "Build rich web apps in JavaScript with techniques you know.", "versions": [ { "key": "62E7AD1D-D4E7-4210-9CD9-7D5AA3542445", "dependencies": [], "version": "1.0", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/breeze/breeze.d.ts"}]}, | ||
{ "name": "bootbox", "description": "Twitter Bootstrap powered alert, confirm and flexible dialog boxes", "versions": [ { "key": "15476ea2-feb6-49f6-ffdd-aa63f5b7f1a2", "dependencies": [], "version": "3.0", "author": "Vincent Bortone", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/bootbox/bootbox.d.ts"}]}, | ||
{ "name": "box2d", "description": "This is a port of Box2DFlash 2.1a to JavaScript", "versions": [ { "key": "a83479d2-912f-d2b-12c5-e70237506be5", "dependencies": [], "version": "2.1", "author": "Josh Baldwin", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/box2d/box2dweb.d.ts"}]}, | ||
{ "name": "choosen", "description": "Chosen is a JavaScript plugin that makes long, unwieldy select boxes much more user-friendly.", "versions": [ { "key": "AA07EAB9-73B4-43A4-B07C-26A899045D72", "dependencies": [{"name": "jquery", "version":""}], "version": "0.9", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/chosen/chosen.d.ts"}]}, | ||
{ "name": "chrome", "description": "Type definitions for Chrome extension development.", "versions": [ { "key": "FE1EDD4D-CDC1-4B6D-ADE9-D5E43BA72F81", "dependencies": [], "version": "", "author": "Matthew Kimber", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/chrome/chrome.ts"}]}, | ||
{ "name": "codemirror", "description": "In-browser code editing", "versions": [ { "key": "4EF706B3-CADB-4F59-9238-15760D3A999E", "dependencies": [], "version": "3.0", "author": "François de Campredon", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/codemirror/codemirror.d.ts"}]}, | ||
{ "name": "cheerio", "description": "Fast, flexible, and lean implementation of core jQuery designed specifically for the server", "versions": [ { "key": "ba4324b2-eaa0-25cc-2de6-7467b48a8a74", "dependencies": [], "version": "", "author": "Bret Little", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/cheerio/cheerio.d.ts"}]}, | ||
{ "name": "d3", "description": "Data-Driven Documents", "versions": [ { "key": "2EE264FF-D8B9-49CD-8AD4-781A1111876B", "dependencies": [], "version": "", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/d3/d3.d.ts"}]}, | ||
{ "name": "domo", "description": "Markup, style, and code in one language", "versions": [ { "key": "f5828915-4107-6908-a0a1-fd9ce0ec6fd8", "dependencies": [], "version": "0.5", "author": "Steve Fenton", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/domo/domo.d.ts"}]}, | ||
{ "name": "easeljs", "description": "A Javascript library that makes working with the HTML5 Canvas element easy.", "versions": [ { "key": "A0111221-6227-447D-B0C8-BAAAA0E59D69", "dependencies": [{"name": "tweenjs", "version": ""}], "version": "0.5", "author": "Pedro Ferreira", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/easeljs/easeljs.d.ts"}]}, | ||
{ "name": "colors", "description": "Get colors in your node.js console like what", "versions": [ { "key": "5FCAB0EB-0E61-42FF-8DCD-4C3521E48383", "dependencies": [], "version": "0.6", "author": "Carlos Ballesteros Velasco", "url": "https://github.com/soywiz/typescript-node-definitions/raw/master/colors.d.ts"}]}, | ||
{ "name": "ember", "description": "A Framework for creating ambitious web application.", "versions": [ { "key": "BADFDF09-0F77-4B90-B1D8-A1BA0E2A6BFD", "dependencies": [], "version": "1.0", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/ember-1.0.d.ts"}]}, | ||
{ "name": "express", "description": "Node.js web application framework", "versions": [ { "key": "9167385F-C4E4-4634-AF92-0FC7795C3393", "dependencies": [], "version": "3.0", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/express-3.0.d.ts"}]}, | ||
{ "name": "fancybox", "description": "FancyBox is a tool for displaying images, html content and multi-media", "versions": [ { "key": "EDE384C1-57A8-4F1C-A8A8-A3BAC91C2EAF", "dependencies": [], "version": "2.1", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/fancybox-2.1.d.ts"}]}, | ||
{ "name": "globalize", "description": "New age globalization and localization.", "versions": [ { "key": "6CDD21FE-F783-46B4-AE55-80C93FF87D5C", "dependencies": [], "version": "0.1", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/globalize.d.ts"}]}, | ||
{ "name": "google.maps", "description": "Google Maps API", "versions": [ { "key": "2AE44DF7-BEE5-4354-B68E-62A6067694FD", "dependencies": [], "version": "3.0", "author": "Esben Nepper", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/google.maps.d.ts"}]}, | ||
{ "name": "handlebars", "description": "Handlebars provides the power necessary to let you build semantic templates effectively with no frustration.", "versions": [ { "key": "BE9045CC-7333-471D-A441-2817D7410F06", "dependencies": [], "version": "1.0", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/handlebars-1.0.d.ts"}]}, | ||
{ "name": "history", "description": "Gracefully supports the HTML5 History/State APIs", "versions": [ { "key": "4EFBB523-7D05-440E-ACB1-3E3191A5E466", "dependencies": [], "version": "1.7", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/history-1.7.d.ts"}]}, | ||
{ "name": "humane", "description": "A simple, modern, framework-independent, well-tested, unobtrusive, notification system.", "versions": [ { "key": "84602CB7-E9F4-40AD-BB48-B17B2A819402", "dependencies": [], "version": "3.0", "author": "John Vrbanac", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/humane-3.0.d.ts"}]}, | ||
{ "name": "impress", "description": "A presentation framework based on the power of CSS3.", "versions": [ { "key": "2B8E0B68-91AE-4BB4-8999-D8B7D0778A83", "dependencies": [], "version": "0.5", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/impress-0.5.d.ts"}]}, | ||
{ "name": "jasmine", "description": "A behavior-driven development framework.", "versions": [ { "key": "C86218A4-95A3-498D-8232-41270FBCC0CD", "dependencies": [], "version": "1.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/jasmine-1.2.d.ts"}]}, | ||
{ "name": "jquery", "description": "JavaScript library to handle HTML elements.", "versions": [ { "key": "6536E49D-F9FC-4211-B8ED-4EBCC8464887", "dependencies": [], "version": "1.8", "author": "TypeScript samples", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/jquery-1.8.d.ts"}]}, | ||
{ "name": "jquery.dynatree", "description": "Dynatree is a jQuery plugin that allows to dynamically create html tree view controls using JavaScript.", "versions": [ { "key": "8CA66E9A-F574-40F3-9DDF-44A20F570831", "dependencies": [], "version": "1.2", "author": "Fran�ois de Campredon", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/jquery.dynatree-1.2.d.ts"}]}, | ||
{ "name": "jquerymobile", "description": "Touch-Optimized Web Framework for Smartphones & Tablets", "versions": [ { "key": "D7E641C0-8E41-428E-AFF1-8D7993E054A1", "dependencies": [], "version": "1.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/jquerymobile-1.2.d.ts"}]}, | ||
{ "name": "jqueryui", "description": "Set of javascript interface components.", "versions": [ { "key": "F0F1AE9E-08B8-4E0E-92D5-93060CEFAAC4", "dependencies": [], "version": "1.9", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/jqueryui-1.9.d.ts"}]}, | ||
{ "name": "knockback", "description": "brings Knockout.js magic to Backbone.js", "versions": [ { "key": "264DF3D9-F658-4B05-8149-1858CB1ABBCA", "dependencies": [], "version": "0.16", "author": "Marcel Binot", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/knockback-0.16.d.ts"}]}, | ||
{ "name": "knockout", "description": "Dynamic JavaScript UIs by applying the Model-View-View Model (MVVM).", "versions": [ { "key": "B95B4583-6C6E-4C21-B8FC-DD3D5538596E", "dependencies": [], "version": "2.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/knockout-2.2.d.ts"}]}, | ||
{ "name": "knockoutmapping", "description": "Object mapping plugin for KnockoutJS", "versions": [ { "key": "31341C16-2D30-4B8E-87E2-4522F0B868BF", "dependencies": [], "version": "2.0", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/knockoutmapping-2.0.d.ts"}]}, | ||
{ "name": "linqjs", "description": "LINQ for JavaScript", "versions": [ { "key": "F0C29FAB-9E82-4CC4-8BCE-418D28AF4A65", "dependencies": [], "version": "2.2", "author": "MarcinNajder", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/linq-2.2.d.ts"}]}, | ||
{ "name": "modernizr", "description": "A JavaScript library that detects HTML5 and CSS3 feature.", "versions": [ { "key": "D3D17555-E9EF-468E-B605-A4577B502D75", "dependencies": [], "version": "2.6", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/modernizr-2.6.d.ts"}]}, | ||
{ "name": "moment", "description": "Parse, validate, manipulate, and display dates in javascript.", "versions": [ { "key": "F0FBEE19-CED3-47F1-BD5C-0F726C37E8B3", "dependencies": [], "version": "1.7", "author": "Michael Lakerveld", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/moment-1.7.d.ts"}]}, | ||
{ "name": "msnodesql", "description": "Microsoft Driver for Node.js for SQL Server", "versions": [ { "key": "1A9391CF-2C4F-4A15-AD57-A97A372EE0F8", "dependencies": [], "version": "0.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/msnodesql-0.2.d.ts"}]}, | ||
{ "name": "mustache", "description": "Minimal templating in JavaScript.", "versions": [ { "key": "96C40747-B6A3-46F3-9B13-691D61A3DD08", "dependencies": [], "version": "0.7", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/mustache-0.7.d.ts"}]}, | ||
{ "name": "node", "description": "JavaScript runtime for build applications.", "versions": [ { "key": "F6711A17-81AF-4E9C-A82D-855DDB1E7F3A", "dependencies": [], "version": "0.8", "author": "TypeScript samples", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/node-0.8.d.ts"}]}, | ||
{ "name": "node_redis", "description": "Redis client for node", "versions": [ { "key": "DA143CF3-8AFE-4DF9-B98E-85951A3A7B9C", "dependencies": [], "version": "0.8", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/node_redis-0.8.d.ts"}]}, | ||
{ "name": "PhoneGap", "description": "Framework that supports 7 mobile platforms", "versions": [ { "key": "53535BA3-1A74-4DA2-9B98-46DFEFA74BB2", "dependencies": [], "version": "2.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/phonegap-2.2.d.ts"}]}, | ||
{ "name": "qunit", "description": "JavaScript runtime for build applications.", "versions": [ { "key": "BD09CCAE-87F7-49FF-9CFE-5FB9F95369AB", "dependencies": [], "version": "1.10", "author": "Diullei Gomes", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/qunit-1.10.d.ts"}]}, | ||
{ "name": "raphael", "description": "A small JavaScript library that should simplify your work with vector graphics on the web.", "versions": [ { "key": "E6A34E99-68E8-42F8-9479-ABA9C575319C", "dependencies": [], "version": "2.1", "author": "CheCoxshall", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/raphael-2.1.d.ts"}]}, | ||
{ "name": "Sammyjs", "description": "RESTful Evented JavaScript", "versions": [ { "key": "3FBC8337-4741-416D-B576-B55221CDA93A", "dependencies": [], "version": "0.7", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/sammyjs-0.7.d.ts"}]}, | ||
{ "name": "SoundJS", "description": "Javascript library that provides a simple API, and powerful features to make working with audio a breeze.", "versions": [ { "key": "E6459F1B-6722-4B84-9E42-150F0D7740B1", "dependencies": [], "version": "3.0", "author": "Pedro Ferreira", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/soundjs-0.3.d.ts"}]}, | ||
{ "name": "spin", "description": "A spinning activity indicator.", "versions": [ { "key": "3844D795-5DAC-4AE2-9B3D-37DD342E2409", "dependencies": [], "version": "1.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/spin-1.2.d.ts"}]}, | ||
{ "name": "sugar", "description": "Sugar is a Javascript library that extends native objects with helpful methods.", "versions": [ { "key": "3479CE5E-C7C5-446B-9849-36DC418DC838", "dependencies": [], "version": "1.3", "author": "Josh Baldwin", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/sugar-1.3.d.ts"}]}, | ||
{ "name": "TeeChart", "description": "TeeChart Pro provides complete, quick and easy to use charting", "versions": [ { "key": "CD94F66C-57A3-4FCA-B8BF-EA93D9D1B843", "dependencies": [], "version": "1.3", "author": "Steema Software SL.", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/teechart-1.3.d.ts"}]}, | ||
{ "name": "toastr", "description": "toastr is a Javascript library for Gnome / Growl type non-blocking notifications.", "versions": [ { "key": "B4D5487F-E37D-4326-9E08-A63B745FEFC5", "dependencies": [], "version": "1.0", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/toastr-1.0.d.ts"}]}, | ||
{ "name": "TweenJS", "description": "A Javascript library for tweening and animating HTML5 and Javascript properties.", "versions": [ { "key": "43E6CDBC-EAFC-4F54-A57E-C2CF2F287624", "dependencies": [], "version": "0.3", "author": "Pedro Ferreira", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/tweenjs-0.3.d.ts"}]}, | ||
{ "name": "underscore", "description": "Utility-belt library for JavaScript.", "versions": [ { "key": "61302984-20B9-412B-9FB3-FDFC7554E144", "dependencies": [], "version": "1.4", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/underscore-1.4.d.ts"}]}, | ||
{ "name": "underscore-typed", "description": "Utility-belt library for JavaScript.", "versions": [ { "key": "9C68EE32-8B0A-401E-B35F-C2F7C0761A7C", "dependencies": [], "version": "1.4", "author": "Josh Baldwin", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/Definitions/underscore-typed-1.4.d.ts"}]} | ||
] | ||
{ "name": "ember", "description": "A Framework for creating ambitious web application.", "versions": [ { "key": "BADFDF09-0F77-4B90-B1D8-A1BA0E2A6BFD", "dependencies": [], "version": "1.0", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/ember/ember.d.ts"}]}, | ||
{ "name": "express", "description": "Node.js web application framework", "versions": [ { "key": "9167385F-C4E4-4634-AF92-0FC7795C3393", "dependencies": [{"name": "node", "version": ""}], "version": "3.0", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/express/express.d.ts"}]}, | ||
{ "name": "easyscroller", "description": "Type definition to EasyScroller", "versions": [ { "key": "f2fa4f6b-27af-cc25-8edd-cc7283359453", "dependencies": [{"name": "scroller", "version": ""}], "version": "", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/scroller/scroller.d.ts"}]}, | ||
{ "name": "fancybox", "description": "FancyBox is a tool for displaying images, html content and multi-media", "versions": [ { "key": "EDE384C1-57A8-4F1C-A8A8-A3BAC91C2EAF", "dependencies": [{"name": "jquery", "version": ""}], "version": "2.1", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/fancybox/fancybox.d.ts"}]}, | ||
{ "name": "flot", "description": "Flot definitions", "versions": [ { "key": "9C497A79-426C-4EB0-924A-5F0EC6144591", "dependencies": [{"name": "jquery", "version": ""}], "version": "", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/flot/jquery.flot.d.ts"}]}, | ||
{ "name": "foundation", "description": "Type definitions for Foundation 3.2", "versions": [ { "key": "32B595F8-6448-4454-AFAA-8FCBC13FE2AE", "dependencies": [{"name": "jquery", "version": ""}], "version": "3.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/foundation/foundation.d.ts"}]}, | ||
{ "name": "fabricjs", "description": "Fabric.js is a powerful and simple Javascript canvas library", "versions": [ { "key": "e353e6fc-5a1e-8fcd-f6fc-f9999ef34a4", "dependencies": [], "version": "", "author": "Oliver Klemencic", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/fabricjs/fabricjs.d.ts"}]}, | ||
{ "name": "globalize", "description": "New age globalization and localization.", "versions": [ { "key": "8D36F3C1-C418-4BDE-8E2C-2258C5E8E483", "dependencies": [], "version": "0.1", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/globalize/globalize.d.ts"}]}, | ||
{ "name": "google.maps", "description": "Google Maps API", "versions": [ { "key": "2AE44DF7-BEE5-4354-B68E-62A6067694FD", "dependencies": [], "version": "3.0", "author": "Esben Nepper", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/googlemaps/google.maps.d.ts"}]}, | ||
{ "name": "GreenSock", "description": "GreenSock Animation Platform (GSAP)", "versions": [ { "key": "E08A7E0B-A7C4-4B49-982A-CF5D484A39A3", "dependencies": [], "version": "1.0", "author": "http://api.greensock.com/js/", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/greensock/greensock.d.ts"}]}, | ||
{ "name": "gldatepicker", "description": "An ultra-simple, customizable, light-weight date picker plug-in for jQuery", "versions": [ { "key": "a02691f-e92a-cd79-2693-c5dda683ca94", "dependencies": [], "version": "2.0", "author": "Dániel Tar", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/gldatepicker/gldatepicker.d.ts"}]}, | ||
{ "name": "Hammer.js", "description": "Type definitions for Hammer.js 0.6", "versions": [ { "key": "D8502E10-0504-4473-8257-E5E5D313C807", "dependencies": [], "version": "0.6", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/hammerjs/hammerjs.d.ts"}]}, | ||
{ "name": "handlebars", "description": "Handlebars provides the power necessary to let you build semantic templates effectively with no frustration.", "versions": [ { "key": "BE9045CC-7333-471D-A441-2817D7410F06", "dependencies": [], "version": "1.0", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/handlebars/handlebars.d.ts"}]}, | ||
{ "name": "Highcharts", "description": "Type definitions for Highcharts", "versions": [ { "key": "C19BCFAA-F9D3-40BC-B0FD-AC8D06BF9789", "dependencies": [], "version": "2.3", "author": "Damiano Gambarotto", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/highcharts/highcharts.d.ts"}]}, | ||
{ "name": "history", "description": "Gracefully supports the HTML5 History/State APIs", "versions": [ { "key": "4EFBB523-7D05-440E-ACB1-3E3191A5E466", "dependencies": [], "version": "1.7", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/history/history.d.ts"}]}, | ||
{ "name": "humane", "description": "A simple, modern, framework-independent, well-tested, unobtrusive, notification system.", "versions": [ { "key": "84602CB7-E9F4-40AD-BB48-B17B2A819402", "dependencies": [], "version": "3.0", "author": "John Vrbanac", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/humane/humane.d.ts"}]}, | ||
{ "name": "impress", "description": "A presentation framework based on the power of CSS3.", "versions": [ { "key": "2B8E0B68-91AE-4BB4-8999-D8B7D0778A83", "dependencies": [], "version": "0.5", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/impress/impress.d.ts"}]}, | ||
{ "name": "iscroll", "description": "Type definition to IsScroll", "versions": [ { "key": "d7876add-3616-ce29-f57c-b53820f4167", "dependencies": [], "version": "4.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/iscroll/iscroll-lite.d.ts"}]}, | ||
{ "name": "iscroll.lite", "description": "Type definition to IsScroll lite", "versions": [ { "key": "8ad9ceb5-2802-4fcb-e902-c2f094b02a9b", "dependencies": [], "version": "4,1", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/iscroll/iscroll.d.ts"}]}, | ||
{ "name": "jasmine", "description": "A behavior-driven development framework.", "versions": [ { "key": "C86218A4-95A3-498D-8232-41270FBCC0CD", "dependencies": [], "version": "1.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jasmine/jasmine.d.ts"}]}, | ||
{ "name": "jquery.bbq", "description": "jQuery BBQ leverages the HTML5 hashchange event to allow simple, yet powerful bookmarkable #hash history.", "versions": [ { "key": "DE275D25-3427-43E0-AF8C-282C587D5FFC", "dependencies": [], "version": "1.2", "author": "Adam R. Smith", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jquery.bbq/jquery.bbq.d.ts"}]}, | ||
{ "name": "jQuery-Cookie", "description": "Type definitions for jQuery Cookie Plugin", "versions": [ { "key": "F5087F23-10F4-45CE-8B76-ECBB431CF372", "dependencies": [{"name": "jquery", "version": ""}], "version": "1.3", "author": "Roy Goode", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jquery.cookie/jquery.cookie.d.ts"}]}, | ||
{ "name": "jquery", "description": "JavaScript library to handle HTML elements.", "versions": [ { "key": "6536E49D-F9FC-4211-B8ED-4EBCC8464887", "dependencies": [], "version": "1.8", "author": "TypeScript samples", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jquery/jquery.d.ts"}]}, | ||
{ "name": "jquery.dynatree", "description": "Dynatree is a jQuery plugin that allows to dynamically create html tree view controls using JavaScript.", "versions": [ { "key": "8CA66E9A-F574-40F3-9DDF-44A20F570831", "dependencies": [{"name": "jquery", "version": ""}], "version": "1.2", "author": "François de Campredon", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jquery.dynatree/jquery.dynatree.d.ts"}]}, | ||
{ "name": "jQuery.transit", "description": "Type definitions for jQuery.transit.js", "versions": [ { "key": "08B14258-99CB-4B15-8A87-24B3656F825E", "dependencies": [{"name": "jquery", "version": ""}], "version": "0.1", "author": "", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jquery.transit/jquery.transit.d.ts"}]}, | ||
{ "name": "jquery.validation", "description": "This jQuery plugin makes simple clientside form validation trivial, while offering lots of option for customization.", "versions": [ { "key": "31753AC8-9865-47B5-8ACA-DF28B65AF11E", "dependencies": [{"name": "jquery", "version": ""}], "version": "1.10", "author": "François de Campredon", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jquery.validation/jquery.validation.d.ts"}]}, | ||
{ "name": "jquerymobile", "description": "Touch-Optimized Web Framework for Smartphones & Tablets", "versions": [ { "key": "D7E641C0-8E41-428E-AFF1-8D7993E054A1", "dependencies": [{"name": "jquery", "version": ""}], "version": "1.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jquerymobile/jquerymobile.d.ts"}]}, | ||
{ "name": "jqueryui", "description": "Set of javascript interface components.", "versions": [ { "key": "F0F1AE9E-08B8-4E0E-92D5-93060CEFAAC4", "dependencies": [{"name": "jquery", "version": ""}], "version": "1.9", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jqueryui/jqueryui.d.ts"}]}, | ||
{ "name": "jqrangeslider", "description": "A powerful slider for selecting value ranges, supporting dates and more.", "versions": [ { "key": "c7a49102-a8ab-5da2-4bc0-e5e0479e780e", "dependencies": [], "version": "4.2.8", "author": "Dániel Tar", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jqrangeslider/jqrangeslider.d.ts"}]}, | ||
{ "name": "jquery.bootstrap.wizard", "description": "Type definition to jquery.bootstrap.wizard", "versions": [ { "key": "a7863fc0-a850-e77f-7711-9f75f0c95bf4", "dependencies": [{"name": "jquery", "version": ""}], "version": "", "author": "Blake Niemyjski", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jquery.bootstrap.wizard/jquery.bootstrap.wizard.d.ts"}]}, | ||
{ "name": "jquery.contextMenu", "description": "jQuery contextMenu Plugin", "versions": [ { "key": "e5fe3e72-57f7-3bef-ac05-c86131e0c0d6", "dependencies": [{"name": "jquery", "version": ""}], "version": "1.5", "author": "Natan Vivo", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jquery.contextMenu/jquery.contextMenu.d.ts"}]}, | ||
{ "name": "jquery.jnotify", "description": "JNotify (JQuery Notification Engine)", "versions": [ { "key": "ed0b610a-ff7-a8a6-3fd4-1eb1e1e333f9", "dependencies": [{"name": "jquery", "version": ""}], "version": "1.0", "author": "James Curran", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jquery.jnotify/jquery.jnotify.d.ts"}]}, | ||
{ "name": "jquery.simplePagination", "description": "A simple jQuery pagination plugin", "versions": [ { "key": "175b7285-319a-eed9-1513-e332cec3f269", "dependencies": [{"name": "jquery", "version": ""}], "version": "1.4", "author": "Natan Vivo", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jquery.simplePagination/jquery.simplePagination.d.ts"}]}, | ||
{ "name": "jquery.timepicker", "description": "jQuery UI Timepicker", "versions": [ { "key": "f585269b-88f6-cdad-55ed-25a3ef1eef7a", "dependencies": [{"name": "jquery", "version": ""}], "version": "0.3", "author": "https://github.com/anwarjaved", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jquery.timepicker/jquery.timepicker.d.ts"}]}, | ||
{ "name": "jquery.watermark", "description": "jquery-watermark plugin", "versions": [ { "key": "12162a44-9d6e-6d17-13dc-f656d586f5dc", "dependencies": [{"name": "jquery", "version": ""}], "version": "3.1", "author": "https://github.com/anwarjaved", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/jquery.watermark/jquery.watermark.d.ts"}]}, | ||
{ "name": "knockback", "description": "brings Knockout.js magic to Backbone.js", "versions": [ { "key": "264DF3D9-F658-4B05-8149-1858CB1ABBCA", "dependencies": [{"name": "backbone", "version": ""}, {"name": "knockout", "version": ""}], "version": "0.16", "author": "Marcel Binot", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/knockback/knockback.d.ts"}]}, | ||
{ "name": "knockout", "description": "Dynamic JavaScript UIs by applying the Model-View-View Model (MVVM).", "versions": [ { "key": "B95B4583-6C6E-4C21-B8FC-DD3D5538596E", "dependencies": [], "version": "2.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/knockout/knockout.d.ts"}]}, | ||
{ "name": "knockout.validation", "description": " Definition file for knockout.validation plugin", "versions": [ { "key": "7502CB08-BB74-4A84-8BAD-918B1CCFD93C", "dependencies": [{"name": "knockout", "version": ""}], "version": "", "author": "", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/knockout.validation/knockout.validation.d.ts"}]}, | ||
{ "name": "knockout.mapping", "description": "Object mapping plugin for KnockoutJS", "versions": [ { "key": "31341C16-2D30-4B8E-87E2-4522F0B868BF", "dependencies": [{"name": "knockout", "version": ""}], "version": "2.0", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/knockout.mapping/knockout.mapping.d.ts"}]}, | ||
{ "name": "keyboardjs", "description": "A JavaScript library for binding keyboard combos without the pain of key codes and key combo conflicts", "versions": [ { "key": "77d5d4f5-9a2e-4837-8f00-c3239038d1ca", "dependencies": [], "version": "", "author": "Vincent Bortone", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/keyboardjs/keyboardjs.d.ts"}]}, | ||
{ "name": "knockout.editables", "description": "Allows to accept/rollback changes on individual observables and view models in simple and elegant way", "versions": [ { "key": "197eb092-39fb-5b46-40ee-75a0d593eed0", "dependencies": [{"name": "knockout", "version": ""}], "version": "0.9", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/knockout.editables/ko.editables.d.ts"}]}, | ||
{ "name": "knockout.postbox", "description": "A small library that uses Knockout's native pub/sub capabilities", "versions": [ { "key": "445d2926-93dd-4e73-87d0-c1dfcc649847", "dependencies": [{"name": "knockout", "version": ""}], "version": "", "author": "Judah Gabriel", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/knockout.postbox/knockout-postbox.d.ts"}]}, | ||
{ "name": "knockout.viewmodel", "description": "Allows to accept/rollback changes on individual observables and view models in simple and elegant way", "versions": [ { "key": "5ec15c42-d60e-92bf-553c-145bf966f56", "dependencies": [{"name": "knockout", "version": ""}], "version": "", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/knockout.viewmodel/knockout.viewmodel.d.ts"}]}, | ||
{ "name": "kolite", "description": "KoLite contains a set of helpers to aid in creating MVVM applications using JavaScript and Knockout", "versions": [ { "key": "d19fe28b-3d84-77bd-1dda-b176cd96cda0", "dependencies": [], "version": "1.1", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/kolite/kolite.d.ts"}]}, | ||
{ "name": "linqjs", "description": "LINQ for JavaScript", "versions": [ { "key": "F0C29FAB-9E82-4CC4-8BCE-418D28AF4A65", "dependencies": [], "version": "2.2", "author": "MarcinNajder", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/linq/linq.d.ts"}]}, | ||
{ "name": "modernizr", "description": "A JavaScript library that detects HTML5 and CSS3 feature.", "versions": [ { "key": "D3D17555-E9EF-468E-B605-A4577B502D75", "dependencies": [], "version": "2.6", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/modernizr/modernizr.d.ts"}]}, | ||
{ "name": "moment", "description": "Parse, validate, manipulate, and display dates in javascript.", "versions": [ { "key": "F0FBEE19-CED3-47F1-BD5C-0F726C37E8B3", "dependencies": [], "version": "1.7", "author": "Michael Lakerveld", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/moment/moment.d.ts"}]}, | ||
{ "name": "msnodesql", "description": "Microsoft Driver for Node.js for SQL Server", "versions": [ { "key": "1A9391CF-2C4F-4A15-AD57-A97A372EE0F8", "dependencies": [{"name": "node", "version": ""}], "version": "0.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/msnodesql/msnodesql.d.ts"}]}, | ||
{ "name": "mustache", "description": "Minimal templating in JavaScript.", "versions": [ { "key": "96C40747-B6A3-46F3-9B13-691D61A3DD08", "dependencies": [], "version": "0.7", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/mustache/mustache.d.ts"}]}, | ||
{ "name": "marked", "description": "A markdown parser and compiler. Built for speed", "versions": [ { "key": "eec77bc7-9d10-9595-e7f6-2eb2d33871b", "dependencies": [], "version": "", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/marked/marked.d.ts"}]}, | ||
{ "name": "mousetrap", "description": "A simple library for handling keyboard shortcuts in Javascript", "versions": [ { "key": "5ebe9070-8eb7-4716-927-dfb1692da0fa", "dependencies": [], "version": "1.2", "author": "Dániel Tar", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/mousetrap/mousetrap.d.ts"}]}, | ||
{ "name": "node", "description": "JavaScript runtime for build applications.", "versions": [ { "key": "F6711A17-81AF-4E9C-A82D-855DDB1E7F3A", "dependencies": [], "version": "0.8", "author": "TypeScript samples", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/node/node.d.ts"}]}, | ||
{ "name": "node_redis", "description": "Redis client for node", "versions": [ { "key": "DA143CF3-8AFE-4DF9-B98E-85951A3A7B9C", "dependencies": [], "version": "0.8", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/node_redis/node_redis.d.ts"}]}, | ||
{ "name": "numeraljs", "description": "A javascript library for formatting and manipulating numbers", "versions": [ { "key": "47225973-c747-c78e-c3ed-ab29d2a8f166", "dependencies": [], "version": "", "author": "Vincent Bortone", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/numeraljs/numeraljs.d.ts"}]}, | ||
{ "name": "PhoneGap", "description": "Framework that supports 7 mobile platforms", "versions": [ { "key": "53535BA3-1A74-4DA2-9B98-46DFEFA74BB2", "dependencies": [], "version": "2.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/phonegap/phonegap.d.ts"}]}, | ||
{ "name": "platform", "description": "A platform detection library that works on nearly all JavaScript platforms", "versions": [ { "key": "e6e36d35-3e52-67af-cd8d-12f4de3dd6a5", "dependencies": [], "version": "1.0", "author": "Jake Hickman", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/platform/platform.d.ts"}]}, | ||
{ "name": "pouchDB", "description": "PouchDB is a JavaScript library that allows you to store and query data for web applications ", "versions": [ { "key": "6bc51b-30d-ca89-3ef-93f795c61dc1", "dependencies": [], "version": "0.1", "author": "Boris Yankov", "Bill Sears": "https://github.com/borisyankov/DefinitelyTyped/raw/master/pouchDB/pouch.d.ts"}]}, | ||
{ "name": "preloadjs", "description": "A Javascript library that lets you manage and co-ordinate the loading of assets.", "versions": [ { "key": "27EFA90F-3854-43DE-949A-867A5683FB72", "dependencies": [], "version": "0.2", "author": "Pedro Ferreira", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/preloadjs/preloadjs.d.ts"}]}, | ||
{ "name": "qunit", "description": "JavaScript runtime for build applications.", "versions": [ { "key": "BD09CCAE-87F7-49FF-9CFE-5FB9F95369AB", "dependencies": [], "version": "1.10", "author": "Diullei Gomes", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/qunit/qunit.d.ts"}]}, | ||
{ "name": "raphael", "description": "A small JavaScript library that should simplify your work with vector graphics on the web.", "versions": [ { "key": "E6A34E99-68E8-42F8-9479-ABA9C575319C", "dependencies": [], "version": "2.1", "author": "CheCoxshall", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/raphael/raphael.d.ts"}]}, | ||
{ "name": "requirejs", "description": "RequireJS is a JavaScript file and module loader.", "versions": [ { "key": "EA150585-414B-4671-9BE1-4105301E8742", "dependencies": [], "version": "2.1", "author": "jbaldwin", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/requirejs/require.d.ts"}]}, | ||
{ "name": "rx.js", "description": "Rx (Reactive Extensions)", "versions": [ { "key": "719c6d9d-881a-c5cf-c264-e13b1ee1590f", "dependencies": [], "version": "", "author": "gsino", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/rx.js/rx.js.d.ts"}]}, | ||
{ "name": "Sammyjs", "description": "RESTful Evented JavaScript", "versions": [ { "key": "3FBC8337-4741-416D-B576-B55221CDA93A", "dependencies": [], "version": "0.7", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/sammyjs/sammyjs.d.ts"}]}, | ||
{ "name": "select2", "description": "Select2 is a jQuery based replacement for select boxes.", "versions": [ { "key": "8281CAD6-9876-4693-8719-40100B211850", "dependencies": [], "version": "3.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/select2/select2.d.ts"}]}, | ||
{ "name": "signalr", "description": "Incredibly simple real-time web for .NET.", "versions": [ { "key": "784332C5-6D27-4240-AE6B-59B2FF5854C1", "dependencies": [], "version": "1.0", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/signalr/signalr.d.ts"}]}, | ||
{ "name": "socket.io", "description": "Type definitions for socket.io", "versions": [ { "key": "3DCF55EB-2079-42F7-9432-D8E1E7A8A09A", "dependencies": [{"name": "node", "version":""}], "version": "0.9", "author": "William Orr", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/socket.io/socket.io.d.ts"}]}, | ||
{ "name": "SockJS", "description": "Type definitions for SockJS", "versions": [ { "key": "0B9D45DE-3046-4A93-964B-0EEA8CFFDE4A", "dependencies": [], "version": "0.3", "author": "Emil Ivanov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/sockjs/sockjs.d.ts"}]}, | ||
{ "name": "SoundJS", "description": "Javascript library that provides a simple API, and powerful features to make working with audio a breeze", "versions": [ { "key": "E6459F1B-6722-4B84-9E42-150F0D7740B1", "dependencies": [], "version": "3.0", "author": "Pedro Ferreira", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/soundjs/soundjs.d.ts"}]}, | ||
{ "name": "spin", "description": "A spinning activity indicator.", "versions": [ { "key": "3844D795-5DAC-4AE2-9B3D-37DD342E2409", "dependencies": [], "version": "1.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/spin/spin.d.ts"}]}, | ||
{ "name": "sugar", "description": "Sugar is a Javascript library that extends native objects with helpful methods.", "versions": [ { "key": "3479CE5E-C7C5-446B-9849-36DC418DC838", "dependencies": [], "version": "1.3", "author": "Josh Baldwin", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/sugar/sugar.d.ts"}]}, | ||
{ "name": "scroller", "description": "Type definition to Scroller", "versions": [ { "key": "663d9def-e6ed-714f-f057-6ddfdcea46dd", "dependencies": [], "version": "", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/scroller/easyscroller.d.ts"}]}, | ||
{ "name": "state-machine", "description": "Type definition to State-Machine", "versions": [ { "key": "9bf6b93-c470-c7d9-652a-bd1c31b01422", "dependencies": [], "version": "2.2", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/state-machine/state-machine.d.ts"}]}, | ||
{ "name": "swipeview", "description": "Super simple solution to endless seamlessly loopable carousels for the mobile browser", "versions": [ { "key": "ba4d80a8-b9c-1b8a-7125-e9b449fe46df", "dependencies": [], "version": "1.0", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/swipeview/swipeview.d.ts"}]}, | ||
{ "name": "TeeChart", "description": "TeeChart Pro provides complete, quick and easy to use charting", "versions": [ { "key": "CD94F66C-57A3-4FCA-B8BF-EA93D9D1B843", "dependencies": [], "version": "1.3", "author": "Steema Software SL.", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/teechart/teechart.d.ts"}]}, | ||
{ "name": "toastr", "description": "toastr is a Javascript library for Gnome / Growl type non-blocking notifications.", "versions": [ { "key": "384F77E4-257E-4050-9457-591FD85381A4", "dependencies": [], "version": "1.0", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/toastr/toastr.d.ts"}]}, | ||
{ "name": "tween.js", "description": "Javascript tweening engine", "versions": [ { "key": "FCC4519E-71A6-4C53-A78F-47FFE56215BC", "dependencies": [], "version": "r7", "author": "Adam R. Smith", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/tween.js/tween.js.d.ts"}]}, | ||
{ "name": "TweenJS", "description": "A Javascript library for tweening and animating HTML5 and Javascript properties.", "versions": [ { "key": "43E6CDBC-EAFC-4F54-A57E-C2CF2F287624", "dependencies": [], "version": "0.3", "author": "Pedro Ferreira", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/tweenjs/tweenjs.d.ts"}]}, | ||
{ "name": "underscore", "description": "Utility-belt library for JavaScript.", "versions": [ { "key": "8A9EC69F-7728-4F88-9190-E528402EE27C", "dependencies": [], "version": "1.4", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/underscore/underscore.d.ts"}]}, | ||
{ "name": "underscore-typed", "description": "Utility-belt library for JavaScript.", "versions": [ { "key": "2B259BB1-D680-468B-835B-2F369D08184A", "dependencies": [], "version": "1.4", "author": "Josh Baldwin", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/underscore/underscore-typed.d.ts"}]}, | ||
{ "name": "unity-webapi", "description": "WebApps: Library for the integration with the Unity desktop", "versions": [ { "key": "5EEF1C23-5A15-4584-BB96-A2160B323658", "dependencies": [], "version": "1.0", "author": "John Vrbanac", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/unity-webapi/unity-webapi.d.ts"}]}, | ||
{ "name": "vimeo", "description": "Type definitions for Vimeo", "versions": [ { "key": "B100B107-49A2-43F9-8021-5A4A142D017D", "dependencies": [], "version": "", "author": "Daz Wilkin", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/vimeo/froogaloop.d.ts"}]}, | ||
{ "name": "viewporter", "description": "Meta viewport done right", "versions": [ { "key": "adda6a25-ee96-bdd4-3479-4c8efce6458", "dependencies": [], "version": "2.1", "author": "Boris Yankov", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/viewporter/viewporter.d.ts"}]}, | ||
{ "name": "Web-Audio-API-Nightly", "description": "Type definitions for the Web Audio API, currently only implemented in WebKit browsers", "versions": [ { "key": "81458086-1919-44BC-9D3F-ECC1D865CCAC", "dependencies": [], "version": "", "author": "Baruch Berger", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/webaudioapi/waa-nightly.d.ts"}]}, | ||
{ "name": "Web-Audio-API", "description": "Type definitions for the Web Audio API, currently only implemented in WebKit browsers", "versions": [ { "key": "625D38FB-E434-4306-8773-A1BC4A4170CD", "dependencies": [], "version": "", "author": "Baruch Berger", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/webaudioapi/waa.d.ts"}]}, | ||
{ "name": "webrtc.MediaStream", "description": "Media Capture and Streams", "versions": [ { "key": "d2e85bb-3667-7d2e-9489-375edcd12d56", "dependencies": [], "version": "", "author": "http://dev.w3.org/", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/webrtc/MediaStream.d.ts"}]}, | ||
{ "name": "webrtc.RTCPeerConnection", "description": "Media Capture and Streams", "versions": [ { "key": "fa0c985-ac9f-634e-4ab6-e05c709e6a96", "dependencies": [], "version": "", "author": "http://dev.w3.org/", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/webrtc/RTCPeerConnection.d.ts"}]}, | ||
{ "name": "Youtube", "description": "Type definitions for YouTube", "versions": [ { "key": "302735EF-0179-4F79-932B-7A0DB70EAED0", "dependencies": [], "version": "", "author": "Daz Wilkin", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/youtube/youtube.d.ts"}]}, | ||
{ "name": "yui", "description": "Type definitions for YUI", "versions": [ { "key": "1726322F-7D9C-4199-B37D-C5DFC6E54D2B", "dependencies": [], "version": "", "author": "Juan Ignacio Dopazo", "url": "https://gist.github.com/raw/3845543/828c41fe0e83d179155a49592efa5a5c09f3792f/result.js"}]}, | ||
{ "name": "zeroclipboard", "description": "provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie, and a JavaScript", "versions": [ { "key": "1ccf7428-d157-c185-9341-e7fec87bbe27", "dependencies": [], "version": "", "author": "Eric J. Smith/Blake Niemyjski", "url": "https://github.com/borisyankov/DefinitelyTyped/raw/master/zeroclipboard/zeroclipboard.d.ts"}]} | ||
] |
@@ -1,2 +0,2 @@ | ||
var System; | ||
var System; | ||
(function (System) { | ||
@@ -7,6 +7,6 @@ var Environment = (function () { | ||
return !(typeof ActiveXObject === "function"); | ||
} | ||
}; | ||
Environment.isWsh = function isWsh() { | ||
return !Environment.isNode(); | ||
} | ||
}; | ||
return Environment; | ||
@@ -16,8 +16,5 @@ })(); | ||
})(System || (System = {})); | ||
var System; | ||
(function (System) { | ||
})(System || (System = {})); | ||
})(System || (System = {})); | ||
var System; | ||
@@ -76,5 +73,3 @@ (function (System) { | ||
var IO = System.IO; | ||
})(System || (System = {})); | ||
var __extends = this.__extends || function (d, b) { | ||
@@ -84,3 +79,3 @@ function __() { this.constructor = d; } | ||
d.prototype = new __(); | ||
} | ||
}; | ||
var NodeJs; | ||
@@ -108,3 +103,2 @@ (function (NodeJs) { | ||
})(NodeJs || (NodeJs = {})); | ||
var Wsh; | ||
@@ -132,3 +126,2 @@ (function (Wsh) { | ||
})(Wsh || (Wsh = {})); | ||
var System; | ||
@@ -138,26 +131,23 @@ (function (System) { | ||
function Console() { } | ||
Console.out = null; | ||
Console.initialize = function initialize() { | ||
if(System.Environment.isNode()) { | ||
Console.out = new NodeJs.ConsoleWriter(); | ||
} else if(System.Environment.isWsh()) { | ||
Console.out = new Wsh.ConsoleWriter(); | ||
} else { | ||
if(System.Environment.isWsh()) { | ||
Console.out = new Wsh.ConsoleWriter(); | ||
} else { | ||
throw new Error('Invalid host'); | ||
} | ||
throw new Error('Invalid host'); | ||
} | ||
} | ||
}; | ||
Console.write = function write(value) { | ||
Console.out.write(value); | ||
} | ||
}; | ||
Console.writeLine = function writeLine(value) { | ||
Console.out.writeLine(value); | ||
} | ||
}; | ||
Console.writeAsync = function writeAsync(value, callback) { | ||
Console.out.writeAsync(value, callback); | ||
} | ||
}; | ||
Console.writeLineAsync = function writeLineAsync(value, callback) { | ||
Console.out.writeLineAsync(value, callback); | ||
} | ||
}; | ||
return Console; | ||
@@ -167,8 +157,5 @@ })(); | ||
})(System || (System = {})); | ||
var System; | ||
(function (System) { | ||
})(System || (System = {})); | ||
})(System || (System = {})); | ||
var NodeJs; | ||
@@ -206,3 +193,3 @@ (function (NodeJs) { | ||
switch(buffer[0]) { | ||
case 254: { | ||
case 254: | ||
if(buffer[1] == 255) { | ||
@@ -219,5 +206,3 @@ var i = 0; | ||
break; | ||
} | ||
case 255: { | ||
case 255: | ||
if(buffer[1] == 254) { | ||
@@ -227,10 +212,6 @@ return buffer.toString("ucs2", 2); | ||
break; | ||
} | ||
case 239: { | ||
case 239: | ||
if(buffer[1] == 187) { | ||
return buffer.toString("utf8", 3); | ||
} | ||
} | ||
} | ||
@@ -256,3 +237,2 @@ return buffer.toString(); | ||
})(NodeJs || (NodeJs = {})); | ||
var Wsh; | ||
@@ -312,6 +292,4 @@ (function (Wsh) { | ||
streamObj.Charset = 'unicode'; | ||
} else { | ||
if(bomChar.charCodeAt(0) == 239 && bomChar.charCodeAt(1) == 187) { | ||
streamObj.Charset = 'utf-8'; | ||
} | ||
} else if(bomChar.charCodeAt(0) == 239 && bomChar.charCodeAt(1) == 187) { | ||
streamObj.Charset = 'utf-8'; | ||
} | ||
@@ -349,3 +327,2 @@ var str = streamObj.ReadText(-1); | ||
})(Wsh || (Wsh = {})); | ||
var System; | ||
@@ -356,14 +333,11 @@ (function (System) { | ||
function FileManager() { } | ||
FileManager.handle = null; | ||
FileManager.initialize = function initialize() { | ||
if(System.Environment.isNode()) { | ||
FileManager.handle = new NodeJs.FileHandle(); | ||
} else if(System.Environment.isWsh()) { | ||
FileManager.handle = new Wsh.FileHandle(); | ||
} else { | ||
if(System.Environment.isWsh()) { | ||
FileManager.handle = new Wsh.FileHandle(); | ||
} else { | ||
throw new Error('Invalid host'); | ||
} | ||
throw new Error('Invalid host'); | ||
} | ||
} | ||
}; | ||
return FileManager; | ||
@@ -374,10 +348,6 @@ })(); | ||
var IO = System.IO; | ||
})(System || (System = {})); | ||
var System; | ||
(function (System) { | ||
})(System || (System = {})); | ||
})(System || (System = {})); | ||
var NodeJs; | ||
@@ -392,2 +362,5 @@ (function (NodeJs) { | ||
this._request(url, function (error, response, body) { | ||
if(error) { | ||
System.Console.writeLine("tsd \033[31mERR!\033[0m \033[35mGET\033[0m " + url); | ||
} | ||
System.Console.writeLine("tsd \033[32mhttp \033[35m" + response.statusCode + "\033[0m " + url); | ||
@@ -405,3 +378,2 @@ if(!error && response.statusCode == 200) { | ||
})(NodeJs || (NodeJs = {})); | ||
var Wsh; | ||
@@ -435,3 +407,2 @@ (function (Wsh) { | ||
})(Wsh || (Wsh = {})); | ||
var System; | ||
@@ -442,14 +413,11 @@ (function (System) { | ||
function WebHandler() { } | ||
WebHandler.request = null; | ||
WebHandler.initialize = function initialize() { | ||
if(System.Environment.isNode()) { | ||
WebHandler.request = new NodeJs.WebRequest(); | ||
} else if(System.Environment.isWsh()) { | ||
WebHandler.request = new Wsh.WebRequest(); | ||
} else { | ||
if(System.Environment.isWsh()) { | ||
WebHandler.request = new Wsh.WebRequest(); | ||
} else { | ||
throw new Error('Invalid host'); | ||
} | ||
throw new Error('Invalid host'); | ||
} | ||
} | ||
}; | ||
return WebHandler; | ||
@@ -460,20 +428,3 @@ })(); | ||
var Web = System.Web; | ||
})(System || (System = {})); | ||
var RepositoryTypeEnum; | ||
(function (RepositoryTypeEnum) { | ||
RepositoryTypeEnum._map = []; | ||
RepositoryTypeEnum._map[0] = "FileSystem"; | ||
RepositoryTypeEnum.FileSystem = 0; | ||
RepositoryTypeEnum._map[1] = "Web"; | ||
RepositoryTypeEnum.Web = 1; | ||
})(RepositoryTypeEnum || (RepositoryTypeEnum = {})); | ||
var Config = (function () { | ||
function Config() { } | ||
Config.prototype.load = function (cfgFile) { | ||
}; | ||
return Config; | ||
})(); | ||
var DataSource; | ||
@@ -501,3 +452,2 @@ (function (DataSource) { | ||
})(DataSource || (DataSource = {})); | ||
var DataSource; | ||
@@ -513,3 +463,3 @@ (function (DataSource) { | ||
if(err) { | ||
throw err; | ||
throw new Error("Error reading file repository file: " + err.message); | ||
} | ||
@@ -526,3 +476,2 @@ callback(JSON.parse(data)); | ||
})(DataSource || (DataSource = {})); | ||
var DataSource; | ||
@@ -550,3 +499,2 @@ (function (DataSource) { | ||
})(DataSource || (DataSource = {})); | ||
var Command; | ||
@@ -571,3 +519,2 @@ (function (Command) { | ||
})(Command || (Command = {})); | ||
var Command; | ||
@@ -603,2 +550,3 @@ (function (Command) { | ||
} | ||
System.Console.writeLine('>> Total ' + libs.length + ' libs.'); | ||
}); | ||
@@ -613,3 +561,2 @@ }; | ||
})(Command || (Command = {})); | ||
var Command; | ||
@@ -676,8 +623,5 @@ (function (Command) { | ||
})(Command || (Command = {})); | ||
var System; | ||
(function (System) { | ||
})(System || (System = {})); | ||
})(System || (System = {})); | ||
var NodeJs; | ||
@@ -695,3 +639,11 @@ (function (NodeJs) { | ||
if(!this.directoryExists(path)) { | ||
this._fs.mkdirSync(path); | ||
path = path.replace('\\', '/'); | ||
var parts = path.split('/'); | ||
var dpath = ''; | ||
for(var i = 0; i < parts.length; i++) { | ||
dpath += parts[i] + '/'; | ||
if(!this.directoryExists(dpath)) { | ||
this._fs.mkdirSync(dpath); | ||
} | ||
} | ||
} | ||
@@ -713,6 +665,4 @@ }; | ||
paths = paths.concat(filesInFolder(folder + "/" + files[i])); | ||
} else { | ||
if(stat.isFile() && (!spec || files[i].match(spec))) { | ||
paths.push(folder + "/" + files[i]); | ||
} | ||
} else if(stat.isFile() && (!spec || files[i].match(spec))) { | ||
paths.push(folder + "/" + files[i]); | ||
} | ||
@@ -728,3 +678,2 @@ } | ||
})(NodeJs || (NodeJs = {})); | ||
var Wsh; | ||
@@ -742,3 +691,11 @@ (function (Wsh) { | ||
if(!this.directoryExists(path)) { | ||
this._fso.CreateFolder(path); | ||
path = path.replace('\\', '/'); | ||
var parts = path.split('/'); | ||
var dpath = ''; | ||
for(var i = 0; i < parts.length; i++) { | ||
dpath += parts[i] + '/'; | ||
if(!this.directoryExists(dpath)) { | ||
this._fso.CreateFolder(dpath); | ||
} | ||
} | ||
} | ||
@@ -777,3 +734,2 @@ }; | ||
})(Wsh || (Wsh = {})); | ||
var System; | ||
@@ -784,14 +740,11 @@ (function (System) { | ||
function DirectoryManager() { } | ||
DirectoryManager.handle = null; | ||
DirectoryManager.initialize = function initialize() { | ||
if(System.Environment.isNode()) { | ||
DirectoryManager.handle = new NodeJs.DirectoryHandle(); | ||
} else if(System.Environment.isWsh()) { | ||
DirectoryManager.handle = new Wsh.DirectoryHandle(); | ||
} else { | ||
if(System.Environment.isWsh()) { | ||
DirectoryManager.handle = new Wsh.DirectoryHandle(); | ||
} else { | ||
throw new Error('Invalid host'); | ||
} | ||
throw new Error('Invalid host'); | ||
} | ||
} | ||
}; | ||
return DirectoryManager; | ||
@@ -802,5 +755,51 @@ })(); | ||
var IO = System.IO; | ||
})(System || (System = {})); | ||
var Uri = (function () { | ||
var options = { | ||
strictMode: false, | ||
key: [ | ||
"source", | ||
"protocol", | ||
"authority", | ||
"userInfo", | ||
"user", | ||
"password", | ||
"host", | ||
"port", | ||
"relative", | ||
"path", | ||
"directory", | ||
"file", | ||
"query", | ||
"anchor" | ||
], | ||
q: { | ||
name: "queryKey", | ||
parser: /(?:^|&)([^&=]*)=?([^&]*)/g | ||
}, | ||
parser: { | ||
strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, | ||
loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ | ||
} | ||
}; | ||
function parseUri(str) { | ||
var o = options, m = o.parser[o.strictMode ? "strict" : "loose"].exec(str), uri = { | ||
}, i = 14; | ||
while(i--) { | ||
uri[o.key[i]] = m[i] || ""; | ||
} | ||
uri[o.q.name] = { | ||
}; | ||
uri[o.key[12]].replace(o.q.parser, function ($0, $1, $2) { | ||
if($1) { | ||
uri[o.q.name][$1] = $2; | ||
} | ||
}); | ||
return uri; | ||
} | ||
; | ||
return { | ||
parseUri: parseUri | ||
}; | ||
})(); | ||
var Command; | ||
@@ -813,8 +812,9 @@ (function (Command) { | ||
this.shortcut = "install"; | ||
this.usage = "Intall file definition"; | ||
this.usage = "Intall file definition. Use install* to automatically dependencies map."; | ||
this._cache = []; | ||
this._index = 0; | ||
this._withDep = false; | ||
} | ||
InstallCommand.prototype.accept = function (args) { | ||
return args[2] == this.shortcut; | ||
return (args[2] == this.shortcut || args[2] == this.shortcut + '*') && args[3]; | ||
}; | ||
@@ -841,11 +841,22 @@ InstallCommand.prototype.print = function (lib) { | ||
}; | ||
InstallCommand.prototype.save = function (name, version, key, content) { | ||
if(!System.IO.DirectoryManager.handle.directoryExists(this.cfg.localPath)) { | ||
System.IO.DirectoryManager.handle.createDirectory(this.cfg.localPath); | ||
InstallCommand.prototype.normalizeGithubUrl = function (uri) { | ||
if(uri.host == 'github.com') { | ||
var parts = uri.directory.split('/'); | ||
var repo = parts[2]; | ||
var ignore = '/' + parts[1] + '/' + parts[2] + '/' + parts[3] + '/' + parts[4]; | ||
uri.directory = '/' + repo + uri.directory.substr(ignore.length); | ||
} | ||
var fileNameWithoutExtension = this.cfg.localPath + "/" + name + "-" + version; | ||
}; | ||
InstallCommand.prototype.save = function (url, name, version, key, content) { | ||
var uri = Uri.parseUri(url); | ||
this.normalizeGithubUrl(uri); | ||
if(!System.IO.DirectoryManager.handle.directoryExists(this.cfg.localPath + uri.directory)) { | ||
System.IO.DirectoryManager.handle.createDirectory(this.cfg.localPath + uri.directory); | ||
} | ||
var fileNameWithoutExtension = this.cfg.localPath + uri.directory + name; | ||
this.saveFile(fileNameWithoutExtension + ".d.ts", content); | ||
System.Console.writeLine("└── " + name + "@" + version + " instaled."); | ||
System.Console.writeLine("└── " + name + "@" + version + " -> " + this.cfg.localPath + uri.directory); | ||
this.saveFile(fileNameWithoutExtension + ".d.key", key); | ||
System.Console.writeLine(" └── " + key + ".key"); | ||
System.Console.writeLine(""); | ||
}; | ||
@@ -871,3 +882,3 @@ InstallCommand.prototype.find = function (key, libs) { | ||
var _this = this; | ||
if(this.cacheContains(targetLib.name + '@' + targetVersion)) { | ||
if(this.cacheContains(targetLib.name)) { | ||
return; | ||
@@ -880,4 +891,7 @@ } | ||
System.Web.WebHandler.request.getUrl(version.url, function (body) { | ||
_this.save(targetLib.name, version.version, version.key, body); | ||
_this._cache.push(targetLib.name + '@' + version.version); | ||
_this.save(version.url, targetLib.name, version.version, version.key, body); | ||
_this._cache.push(targetLib.name); | ||
if(!_this._withDep) { | ||
return; | ||
} | ||
var deps = (targetLib.versions[0].dependencies) || []; | ||
@@ -893,5 +907,8 @@ for(var i = 0; i < deps.length; i++) { | ||
var _this = this; | ||
this.dataSource.all(function (libs) { | ||
System.Console.writeLine(""); | ||
var targetLib = _this.find(args[3], libs); | ||
var targetLib; | ||
if(args[2].indexOf('*') != -1) { | ||
this._withDep = true; | ||
} | ||
var tryInstall = function (libs, lib) { | ||
targetLib = _this.find(lib, libs); | ||
if(targetLib) { | ||
@@ -902,2 +919,11 @@ _this.install(targetLib, targetLib.versions[0].version, libs); | ||
} | ||
}; | ||
this.dataSource.all(function (libs) { | ||
var index = 3; | ||
var lib = args[index]; | ||
while(lib) { | ||
tryInstall(libs, lib); | ||
index++; | ||
lib = args[index]; | ||
} | ||
}); | ||
@@ -912,3 +938,2 @@ }; | ||
})(Command || (Command = {})); | ||
var Command; | ||
@@ -934,25 +959,30 @@ (function (Command) { | ||
var libList = []; | ||
var files = System.IO.DirectoryManager.handle.getAllFiles(_this.cfg.localPath); | ||
var files = []; | ||
try { | ||
files = System.IO.DirectoryManager.handle.getAllFiles(_this.cfg.localPath, /.d\.key$/g, { | ||
recursive: true | ||
}); | ||
} catch (e) { | ||
System.Console.writeLine('Empty directory.'); | ||
} | ||
for(var i = 0; i < files.length; i++) { | ||
var file = files[i].substr(_this.cfg.localPath.length + 1); | ||
if(file.substr(file.length - 5) == 'd.key') { | ||
var name = file.substr(0, file.lastIndexOf('-')); | ||
var version = file.substr(name.length + 1, file.length - name.length - 7); | ||
var key = System.IO.FileManager.handle.readFile(files[i]); | ||
var flg = false; | ||
for(var j = 0; j < libs.length; j++) { | ||
var lib = libs[j]; | ||
if(name == lib.name) { | ||
if(version == lib.versions[0].version) { | ||
if(key != lib.versions[0].key) { | ||
System.Console.writeLine(' ' + (System.Environment.isNode() ? '\033[36m' : '') + name + (System.Environment.isNode() ? '\033[0m' : '') + ' - ' + (System.Environment.isNode() ? '\033[33m' : '') + 'A new version is available!' + (System.Environment.isNode() ? '\033[0m' : '')); | ||
flg = true; | ||
} | ||
var name = file.substr(0, file.lastIndexOf('.')); | ||
var version = file.substr(name.length + 1, file.length - name.length - 7); | ||
var key = System.IO.FileManager.handle.readFile(files[i]); | ||
var flg = false; | ||
for(var j = 0; j < libs.length; j++) { | ||
var lib = libs[j]; | ||
if(name == lib.name) { | ||
if(version == lib.versions[0].version) { | ||
if(key != lib.versions[0].key) { | ||
System.Console.writeLine(' ' + (System.Environment.isNode() ? '\033[36m' : '') + '> ' + name + ' d.ts' + (System.Environment.isNode() ? '\033[0m' : '') + ' - ' + (System.Environment.isNode() ? '\033[33m' : '') + 'A new version is available!' + (System.Environment.isNode() ? '\033[0m' : '')); | ||
flg = true; | ||
} | ||
} | ||
} | ||
if(!flg) { | ||
System.Console.writeLine(' ' + (System.Environment.isNode() ? '\033[36m' : '') + name + (System.Environment.isNode() ? '\033[0m' : '') + ' - ' + 'Is the latest version.'); | ||
} | ||
} | ||
if(!flg) { | ||
System.Console.writeLine(' ' + (System.Environment.isNode() ? '\033[36m' : '') + '> ' + name + ' d.ts' + (System.Environment.isNode() ? '\033[0m' : '') + ' - ' + 'Is the latest version.'); | ||
} | ||
} | ||
@@ -968,3 +998,129 @@ }); | ||
})(Command || (Command = {})); | ||
var RepositoryTypeEnum; | ||
(function (RepositoryTypeEnum) { | ||
RepositoryTypeEnum._map = []; | ||
RepositoryTypeEnum._map[0] = "FileSystem"; | ||
RepositoryTypeEnum.FileSystem = 0; | ||
RepositoryTypeEnum._map[1] = "Web"; | ||
RepositoryTypeEnum.Web = 1; | ||
})(RepositoryTypeEnum || (RepositoryTypeEnum = {})); | ||
var Config = (function () { | ||
function Config() { } | ||
Config.FILE_NAME = 'tsd-config.json'; | ||
Config.isNull = function isNull(cfg, key, alternativeValue) { | ||
return cfg[key] ? cfg[key] : alternativeValue; | ||
}; | ||
Config.tryGetConfigFile = function tryGetConfigFile() { | ||
var cfg = { | ||
}; | ||
try { | ||
cfg = JSON.parse(System.IO.FileManager.handle.readFile(Config.FILE_NAME)); | ||
} catch (e) { | ||
} | ||
return cfg; | ||
}; | ||
Config.prototype.load = function () { | ||
var cfg = Config.tryGetConfigFile(); | ||
this.localPath = Config.isNull(cfg, 'localPath', 'd.ts'); | ||
this.repositoryType = Config.isNull(cfg, 'repositoryType', RepositoryTypeEnum.Web); | ||
this.uri = Config.isNull(cfg, 'uri', "https://github.com/Diullei/tsd/raw/master/deploy/repository.json"); | ||
}; | ||
return Config; | ||
})(); | ||
var Command; | ||
(function (Command) { | ||
var CreateLocalConfigCommand = (function () { | ||
function CreateLocalConfigCommand() { | ||
this.shortcut = "ncfg"; | ||
this.usage = "Create a local config file."; | ||
} | ||
CreateLocalConfigCommand.prototype.accept = function (args) { | ||
return args[2] == this.shortcut; | ||
}; | ||
CreateLocalConfigCommand.prototype.saveConfigFile = function () { | ||
var sw = System.IO.FileManager.handle.createFile(Config.FILE_NAME); | ||
sw.write('{\n' + ' "localPath": "d.ts",\n' + ' "repositoryType": "1",\n' + ' "uri": "https://github.com/Diullei/tsd/raw/master/deploy/repository.json"\n' + '}'); | ||
sw.flush(); | ||
sw.close(); | ||
}; | ||
CreateLocalConfigCommand.prototype.exec = function (args) { | ||
if(System.IO.FileManager.handle.fileExists(Config.FILE_NAME)) { | ||
throw new Error("There is already a configuration file in this folder."); | ||
} else { | ||
this.saveConfigFile(); | ||
} | ||
System.Console.writeLine("configuration file created successfully."); | ||
}; | ||
CreateLocalConfigCommand.prototype.toString = function () { | ||
return this.shortcut + " " + this.usage; | ||
}; | ||
return CreateLocalConfigCommand; | ||
})(); | ||
Command.CreateLocalConfigCommand = CreateLocalConfigCommand; | ||
})(Command || (Command = {})); | ||
var Command; | ||
(function (Command) { | ||
var InfoCommand = (function () { | ||
function InfoCommand(dataSource) { | ||
this.dataSource = dataSource; | ||
this.shortcut = "info"; | ||
this.usage = "Get lib information"; | ||
this._index = 0; | ||
} | ||
InfoCommand.prototype.accept = function (args) { | ||
return args[2] == this.shortcut && args[3]; | ||
}; | ||
InfoCommand.prototype.match = function (key, name) { | ||
return name.toUpperCase() == key.toUpperCase(); | ||
}; | ||
InfoCommand.prototype.find = function (key, libs) { | ||
for(var i = 0; i < libs.length; i++) { | ||
var lib = libs[i]; | ||
if(this.match(lib.name, key)) { | ||
return lib; | ||
} | ||
} | ||
return null; | ||
}; | ||
InfoCommand.prototype.display = function (targetLib, targetVersion, libs) { | ||
if(targetLib == null) { | ||
System.Console.writeLine("Lib not found."); | ||
} else { | ||
var version = targetLib.versions[0]; | ||
System.Web.WebHandler.request.getUrl(version.url, function (body) { | ||
System.Console.writeLine(""); | ||
System.Console.writeLine("[INFO] name: " + targetLib.name); | ||
System.Console.writeLine(" +-- description: " + targetLib.description); | ||
System.Console.writeLine(" +---------- key: " + version.key); | ||
System.Console.writeLine(" +------ version: " + version.version); | ||
System.Console.writeLine(" +------- author: " + version.author); | ||
System.Console.writeLine(" +---------- url: " + version.url); | ||
System.Console.writeLine(""); | ||
}); | ||
} | ||
}; | ||
InfoCommand.prototype.exec = function (args) { | ||
var _this = this; | ||
var targetLib; | ||
var tryGetInfo = function (libs, lib) { | ||
targetLib = _this.find(lib, libs); | ||
if(targetLib) { | ||
_this.display(targetLib, targetLib.versions[0].version, libs); | ||
} else { | ||
System.Console.writeLine("Lib not found."); | ||
} | ||
}; | ||
this.dataSource.all(function (libs) { | ||
var index = 3; | ||
var lib = args[index]; | ||
tryGetInfo(libs, lib); | ||
}); | ||
}; | ||
InfoCommand.prototype.toString = function () { | ||
return this.shortcut + " " + this.usage; | ||
}; | ||
return InfoCommand; | ||
})(); | ||
Command.InfoCommand = InfoCommand; | ||
})(Command || (Command = {})); | ||
var CommandLineProcessor = (function () { | ||
@@ -980,2 +1136,4 @@ function CommandLineProcessor(dataSource, cfg) { | ||
this.commands.push(new Command.UpdateCommand(this.dataSource, this.cfg)); | ||
this.commands.push(new Command.CreateLocalConfigCommand()); | ||
this.commands.push(new Command.InfoCommand(this.dataSource)); | ||
} | ||
@@ -1022,10 +1180,8 @@ CommandLineProcessor.prototype.printUsage = function () { | ||
return new DataSource.FileSystemDataSource(cfg.uri); | ||
} else if(cfg.repositoryType == RepositoryTypeEnum.Web) { | ||
return new DataSource.WebDataSource(cfg.uri); | ||
} else { | ||
if(cfg.repositoryType == RepositoryTypeEnum.Web) { | ||
return new DataSource.WebDataSource(cfg.uri); | ||
} else { | ||
throw Error('Invalid dataSource.'); | ||
} | ||
throw Error('Invalid dataSource.'); | ||
} | ||
} | ||
}; | ||
return DataSourceFactory; | ||
@@ -1035,4 +1191,2 @@ })(); | ||
})(DataSource || (DataSource = {})); | ||
var VERSION = "0.2.1"; | ||
var Main = (function () { | ||
@@ -1049,5 +1203,3 @@ function Main() { } | ||
var cfg = new Config(); | ||
cfg.repositoryType = RepositoryTypeEnum.Web; | ||
cfg.uri = "https://github.com/Diullei/tsd/raw/master/deploy/repository.json"; | ||
cfg.localPath = "d.ts"; | ||
cfg.load(); | ||
var ds = DataSource.DataSourceFactory.factory(cfg); | ||
@@ -1054,0 +1206,0 @@ var cp = new CommandLineProcessor(ds, cfg); |
{ | ||
"name": "tsd", | ||
"description": "The TypeScript definition package manager.", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"author": "Diullei Gomes", | ||
@@ -6,0 +6,0 @@ "licenses": [ { "type": "MIT", "url": "https://raw.github.com/Diullei/tsd/master/LICENSE.txt" } ], |
@@ -14,2 +14,4 @@ TSD - A TypeScript definition package manager | ||
> Your best friend at this stage is probably `tsd -h`. | ||
To view all repository files use: | ||
@@ -19,21 +21,73 @@ | ||
This will print all file definitions available on repository. To install some file on local project you must use ```install``` followed by a lib name: | ||
This will print all file definitions available on repository. To install some file on local project you must use `install` command followed by a lib name: | ||
tsd install node | ||
This will create a folder named ```d.ts``` (if it doesn't exists) and will download the file definition to this folder. | ||
This will create by default a folder named `d.ts` (if it doesn't exists) and will download the file definition to this folder. | ||
To make a search for any file you must use ```search``` command. | ||
### TSD configuration | ||
tsd search backbone | ||
You can define your own custom folder to store definition files with the command: | ||
tsd ncfg | ||
This will create a file named `tsd-config.json` on current folder with the following content: | ||
{ | ||
"localPath": "d.ts", | ||
"repositoryType": "1", | ||
"uri": "https://github.com/Diullei/tsd/raw/master/deploy/repository.json" | ||
} | ||
* **localPath** - Must be the path to your local folder to store definition files. This folder will be created in the first time if not exists. | ||
* **repositoryType** - this property is used to define if uri is a local folder or a url. Use `0` to local folder or `1` to url. | ||
* **uri** - Define if the repository file is an url or a local folder. | ||
### Installing dependencies | ||
Some definition files have dependencies of another files like `socket.io` that depends of `node`. To install dependencies you can use `tsd install` command followed by a list of libs to install. | ||
Example: | ||
tsd install sicket.io node express | ||
This will install _express_, _socket.io_ and _node_ definitions. | ||
### Install dependencies automatically | ||
You can use `install*` command to allow TSD tool to automatically map and install all necessary dependencies. If you use `install* sochet.io` this will install `sochet.io` and `node` because `sochet.io` has `node` mapped as a dependency. If you use the command: | ||
tsd install* knockback | ||
TSD will install `knockback`, `knockout` and `backbone` definition. | ||
### Checking for updates | ||
You can always use `tsd update` command to verify if your local libs are updated. | ||
### Repository | ||
To make a search for any file you must use `search` command. | ||
Example: | ||
tsd search backbone | ||
TSD get the file definitions from [DefinitelyTyped](https://github.com/borisyankov/DefinitelyTyped) project. You can view the repository references inside [repository.json](https://github.com/Diullei/tsd/blob/master/deploy/repository.json) file (I'm working to add some anothers). If you want to contribute please make a fork from tsd repo, change the repository.json and make a pull request. | ||
> This file is updated constantly. | ||
## Change log | ||
### v0.3.0 (2013-01-25) | ||
* Multiple installs at once install command [#3](https://github.com/Diullei/tsd/issues/3). Thanks to [@Crwth](https://github.com/Crwth) | ||
* Command for show/info [#2](https://github.com/Diullei/tsd/issues/2). Thanks to [@semperos](https://github.com/semperos) | ||
* Allow user to change repository url from local config file | ||
* Command to create local config file | ||
* Solved issue: DefinitelyTyped directory structure is lost [#4](https://github.com/Diullei/tsd/issues/4). Thanks to [@Crwth](https://github.com/Crwth) | ||
### v0.2.2 (2012-11-07) | ||
* Fix: now tsd works on linux/mac. Issue #1. Thanks to @seanhess | ||
* Fix: now tsd works on linux/mac. Issue [#1](https://github.com/Diullei/tsd/issues/1). Thanks to [@seanhess](https://github.com/seanhess) | ||
@@ -40,0 +94,0 @@ ## License |
@@ -38,2 +38,3 @@ ///<reference path='ICommand.ts'/> | ||
} | ||
System.Console.writeLine('>> Total ' + libs.length + ' libs.'); | ||
}); | ||
@@ -40,0 +41,0 @@ } |
@@ -5,2 +5,4 @@ ///<reference path='ICommand.ts'/> | ||
///<reference path='../System/IO/DirectoryManager.ts'/> | ||
///<reference path='../System/Console.ts'/> | ||
///<reference path='../System/Uri.ts'/> | ||
@@ -11,3 +13,3 @@ module Command { | ||
public shortcut: string = "install"; | ||
public usage: string = "Intall file definition"; | ||
public usage: string = "Intall file definition. Use install* to automatically dependencies map."; | ||
private _args: Array; | ||
@@ -17,6 +19,8 @@ private _cache: string[] = []; | ||
private _withDep = false; | ||
constructor (public dataSource: DataSource.IDataSource, public cfg: Config) { } | ||
public accept(args: Array): bool { | ||
return args[2] == this.shortcut; | ||
return (args[2] == this.shortcut || args[2] == this.shortcut + '*') && args[3]; | ||
} | ||
@@ -49,14 +53,28 @@ | ||
private save(name: string, version: string, key: string, content: string): void { | ||
if(!System.IO.DirectoryManager.handle.directoryExists(this.cfg.localPath)) { | ||
System.IO.DirectoryManager.handle.createDirectory(this.cfg.localPath); | ||
private normalizeGithubUrl(uri: UriParsedObject) { | ||
if (uri.host == 'github.com') { | ||
var parts = uri.directory.split('/'); | ||
var repo = /*parts[1] + '_' +*/ parts[2]; | ||
var ignore = '/' + parts[1] + '/' + parts[2] + '/' + parts[3] + '/' + parts[4]; | ||
uri.directory = '/' + repo + uri.directory.substr(ignore.length); | ||
} | ||
} | ||
var fileNameWithoutExtension = this.cfg.localPath + "/" + name + "-" + version; | ||
private save(url: string, name: string, version: string, key: string, content: string): void { | ||
var uri = Uri.parseUri(url); | ||
this.normalizeGithubUrl(uri); | ||
if(!System.IO.DirectoryManager.handle.directoryExists(this.cfg.localPath + uri.directory)) { | ||
System.IO.DirectoryManager.handle.createDirectory(this.cfg.localPath + uri.directory); | ||
} | ||
var fileNameWithoutExtension = this.cfg.localPath + uri.directory + name;// + "-" + version; | ||
this.saveFile(fileNameWithoutExtension + ".d.ts", content); | ||
System.Console.writeLine("└── " + name + "@" + version + " instaled."); | ||
System.Console.writeLine("└── " + name + "@" + version + " -> " + this.cfg.localPath + uri.directory); | ||
this.saveFile(fileNameWithoutExtension + ".d.key", key); | ||
System.Console.writeLine(" └── " + key + ".key"); | ||
System.Console.writeLine(""); | ||
} | ||
@@ -84,3 +102,3 @@ | ||
private install(targetLib: DataSource.Lib, targetVersion: string, libs: DataSource.Lib[]): void { | ||
if(this.cacheContains(targetLib.name + '@' + targetVersion)) | ||
if(this.cacheContains(targetLib.name/* + '@' + targetVersion*/)) | ||
return; | ||
@@ -94,6 +112,10 @@ | ||
System.Web.WebHandler.request.getUrl(version.url, (body) => { | ||
this.save(targetLib.name, version.version, version.key, body); | ||
this._cache.push(targetLib.name + '@' + version.version); | ||
this.save(version.url, targetLib.name, version.version, version.key, body); | ||
this._cache.push(targetLib.name/* + '@' + version.version*/); | ||
if (!this._withDep) | ||
return; | ||
var deps = (<DataSource.LibDep[]>targetLib.versions[0].dependencies) || []; | ||
for (var i = 0; i < deps.length; i++) { | ||
for (var i = 0; i < deps.length; i++) { | ||
var dep: DataSource.Lib = this.find(deps[i].name, libs); | ||
@@ -107,10 +129,25 @@ this.install(dep, dep.versions[0].version, libs); | ||
public exec(args: Array): void { | ||
this.dataSource.all((libs) => { | ||
System.Console.writeLine(""); | ||
var targetLib: DataSource.Lib = this.find(args[3], libs); | ||
var targetLib: DataSource.Lib; | ||
if(targetLib) | ||
if (args[2].indexOf('*') != -1) { | ||
this._withDep = true; | ||
} | ||
var tryInstall = (libs, lib: string) => { | ||
targetLib = this.find(lib, libs); | ||
if (targetLib) | ||
this.install(targetLib, targetLib.versions[0].version, libs); | ||
else | ||
System.Console.writeLine("Lib not found."); | ||
}; | ||
this.dataSource.all((libs) => { | ||
var index = 3; | ||
var lib = args[index]; | ||
while (lib) { | ||
tryInstall(libs, lib); | ||
index++; | ||
lib = args[index]; | ||
} | ||
}); | ||
@@ -117,0 +154,0 @@ } |
///<reference path='ICommand.ts'/> | ||
///<reference path='../System/IO/DirectoryManager.ts'/> | ||
///<reference path='../System/Console.ts'/> | ||
@@ -27,10 +28,16 @@ module Command { | ||
var libList: Lib[] = []; | ||
var files = System.IO.DirectoryManager.handle.getAllFiles(this.cfg.localPath); | ||
var libList: Lib[] = []; | ||
var files = []; | ||
try { | ||
files = System.IO.DirectoryManager.handle.getAllFiles(this.cfg.localPath, /.d\.key$/g, { recursive: true }); | ||
} catch (e) { | ||
System.Console.writeLine('Empty directory.'); | ||
} | ||
for (var i = 0; i < files.length; i++) { | ||
var file = files[i].substr(this.cfg.localPath.length + 1); | ||
if (file.substr(file.length - 5) == 'd.key') { | ||
var name = file.substr(0, file.lastIndexOf('-')); | ||
//if (file.substr(file.length - 5) == 'd.key') { | ||
var name = file.substr(0, file.lastIndexOf('.')); | ||
var version = file.substr(name.length + 1, file.length - name.length - 7); | ||
@@ -48,3 +55,3 @@ var key = System.IO.FileManager.handle.readFile(files[i]); | ||
System.Console.writeLine( | ||
' ' + (System.Environment.isNode() ? '\033[36m' : '') + name + (System.Environment.isNode() ? '\033[0m' : '') + ' - ' | ||
' ' + (System.Environment.isNode() ? '\033[36m' : '') + '> ' + name + ' d.ts' + (System.Environment.isNode() ? '\033[0m' : '') + ' - ' | ||
+ (System.Environment.isNode() ? '\033[33m' : '') + 'A new version is available!' + (System.Environment.isNode() ? '\033[0m' : '') ); | ||
@@ -59,6 +66,6 @@ flg = true; | ||
System.Console.writeLine( | ||
' ' + (System.Environment.isNode() ? '\033[36m' : '') + name + (System.Environment.isNode() ? '\033[0m' : '') + ' - ' | ||
' ' + (System.Environment.isNode() ? '\033[36m' : '') + '> ' + name + ' d.ts' + (System.Environment.isNode() ? '\033[0m' : '') + ' - ' | ||
+ 'Is the latest version.'); | ||
} | ||
} | ||
//} | ||
} | ||
@@ -65,0 +72,0 @@ |
@@ -1,3 +0,1 @@ | ||
///<reference path='System/Console.js'/> | ||
///<reference path='Config.ts'/> | ||
///<reference path='DataSource\IDataSource.ts'/> | ||
@@ -10,2 +8,4 @@ ///<reference path='Command\ICommand.ts'/> | ||
///<reference path='Command\UpdateCommand.ts'/> | ||
///<reference path='Command\CreateLocalConfigCommand.ts'/> | ||
///<reference path='Command\InfoCommand.ts'/> | ||
@@ -23,2 +23,4 @@ class CommandLineProcessor { | ||
this.commands.push(new Command.UpdateCommand(this.dataSource, this.cfg)); | ||
this.commands.push(new Command.CreateLocalConfigCommand()); | ||
this.commands.push(new Command.InfoCommand(this.dataSource)); | ||
} | ||
@@ -25,0 +27,0 @@ |
@@ -0,1 +1,5 @@ | ||
///<reference path='System/IO/FileManager.ts'/> | ||
declare var unescape; | ||
enum RepositoryTypeEnum { | ||
@@ -7,2 +11,4 @@ FileSystem, | ||
class Config { | ||
public static FILE_NAME = 'tsd-config.json'; | ||
public repositoryType: RepositoryTypeEnum; | ||
@@ -12,5 +18,21 @@ public uri: string; | ||
public load(cfgFile: string) { | ||
//... | ||
private static isNull(cfg: Object, key: string, alternativeValue: any): any { | ||
return cfg[key] ? cfg[key] : alternativeValue; | ||
} | ||
private static tryGetConfigFile() { | ||
var cfg = {}; | ||
try { | ||
cfg = JSON.parse(System.IO.FileManager.handle.readFile(Config.FILE_NAME)); | ||
} catch (e) { | ||
} | ||
return cfg; | ||
} | ||
public load() { | ||
var cfg = Config.tryGetConfigFile(); | ||
this.localPath = Config.isNull(cfg, 'localPath', 'd.ts'); | ||
this.repositoryType = Config.isNull(cfg, 'repositoryType', RepositoryTypeEnum.Web); | ||
this.uri = Config.isNull(cfg, 'uri', "https://github.com/Diullei/tsd/raw/master/deploy/repository.json"); | ||
} | ||
} |
@@ -636,3 +636,3 @@ /************************************************ | ||
resume(): void; | ||
setTimeout(timeout: number, callback?: Function); void; | ||
setTimeout(timeout: number, callback?: Function): void; | ||
setNoDelay(noDelay?: bool): void; | ||
@@ -639,0 +639,0 @@ setKeepAlive(enable?: bool, initialDelay?: number): void; |
@@ -14,4 +14,7 @@ ///<reference path='IDataSource.ts'/> | ||
public all(callback: (data: DataSource.Lib[]) => void ): void { | ||
this._fs.readFile(this.repositoryPath, function (err, data) { | ||
if (err) throw err; | ||
this._fs.readFile(this.repositoryPath, (err, data) => { | ||
if (err) { | ||
throw new Error("Error reading file repository file: " + err.message); | ||
//throw err; | ||
} | ||
callback(JSON.parse(data)); | ||
@@ -18,0 +21,0 @@ }); |
@@ -14,3 +14,13 @@ ///<reference path='../System/IO/IDirectoryHandle.ts'/> | ||
if (!this.directoryExists(path)) { | ||
this._fs.mkdirSync(path); | ||
path = path.replace('\\', '/'); | ||
var parts = path.split('/'); | ||
var dpath = ''; | ||
for (var i = 0; i < parts.length; i++) { | ||
dpath += parts[i] + '/'; | ||
if (!this.directoryExists(dpath)) { | ||
this._fs.mkdirSync(dpath); | ||
} | ||
} | ||
} | ||
@@ -23,3 +33,3 @@ } | ||
public getAllFiles(path, spec?, options?): string[] { | ||
public getAllFiles(path, spec?, options?): string[] { | ||
options = options || <{ recursive?: bool; }>{}; | ||
@@ -26,0 +36,0 @@ |
///<reference path='../System/Web/IWebRequest.ts'/> | ||
///<reference path='../System/Console.ts'/> | ||
module NodeJs { | ||
module NodeJs { | ||
export class WebRequest implements System.Web.IWebRequest { | ||
@@ -11,4 +12,7 @@ private _request: any = require('request'); | ||
System.Console.writeLine("tsd \033[32mhttp \033[35mGET\033[0m " + url); | ||
this._request(url, (error, response, body) => { | ||
if (error) | ||
System.Console.writeLine("tsd \033[31mERR!\033[0m \033[35mGET\033[0m " + url); | ||
this._request(url, (error, response, body) => { | ||
System.Console.writeLine("tsd \033[32mhttp \033[35m" + response.statusCode + "\033[0m " + url); | ||
@@ -15,0 +19,0 @@ if (!error && response.statusCode == 200) { |
@@ -10,4 +10,2 @@ ///<reference path='d.ts/node-0.8.d.ts'/> | ||
var VERSION = "0.2.1"; | ||
class Main { | ||
@@ -25,11 +23,3 @@ public init() { | ||
var cfg = new Config(); | ||
cfg.repositoryType = RepositoryTypeEnum.Web; | ||
cfg.uri = "https://github.com/Diullei/tsd/raw/master/deploy/repository.json"; | ||
//cfg.repositoryType = RepositoryTypeEnum.FileSystem; | ||
//cfg.uri = "repository.json"; | ||
cfg.localPath = "d.ts"; | ||
cfg.load(); | ||
var ds = DataSource.DataSourceFactory.factory(cfg); | ||
@@ -36,0 +26,0 @@ var cp = new CommandLineProcessor(ds, cfg); |
@@ -21,3 +21,13 @@ ///<reference path='../System/IO/IDirectoryHandle.ts'/> | ||
if (!this.directoryExists(path)) { | ||
this._fso.CreateFolder(path); | ||
path = path.replace('\\', '/'); | ||
var parts = path.split('/'); | ||
var dpath = ''; | ||
for (var i = 0; i < parts.length; i++) { | ||
dpath += parts[i] + '/'; | ||
if (!this.directoryExists(dpath)) { | ||
this._fso.CreateFolder(dpath); | ||
} | ||
} | ||
} | ||
@@ -24,0 +34,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
229261
51
3680
102