Template Upload
This commit is contained in:
7
node_modules/typings/dist/aliases.d.ts
generated
vendored
Normal file
7
node_modules/typings/dist/aliases.d.ts
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
export interface Aliases {
|
||||
[cmd: string]: {
|
||||
exec(args: string[], options: Object): any;
|
||||
help(): string;
|
||||
};
|
||||
}
|
||||
export declare const aliases: Aliases;
|
29
node_modules/typings/dist/aliases.js
generated
vendored
Normal file
29
node_modules/typings/dist/aliases.js
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
var bundle = require('./bin-bundle');
|
||||
var init = require('./bin-init');
|
||||
var uninstall = require('./bin-uninstall');
|
||||
var install = require('./bin-install');
|
||||
var list = require('./bin-list');
|
||||
var search = require('./bin-search');
|
||||
var open = require('./bin-open');
|
||||
var view = require('./bin-view');
|
||||
exports.aliases = {
|
||||
i: install,
|
||||
in: install,
|
||||
install: install,
|
||||
r: uninstall,
|
||||
rm: uninstall,
|
||||
remove: uninstall,
|
||||
uninstall: uninstall,
|
||||
init: init,
|
||||
ls: list,
|
||||
ll: list,
|
||||
la: list,
|
||||
list: list,
|
||||
bundle: bundle,
|
||||
search: search,
|
||||
open: open,
|
||||
view: view,
|
||||
info: view
|
||||
};
|
||||
//# sourceMappingURL=aliases.js.map
|
1
node_modules/typings/dist/aliases.js.map
generated
vendored
Normal file
1
node_modules/typings/dist/aliases.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"aliases.js","sourceRoot":"","sources":["../src/aliases.ts"],"names":[],"mappings":";AAAA,IAAY,MAAM,WAAM,cACxB,CAAC,CADqC;AACtC,IAAY,IAAI,WAAM,YACtB,CAAC,CADiC;AAClC,IAAY,SAAS,WAAM,iBAC3B,CAAC,CAD2C;AAC5C,IAAY,OAAO,WAAM,eACzB,CAAC,CADuC;AACxC,IAAY,IAAI,WAAM,YACtB,CAAC,CADiC;AAClC,IAAY,MAAM,WAAM,cACxB,CAAC,CADqC;AACtC,IAAY,IAAI,WAAM,YACtB,CAAC,CADiC;AAClC,IAAY,IAAI,WAAM,YAEtB,CAAC,CAFiC;AASrB,eAAO,GAAY;IAE9B,CAAC,EAAE,OAAO;IACV,EAAE,EAAE,OAAO;IACX,OAAO,EAAE,OAAO;IAEhB,CAAC,EAAE,SAAS;IACZ,EAAE,EAAE,SAAS;IACb,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,SAAS;IAEpB,IAAI,EAAE,IAAI;IAEV,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,IAAI;IAEV,MAAM,EAAE,MAAM;IAEd,MAAM,EAAE,MAAM;IAEd,IAAI,EAAE,IAAI;IAEV,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;CACX,CAAA"}
|
10
node_modules/typings/dist/bin-bundle.d.ts
generated
vendored
Normal file
10
node_modules/typings/dist/bin-bundle.d.ts
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
import Promise = require('any-promise');
|
||||
export declare function help(): string;
|
||||
export interface Options {
|
||||
cwd: string;
|
||||
name: string;
|
||||
out: string;
|
||||
ambient: boolean;
|
||||
verbose: boolean;
|
||||
}
|
||||
export declare function exec(args: string[], options: Options): Promise<any>;
|
12
node_modules/typings/dist/bin-bundle.js
generated
vendored
Normal file
12
node_modules/typings/dist/bin-bundle.js
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env node
|
||||
"use strict";
|
||||
var typings_core_1 = require('typings-core');
|
||||
function help() {
|
||||
return "\ntypings bundle --out <directory>\n\nOptions:\n [--out|-o] <directory> The bundled output directory\n [--name] <name> Bundle module name\n [--ambient|-A] Bundle as an ambient definition\n";
|
||||
}
|
||||
exports.help = help;
|
||||
function exec(args, options) {
|
||||
return typings_core_1.bundle(options);
|
||||
}
|
||||
exports.exec = exec;
|
||||
//# sourceMappingURL=bin-bundle.js.map
|
1
node_modules/typings/dist/bin-bundle.js.map
generated
vendored
Normal file
1
node_modules/typings/dist/bin-bundle.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"bin-bundle.js","sourceRoot":"","sources":["../src/bin-bundle.ts"],"names":[],"mappings":";;AAGA,6BAAuB,cAEvB,CAAC,CAFoC;AAErC;IACE,MAAM,CAAC,gNAOR,CAAA;AACD,CAAC;AATe,YAAI,OASnB,CAAA;AAUD,cAAsB,IAAc,EAAE,OAAgB;IACpD,MAAM,CAAC,qBAAM,CAAC,OAAO,CAAC,CAAA;AACxB,CAAC;AAFe,YAAI,OAEnB,CAAA"}
|
8
node_modules/typings/dist/bin-init.d.ts
generated
vendored
Normal file
8
node_modules/typings/dist/bin-init.d.ts
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
import Promise = require('any-promise');
|
||||
export declare function help(): string;
|
||||
export interface Options {
|
||||
verbose: boolean;
|
||||
cwd: string;
|
||||
upgrade: boolean;
|
||||
}
|
||||
export declare function exec(args: string[], options: Options): Promise<void>;
|
12
node_modules/typings/dist/bin-init.js
generated
vendored
Normal file
12
node_modules/typings/dist/bin-init.js
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env node
|
||||
"use strict";
|
||||
var typings_core_1 = require('typings-core');
|
||||
function help() {
|
||||
return "\ntypings init\n\nOptions:\n [--upgrade] Upgrade `tsd.json` to `typings.json`\n";
|
||||
}
|
||||
exports.help = help;
|
||||
function exec(args, options) {
|
||||
return typings_core_1.init(options);
|
||||
}
|
||||
exports.exec = exec;
|
||||
//# sourceMappingURL=bin-init.js.map
|
1
node_modules/typings/dist/bin-init.js.map
generated
vendored
Normal file
1
node_modules/typings/dist/bin-init.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"bin-init.js","sourceRoot":"","sources":["../src/bin-init.ts"],"names":[],"mappings":";;AAGA,6BAAqB,cAErB,CAAC,CAFkC;AAEnC;IACE,MAAM,CAAC,qFAKR,CAAA;AACD,CAAC;AAPe,YAAI,OAOnB,CAAA;AAQD,cAAsB,IAAc,EAAE,OAAgB;IACpD,MAAM,CAAC,mBAAI,CAAC,OAAO,CAAC,CAAA;AACtB,CAAC;AAFe,YAAI,OAEnB,CAAA"}
|
13
node_modules/typings/dist/bin-install.d.ts
generated
vendored
Normal file
13
node_modules/typings/dist/bin-install.d.ts
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
import Promise = require('any-promise');
|
||||
import { Emitter } from 'typings-core';
|
||||
export declare function help(): string;
|
||||
export interface Options {
|
||||
cwd: string;
|
||||
verbose: boolean;
|
||||
save: boolean;
|
||||
saveDev: boolean;
|
||||
savePeer: boolean;
|
||||
ambient: boolean;
|
||||
emitter: Emitter;
|
||||
}
|
||||
export declare function exec(args: string[], options: Options): Promise<void>;
|
45
node_modules/typings/dist/bin-install.js
generated
vendored
Normal file
45
node_modules/typings/dist/bin-install.js
generated
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
#!/usr/bin/env node
|
||||
"use strict";
|
||||
var Promise = require('any-promise');
|
||||
var typings_core_1 = require('typings-core');
|
||||
var listify = require('listify');
|
||||
var cli_1 = require('./support/cli');
|
||||
function help() {
|
||||
return "\ntypings install (with no arguments, in package directory)\ntypings install [<name>=]<location>\n\n <name> Module name of the installed definition\n <location> The location to read from (described below)\n\nValid Locations:\n [<source>!]<pkg>[@<version>][#<tag>]\n file:<path>\n github:<org>/<repo>[/<path>][#<commitish>]\n bitbucket:<org>/<repo>[/<path>][#<commitish>]\n npm:<pkg>[/<path>]\n bower:<pkg>[/<path>]\n http(s)://<host>/<path>\n\n <source> The registry mirror (E.g. \"npm\", \"bower\", \"env\", \"global\", \"dt\", ...)\n <path> Path to a `.d.ts` file or `typings.json`\n <host> A domain name (with optional port)\n <version> A semver range (E.g. \">=4.0\")\n <tag> The specific tag of a registry entry\n <commitish> A git commit, tag or branch\n\nOptions:\n [--save|-S] Persist to \"dependencies\"\n [--save-dev|-D] Persist to \"devDependencies\"\n [--save-peer|-P] Persist to \"peerDependencies\"\n [--ambient|-A] Install and persist as an ambient definition\n [-SA] Persist to \"ambientDependencies\"\n [-DA] Persist to \"ambientDevDependencies\"\n [--production] Install only production dependencies (omits dev dependencies)\n\nAliases: i, in\n";
|
||||
}
|
||||
exports.help = help;
|
||||
function exec(args, options) {
|
||||
var emitter = options.emitter;
|
||||
if (args.length === 0) {
|
||||
return typings_core_1.install(options)
|
||||
.then(function (result) {
|
||||
console.log(cli_1.archifyDependencyTree(result));
|
||||
});
|
||||
}
|
||||
var references = [];
|
||||
emitter.on('reference', function (_a) {
|
||||
var reference = _a.reference, name = _a.name;
|
||||
if (references.indexOf(reference) === -1) {
|
||||
cli_1.logInfo("Stripped reference \"" + reference + "\" during installation from \"" + name + "\"", 'reference');
|
||||
references.push(reference);
|
||||
}
|
||||
});
|
||||
emitter.on('ambientdependencies', function (_a) {
|
||||
var name = _a.name, dependencies = _a.dependencies;
|
||||
var deps = Object.keys(dependencies).map(function (x) { return JSON.stringify(x); });
|
||||
if (deps.length) {
|
||||
cli_1.logInfo("\"" + name + "\" lists ambient dependencies on " + listify(deps) + " and should be installed", 'ambientdependencies');
|
||||
}
|
||||
});
|
||||
return Promise.all(args.map(function (arg) {
|
||||
return typings_core_1.installDependencyRaw(arg, options);
|
||||
}))
|
||||
.then(function (results) {
|
||||
for (var _i = 0, results_1 = results; _i < results_1.length; _i++) {
|
||||
var result = results_1[_i];
|
||||
console.log(cli_1.archifyDependencyTree(result));
|
||||
}
|
||||
});
|
||||
}
|
||||
exports.exec = exec;
|
||||
//# sourceMappingURL=bin-install.js.map
|
1
node_modules/typings/dist/bin-install.js.map
generated
vendored
Normal file
1
node_modules/typings/dist/bin-install.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"bin-install.js","sourceRoot":"","sources":["../src/bin-install.ts"],"names":[],"mappings":";;AAEA,IAAO,OAAO,WAAW,aAAa,CAAC,CAAA;AACvC,6BAAuD,cACvD,CAAC,CADoE;AAC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,CAAA;QACH,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,UAAA,GAAG;QAC7B,MAAM,CAAC,mCAAoB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;IAC3C,CAAC,CAAC,CAAC;SACA,IAAI,CAAC,UAAA,OAAO;QACX,GAAG,CAAC,CAAiB,UAAO,EAAP,mBAAO,EAAP,qBAAO,EAAP,IAAO,CAAC;YAAxB,IAAM,MAAM,gBAAA;YACf,OAAO,CAAC,GAAG,CAAC,2BAAqB,CAAC,MAAM,CAAC,CAAC,CAAA;SAC3C;IACH,CAAC,CAAC,CAAA;AACN,CAAC;AA1Ce,YAAI,OA0CnB,CAAA"}
|
8
node_modules/typings/dist/bin-list.d.ts
generated
vendored
Normal file
8
node_modules/typings/dist/bin-list.d.ts
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
import Promise = require('any-promise');
|
||||
export declare function help(): string;
|
||||
export interface Options {
|
||||
cwd: string;
|
||||
dev: boolean;
|
||||
verbose: boolean;
|
||||
}
|
||||
export declare function exec(args: string[], options: Options): Promise<void>;
|
16
node_modules/typings/dist/bin-list.js
generated
vendored
Normal file
16
node_modules/typings/dist/bin-list.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env node
|
||||
"use strict";
|
||||
var cli_1 = require('./support/cli');
|
||||
var typings_core_1 = require('typings-core');
|
||||
function help() {
|
||||
return "\ntypings list\n\nOptions:\n [--production] List only production dependencies (omit dev dependencies)\n\nAliases: la, ll, ls\n";
|
||||
}
|
||||
exports.help = help;
|
||||
function exec(args, options) {
|
||||
return typings_core_1.list(options)
|
||||
.then(function (tree) {
|
||||
console.log(cli_1.archifyDependencyTree({ tree: tree }));
|
||||
});
|
||||
}
|
||||
exports.exec = exec;
|
||||
//# sourceMappingURL=bin-list.js.map
|
1
node_modules/typings/dist/bin-list.js.map
generated
vendored
Normal file
1
node_modules/typings/dist/bin-list.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"bin-list.js","sourceRoot":"","sources":["../src/bin-list.ts"],"names":[],"mappings":";;AAGA,oBAAsC,eACtC,CAAC,CADoD;AACrD,6BAAqB,cAErB,CAAC,CAFkC;AAEnC;IACE,MAAM,CAAC,iIAOR,CAAA;AACD,CAAC;AATe,YAAI,OASnB,CAAA;AAQD,cAAsB,IAAc,EAAE,OAAgB;IACpD,MAAM,CAAC,mBAAI,CAAC,OAAO,CAAC;SACjB,IAAI,CAAC,UAAU,IAAI;QAClB,OAAO,CAAC,GAAG,CAAC,2BAAqB,CAAC,EAAE,MAAA,IAAI,EAAE,CAAC,CAAC,CAAA;IAC9C,CAAC,CAAC,CAAA;AACN,CAAC;AALe,YAAI,OAKnB,CAAA"}
|
2
node_modules/typings/dist/bin-open.d.ts
generated
vendored
Normal file
2
node_modules/typings/dist/bin-open.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export declare function help(): string;
|
||||
export declare function exec(args: string[]): void;
|
16
node_modules/typings/dist/bin-open.js
generated
vendored
Normal file
16
node_modules/typings/dist/bin-open.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
var typings_core_1 = require('typings-core');
|
||||
var cli_1 = require('./support/cli');
|
||||
function help() {
|
||||
return "\ntypings open <location>\n\n <location> A known Typings location with scheme (see typings install -h)\n";
|
||||
}
|
||||
exports.help = help;
|
||||
function exec(args) {
|
||||
if (args.length === 0) {
|
||||
cli_1.logError(help());
|
||||
return;
|
||||
}
|
||||
console.log(typings_core_1.open(args[0]));
|
||||
}
|
||||
exports.exec = exec;
|
||||
//# sourceMappingURL=bin-open.js.map
|
1
node_modules/typings/dist/bin-open.js.map
generated
vendored
Normal file
1
node_modules/typings/dist/bin-open.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"bin-open.js","sourceRoot":"","sources":["../src/bin-open.ts"],"names":[],"mappings":";AAAA,6BAAqB,cACrB,CAAC,CADkC;AACnC,oBAAyB,eAEzB,CAAC,CAFuC;AAExC;IACE,MAAM,CAAC,4GAIR,CAAA;AACD,CAAC;AANe,YAAI,OAMnB,CAAA;AAED,cAAsB,IAAc;IAClC,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;QACtB,cAAQ,CAAC,IAAI,EAAE,CAAC,CAAA;QAChB,MAAM,CAAA;IACR,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,mBAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AAC5B,CAAC;AAPe,YAAI,OAOnB,CAAA"}
|
12
node_modules/typings/dist/bin-search.d.ts
generated
vendored
Normal file
12
node_modules/typings/dist/bin-search.d.ts
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
import Promise = require('any-promise');
|
||||
export declare function help(): string;
|
||||
export interface Options {
|
||||
name: string;
|
||||
source: string;
|
||||
offset: string;
|
||||
limit: string;
|
||||
order: string;
|
||||
sort: string;
|
||||
verbose: boolean;
|
||||
}
|
||||
export declare function exec(args: string[], options: Options): Promise<void>;
|
25
node_modules/typings/dist/bin-search.js
generated
vendored
Normal file
25
node_modules/typings/dist/bin-search.js
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env node
|
||||
"use strict";
|
||||
var columnify = require('columnify');
|
||||
var typings_core_1 = require('typings-core');
|
||||
function help() {
|
||||
return "\ntypings search [query]\n\nOptions:\n [--name] <name> Search for definitions by exact name (E.g. only \"react\")\n [--source] <source> The registry mirror (E.g. \"npm\", \"bower\", \"env\", \"global\", \"dt\", ...)\n [--offset] <x> Skip first \"x\" results (default: 0)\n [--limit] <x> Limit to \"x\" results (default: 20, max: 100)\n [--order] <order> Direction to sort results (default: \"asc\", enum: \"asc\" or \"desc\")\n [--sort] <column> Order results by a column (E.g. \"versions\", \"name\", ...)\n";
|
||||
}
|
||||
exports.help = help;
|
||||
function exec(args, options) {
|
||||
var query = args[0];
|
||||
var name = options.name, source = options.source, offset = options.offset, limit = options.limit, order = options.order, sort = options.sort;
|
||||
return typings_core_1.search({ name: name, source: source, query: query, offset: offset, limit: limit, order: order, sort: sort })
|
||||
.then(function (_a) {
|
||||
var results = _a.results, total = _a.total;
|
||||
if (total === 0) {
|
||||
console.log('No results found for search');
|
||||
return;
|
||||
}
|
||||
console.log("Viewing " + results.length + " of " + total);
|
||||
console.log('');
|
||||
console.log(columnify(results));
|
||||
});
|
||||
}
|
||||
exports.exec = exec;
|
||||
//# sourceMappingURL=bin-search.js.map
|
1
node_modules/typings/dist/bin-search.js.map
generated
vendored
Normal file
1
node_modules/typings/dist/bin-search.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"bin-search.js","sourceRoot":"","sources":["../src/bin-search.ts"],"names":[],"mappings":";;AAGA,IAAO,SAAS,WAAW,WAAW,CAAC,CAAA;AACvC,6BAAuB,cAEvB,CAAC,CAFoC;AAErC;IACE,MAAM,CAAC,uhBAUR,CAAA;AACD,CAAC;AAZe,YAAI,OAYnB,CAAA;AAYD,cAAsB,IAAc,EAAE,OAAgB;IACpD,IAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,uBAAI,EAAE,uBAAM,EAAE,uBAAM,EAAE,qBAAK,EAAE,qBAAK,EAAE,mBAAI,CAAY;IAE5D,MAAM,CAAC,qBAAM,CAAC,EAAE,MAAA,IAAI,EAAE,QAAA,MAAM,EAAE,OAAA,KAAK,EAAE,QAAA,MAAM,EAAE,OAAA,KAAK,EAAE,OAAA,KAAK,EAAE,MAAA,IAAI,EAAE,CAAC;SAC/D,IAAI,CAAC,UAAU,EAAkB;YAAhB,oBAAO,EAAE,gBAAK;QAC9B,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC;YAChB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAA;YAC1C,MAAM,CAAA;QACR,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,aAAW,OAAO,CAAC,MAAM,YAAO,KAAO,CAAC,CAAA;QACpD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;QACf,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;IACjC,CAAC,CAAC,CAAA;AACN,CAAC;AAfe,YAAI,OAenB,CAAA"}
|
12
node_modules/typings/dist/bin-uninstall.d.ts
generated
vendored
Normal file
12
node_modules/typings/dist/bin-uninstall.d.ts
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
import Promise = require('any-promise');
|
||||
export declare function help(): string;
|
||||
export interface Options {
|
||||
cwd: string;
|
||||
save: boolean;
|
||||
saveDev: boolean;
|
||||
savePeer: boolean;
|
||||
ambient: boolean;
|
||||
verbose: boolean;
|
||||
help: boolean;
|
||||
}
|
||||
export declare function exec(args: string[], options: Options): Promise<void[]>;
|
20
node_modules/typings/dist/bin-uninstall.js
generated
vendored
Normal file
20
node_modules/typings/dist/bin-uninstall.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env node
|
||||
"use strict";
|
||||
var Promise = require('any-promise');
|
||||
var typings_core_1 = require('typings-core');
|
||||
var cli_1 = require('./support/cli');
|
||||
function help() {
|
||||
return "\ntypings uninstall <name> [--save|--save-dev|--save-peer] [--ambient]\n\nOptions:\n [--save|-S] Remove from \"dependencies\"\n [--save-dev|-D] Remove from \"devDependencies\"\n [--save-peer|-P] Remove from \"peerDependencies\"\n [--ambient|-A] Remove from the ambient version of dependencies\n [-SA] Remove from \"ambientDependencies\"\n [-DA] Remove from \"ambientDevDependencies\"\n\nAliases: r, rm, remove, un\n";
|
||||
}
|
||||
exports.help = help;
|
||||
function exec(args, options) {
|
||||
if (args.length === 0) {
|
||||
cli_1.logError(help());
|
||||
return;
|
||||
}
|
||||
return Promise.all(args.map(function (name) {
|
||||
return typings_core_1.uninstallDependency(name, options);
|
||||
}));
|
||||
}
|
||||
exports.exec = exec;
|
||||
//# sourceMappingURL=bin-uninstall.js.map
|
1
node_modules/typings/dist/bin-uninstall.js.map
generated
vendored
Normal file
1
node_modules/typings/dist/bin-uninstall.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"bin-uninstall.js","sourceRoot":"","sources":["../src/bin-uninstall.ts"],"names":[],"mappings":";;AAEA,IAAO,OAAO,WAAW,aAAa,CAAC,CAAA;AACvC,6BAAoC,cACpC,CAAC,CADiD;AAClD,oBAAyB,eAEzB,CAAC,CAFuC;AAExC;IACE,MAAM,CAAC,2cAYR,CAAA;AACD,CAAC;AAde,YAAI,OAcnB,CAAA;AAYD,cAAsB,IAAc,EAAE,OAAgB;IACpD,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;QACtB,cAAQ,CAAC,IAAI,EAAE,CAAC,CAAA;QAChB,MAAM,CAAA;IACR,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,UAAA,IAAI;QAC9B,MAAM,CAAC,kCAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC3C,CAAC,CAAC,CAAC,CAAA;AACL,CAAC;AATe,YAAI,OASnB,CAAA"}
|
7
node_modules/typings/dist/bin-view.d.ts
generated
vendored
Normal file
7
node_modules/typings/dist/bin-view.d.ts
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
import Promise = require('any-promise');
|
||||
export declare function help(): string;
|
||||
export interface Options {
|
||||
ambient: boolean;
|
||||
versions: boolean;
|
||||
}
|
||||
export declare function exec(args: string[], options: Options): Promise<void>;
|
22
node_modules/typings/dist/bin-view.js
generated
vendored
Normal file
22
node_modules/typings/dist/bin-view.js
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
var columnify = require('columnify');
|
||||
var typings_core_1 = require('typings-core');
|
||||
var cli_1 = require('./support/cli');
|
||||
function help() {
|
||||
return "\ntypings view <pkg>\n\n <pkg> A registry expression like `[<source>!]<pkg>`\n\nOptions:\n [--versions] List all package versions\n [--ambient|-A] View `<pkg>` from the default ambient source\n\nAliases: info\n";
|
||||
}
|
||||
exports.help = help;
|
||||
function exec(args, options) {
|
||||
if (args.length === 0) {
|
||||
cli_1.logError(help());
|
||||
return;
|
||||
}
|
||||
if (options.versions) {
|
||||
return typings_core_1.viewVersions(args[0], options)
|
||||
.then(function (versions) { return console.log(columnify(versions)); });
|
||||
}
|
||||
return typings_core_1.viewEntry(args[0], options)
|
||||
.then(function (entry) { return console.log(columnify(entry)); });
|
||||
}
|
||||
exports.exec = exec;
|
||||
//# sourceMappingURL=bin-view.js.map
|
1
node_modules/typings/dist/bin-view.js.map
generated
vendored
Normal file
1
node_modules/typings/dist/bin-view.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"bin-view.js","sourceRoot":"","sources":["../src/bin-view.ts"],"names":[],"mappings":";AACA,IAAO,SAAS,WAAW,WAAW,CAAC,CAAA;AACvC,6BAAwC,cACxC,CAAC,CADqD;AACtD,oBAAyB,eAEzB,CAAC,CAFuC;AAExC;IACE,MAAM,CAAC,4NAUR,CAAA;AACD,CAAC;AAZe,YAAI,OAYnB,CAAA;AAOD,cAAsB,IAAc,EAAE,OAAgB;IACpD,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;QACtB,cAAQ,CAAC,IAAI,EAAE,CAAC,CAAA;QAChB,MAAM,CAAA;IACR,CAAC;IAED,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QACrB,MAAM,CAAC,2BAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC;aAClC,IAAI,CAAC,UAAA,QAAQ,IAAI,OAAA,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,EAAhC,CAAgC,CAAC,CAAA;IACvD,CAAC;IAED,MAAM,CAAC,wBAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC;SAC/B,IAAI,CAAC,UAAA,KAAK,IAAI,OAAA,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAA7B,CAA6B,CAAC,CAAA;AACjD,CAAC;AAbe,YAAI,OAanB,CAAA"}
|
0
node_modules/typings/dist/bin.d.ts
generated
vendored
Normal file
0
node_modules/typings/dist/bin.d.ts
generated
vendored
Normal file
80
node_modules/typings/dist/bin.js
generated
vendored
Normal file
80
node_modules/typings/dist/bin.js
generated
vendored
Normal file
@ -0,0 +1,80 @@
|
||||
#!/usr/bin/env node
|
||||
"use strict";
|
||||
var minimist = require('minimist');
|
||||
var wordwrap = require('wordwrap');
|
||||
var path_1 = require('path');
|
||||
var updateNotifier = require('update-notifier');
|
||||
var extend = require('xtend');
|
||||
var events_1 = require('events');
|
||||
var cli_1 = require('./support/cli');
|
||||
var aliases_1 = require('./aliases');
|
||||
var pkg = require('../package.json');
|
||||
var IS_PRODUCTION = process.env.NODE_ENV === 'production';
|
||||
var argv = minimist(process.argv.slice(2), {
|
||||
boolean: ['version', 'save', 'saveDev', 'savePeer', 'ambient', 'verbose', 'dev', 'production'],
|
||||
string: ['cwd', 'out', 'name'],
|
||||
alias: {
|
||||
ambient: ['A'],
|
||||
version: ['v'],
|
||||
save: ['S'],
|
||||
saveDev: ['save-dev', 'D'],
|
||||
savePeer: ['savePeer', 'P'],
|
||||
verbose: ['V'],
|
||||
out: ['o'],
|
||||
help: ['h']
|
||||
}
|
||||
});
|
||||
var cwd = process.cwd();
|
||||
var emitter = new events_1.EventEmitter();
|
||||
var isDev = IS_PRODUCTION ? argv.dev : !argv.production;
|
||||
var args = extend({ cwd: cwd, emitter: emitter }, argv, { dev: isDev, production: !isDev });
|
||||
updateNotifier({ pkg: pkg }).notify();
|
||||
exec(args);
|
||||
emitter.on('enoent', function (_a) {
|
||||
var path = _a.path;
|
||||
cli_1.logWarning("Path \"" + path + "\" is missing", 'enoent');
|
||||
});
|
||||
emitter.on('hastypings', function (_a) {
|
||||
var name = _a.name, typings = _a.typings;
|
||||
cli_1.logWarning(("Typings for \"" + name + "\" already exist in \"" + path_1.relative(cwd, typings) + "\". You should ") +
|
||||
"let TypeScript resolve the packaged typings and uninstall the copy installed by Typings", 'hastypings');
|
||||
});
|
||||
emitter.on('postmessage', function (_a) {
|
||||
var message = _a.message, name = _a.name;
|
||||
cli_1.logInfo(name + ": " + message, 'postmessage');
|
||||
});
|
||||
emitter.on('badlocation', function (_a) {
|
||||
var raw = _a.raw;
|
||||
cli_1.logWarning("\"" + raw + "\" is a mutable location and may change, consider specifying a commit hash", 'badlocation');
|
||||
});
|
||||
emitter.on('deprecated', function (_a) {
|
||||
var date = _a.date, raw = _a.raw, parent = _a.parent;
|
||||
if (parent == null) {
|
||||
cli_1.logWarning(date.toLocaleString() + ": \"" + raw + "\" is deprecated (outdated or removed)", 'deprecated');
|
||||
}
|
||||
else if (parent.raw) {
|
||||
cli_1.logWarning(date.toLocaleString() + ": \"" + raw + "\" has been deprecated (used by \"" + parent.raw + "\")", 'deprecated');
|
||||
}
|
||||
else {
|
||||
cli_1.logWarning(date.toLocaleString() + ": \"" + raw + "\" has been deprecated", 'deprecated');
|
||||
}
|
||||
});
|
||||
function exec(options) {
|
||||
if (options._.length) {
|
||||
var command = aliases_1.aliases[options._[0]];
|
||||
var args_1 = options._.slice(1);
|
||||
if (command != null) {
|
||||
if (options.help) {
|
||||
return console.log(command.help());
|
||||
}
|
||||
return cli_1.handle(command.exec(args_1, options), options);
|
||||
}
|
||||
}
|
||||
else if (options.version) {
|
||||
console.log(pkg.version);
|
||||
return;
|
||||
}
|
||||
var wrap = wordwrap(4, 80);
|
||||
console.log("\nUsage: typings <command>\n\nCommands:\n" + wrap(Object.keys(aliases_1.aliases).sort().join(', ')) + "\n\ntypings <command> -h Get help for <command>\ntypings <command> -V Enable verbose logging\n\ntypings --version Print the CLI version\n\ntypings@" + pkg.version + " " + path_1.join(__dirname, '..') + "\n");
|
||||
}
|
||||
//# sourceMappingURL=bin.js.map
|
1
node_modules/typings/dist/bin.js.map
generated
vendored
Normal file
1
node_modules/typings/dist/bin.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";;AAEA,IAAO,QAAQ,WAAW,UAAU,CAAC,CAAA;AACrC,IAAO,QAAQ,WAAW,UAAU,CAAC,CAAA;AACrC,qBAA+B,MAC/B,CAAC,CADoC;AACrC,IAAO,cAAc,WAAW,iBAAiB,CAAC,CAAA;AAClD,IAAO,MAAM,WAAW,OAAO,CAAC,CAAA;AAChC,uBAA6B,QAC7B,CAAC,CADoC;AACrC,oBAA4C,eAC5C,CAAC,CAD0D;AAE3D,wBAAwB,WAExB,CAAC,CAFkC;AAEnC,IAAM,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;AACtC,IAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAA;AAoB3D,IAAM,IAAI,GAAG,QAAQ,CAAO,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACjD,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,CAAC;IAC9F,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC;IAC9B,KAAK,EAAE;QACL,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,IAAI,EAAE,CAAC,GAAG,CAAC;QACX,OAAO,EAAE,CAAC,UAAU,EAAE,GAAG,CAAC;QAC1B,QAAQ,EAAE,CAAC,UAAU,EAAE,GAAG,CAAC;QAC3B,OAAO,EAAE,CAAC,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H,CAAC;IAAC,IAAI,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;QAC3B,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;QACxB,MAAM,CAAA;IACR,CAAC;IAED,IAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IAE5B,OAAO,CAAC,GAAG,CAAC,8CAIZ,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAO,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,oKAOpC,GAAG,CAAC,OAAO,SAAI,WAAI,CAAC,SAAS,EAAE,IAAI,CAAC,OAC7C,CAAC,CAAA;AACF,CAAC"}
|
16
node_modules/typings/dist/support/cli.d.ts
generated
vendored
Normal file
16
node_modules/typings/dist/support/cli.d.ts
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
import Promise = require('any-promise');
|
||||
import { DependencyTree } from 'typings-core';
|
||||
export interface PrintOptions {
|
||||
verbose: boolean;
|
||||
}
|
||||
export declare function log(message: string): void;
|
||||
export declare function logInfo(message: string, prefix?: string): void;
|
||||
export declare function logWarning(message: string, prefix?: string): void;
|
||||
export declare function logError(message: string, prefix?: string): void;
|
||||
export declare function handle(promise: any, options: PrintOptions): Promise<any>;
|
||||
export declare function handleError(error: Error, options: PrintOptions): any;
|
||||
export interface ArchifyOptions {
|
||||
name?: string;
|
||||
tree: DependencyTree;
|
||||
}
|
||||
export declare function archifyDependencyTree(options: ArchifyOptions): string;
|
99
node_modules/typings/dist/support/cli.js
generated
vendored
Normal file
99
node_modules/typings/dist/support/cli.js
generated
vendored
Normal file
@ -0,0 +1,99 @@
|
||||
"use strict";
|
||||
var chalk = require('chalk');
|
||||
var Promise = require('any-promise');
|
||||
var archy = require('archy');
|
||||
var os = require('os');
|
||||
var pkg = require('../../package.json');
|
||||
function log(message) {
|
||||
console.error(message);
|
||||
}
|
||||
exports.log = log;
|
||||
function formatLine(color, type, line, prefix) {
|
||||
return chalk.bgBlack.white('typings') + " " + color(type) + " " + (prefix ? chalk.magenta(prefix + " ") : '') + line;
|
||||
}
|
||||
function logInfo(message, prefix) {
|
||||
var output = message.split(/\r?\n/g).map(function (line) {
|
||||
return formatLine(chalk.bgBlack.cyan, 'INFO', line, prefix);
|
||||
}).join('\n');
|
||||
log(output);
|
||||
}
|
||||
exports.logInfo = logInfo;
|
||||
function logWarning(message, prefix) {
|
||||
var output = message.split(/\r?\n/g).map(function (line) {
|
||||
return formatLine(chalk.bgYellow.black, 'WARN', line, prefix);
|
||||
}).join('\n');
|
||||
log(output);
|
||||
}
|
||||
exports.logWarning = logWarning;
|
||||
function logError(message, prefix) {
|
||||
var output = message.split(/\r?\n/g).map(function (line) {
|
||||
return formatLine(chalk.bgBlack.red, 'ERR!', line, prefix);
|
||||
}).join('\n');
|
||||
log(output);
|
||||
}
|
||||
exports.logError = logError;
|
||||
function handle(promise, options) {
|
||||
return Promise.resolve(promise).catch(function (err) { return handleError(err, options); });
|
||||
}
|
||||
exports.handle = handle;
|
||||
function handleError(error, options) {
|
||||
var cause = error;
|
||||
logError(error.message, 'message');
|
||||
while (cause = cause.cause) {
|
||||
logError(cause.message, 'caused by');
|
||||
}
|
||||
if (options.verbose && error.stack) {
|
||||
log('');
|
||||
logError(error.stack, 'stack');
|
||||
}
|
||||
log('');
|
||||
logError(process.cwd(), 'cwd');
|
||||
logError(os.type() + " " + os.release(), 'system');
|
||||
logError(process.argv.map(JSON.stringify).join(' '), 'command');
|
||||
logError(process.version, 'node -v');
|
||||
logError(pkg.version, "typings -v");
|
||||
if (error.code) {
|
||||
logError(error.code, 'code');
|
||||
}
|
||||
log('');
|
||||
logError('If you need help, you may report this error at:');
|
||||
logError(" <https://github.com/typings/typings/issues>");
|
||||
process.exit(1);
|
||||
}
|
||||
exports.handleError = handleError;
|
||||
function toDependencyName(name, node, suffix) {
|
||||
var fullname = node.version ? name + "@" + node.version : name;
|
||||
return suffix ? fullname + " " + suffix : fullname;
|
||||
}
|
||||
function archifyDependencyTree(options) {
|
||||
var result = {
|
||||
label: options.name ? toDependencyName(options.name, options.tree) : '',
|
||||
nodes: []
|
||||
};
|
||||
function children(nodes, dependencies, suffix) {
|
||||
for (var _i = 0, _a = Object.keys(dependencies).sort(); _i < _a.length; _i++) {
|
||||
var name_1 = _a[_i];
|
||||
var tree = dependencies[name_1];
|
||||
nodes.push(traverse({
|
||||
label: toDependencyName(name_1, tree, suffix),
|
||||
nodes: []
|
||||
}, tree));
|
||||
}
|
||||
}
|
||||
function traverse(result, tree) {
|
||||
var nodes = result.nodes;
|
||||
children(nodes, tree.dependencies);
|
||||
children(nodes, tree.devDependencies, chalk.gray('(dev)'));
|
||||
children(nodes, tree.peerDependencies, chalk.gray('(peer)'));
|
||||
children(nodes, tree.ambientDependencies, chalk.gray('(ambient)'));
|
||||
children(nodes, tree.ambientDevDependencies, chalk.gray('(ambient dev)'));
|
||||
return result;
|
||||
}
|
||||
var archyTree = traverse(result, options.tree);
|
||||
if (archyTree.nodes.length === 0) {
|
||||
archyTree.nodes.push(chalk.gray('(No dependencies)'));
|
||||
}
|
||||
return archy(archyTree);
|
||||
}
|
||||
exports.archifyDependencyTree = archifyDependencyTree;
|
||||
//# sourceMappingURL=cli.js.map
|
1
node_modules/typings/dist/support/cli.js.map
generated
vendored
Normal file
1
node_modules/typings/dist/support/cli.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/support/cli.ts"],"names":[],"mappings":";AAAA,IAAO,KAAK,WAAW,OAAO,CAAC,CAAA;AAC/B,IAAO,OAAO,WAAW,aAAa,CAAC,CAAA;AACvC,IAAO,KAAK,WAAW,OAAO,CAAC,CAAA;AAC/B,IAAY,EAAE,WAAM,IACpB,CAAC,CADuB;AAGxB,IAAM,GAAG,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAA;AAYzC,aAAqB,OAAe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M,CAAC;gBAC3C,KAAK,EAAE,EAAE;aACV,EACD,IAAI,CACL,CAAC,CAAA;SACH;IACH,CAAC;IAGD,kBAAmB,MAAkB,EAAE,IAAoB;QACjD,wBAAK,CAAW;QAExB,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,CAAA;QAClC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAA;QAC1D,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAA;QAC5D,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAA;QAClE,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,sBAAsB,EAAE,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAA;QAEzE,MAAM,CAAC,MAAM,CAAA;IACf,CAAC;IAED,IAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IAGhD,EAAE,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;QACjC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAA;IACvD,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;AACzB,CAAC;AA1Ce,6BAAqB,wBA0CpC,CAAA"}
|
1
node_modules/typings/dist/typings.d.ts
generated
vendored
Normal file
1
node_modules/typings/dist/typings.d.ts
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export * from 'typings-core';
|
6
node_modules/typings/dist/typings.js
generated
vendored
Normal file
6
node_modules/typings/dist/typings.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
__export(require('typings-core'));
|
||||
//# sourceMappingURL=typings.js.map
|
1
node_modules/typings/dist/typings.js.map
generated
vendored
Normal file
1
node_modules/typings/dist/typings.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"typings.js","sourceRoot":"","sources":["../src/typings.ts"],"names":[],"mappings":";;;;AAAA,iBAAc,cACd,CAAC,EAD2B"}
|
Reference in New Issue
Block a user