now using typings that resolve with modules

This commit is contained in:
Philipp Kunz 2016-05-23 08:15:47 +02:00
parent 66e9d29667
commit 2599753877
32 changed files with 45 additions and 34 deletions

1
dist/index.d.ts vendored
View File

@ -1,3 +1,4 @@
import "typings-global";
import * as SmartfileChecks from "./smartfile.checks"; import * as SmartfileChecks from "./smartfile.checks";
import * as SmartfileFsaction from "./smartfile.fsaction"; import * as SmartfileFsaction from "./smartfile.fsaction";
import * as SmartfileGet from "./smartfile.get"; import * as SmartfileGet from "./smartfile.get";

4
dist/index.js vendored
View File

@ -1,5 +1,5 @@
/// <reference path="./typings/index.d.ts" />
"use strict"; "use strict";
require("typings-global");
var plugins = require("./smartfile.plugins"); var plugins = require("./smartfile.plugins");
var SmartfileChecks = require("./smartfile.checks"); var SmartfileChecks = require("./smartfile.checks");
var SmartfileFsaction = require("./smartfile.fsaction"); var SmartfileFsaction = require("./smartfile.fsaction");
@ -18,4 +18,4 @@ exports.memory = SmartfileMemory;
exports.remote = SmartfileRemote; exports.remote = SmartfileRemote;
exports.requireReload = SmartfileLocal.requireReload; exports.requireReload = SmartfileLocal.requireReload;
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDZDQUE2Qzs7QUFFN0MsSUFBWSxPQUFPLFdBQU0scUJBQXFCLENBQUMsQ0FBQTtBQUMvQyxJQUFZLGVBQWUsV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBQ3RELElBQVksaUJBQWlCLFdBQU0sc0JBQXNCLENBQUMsQ0FBQTtBQUMxRCxJQUFZLFlBQVksV0FBTSxpQkFBaUIsQ0FBQyxDQUFBO0FBQ2hELElBQVksY0FBYyxXQUFNLG1CQUFtQixDQUFDLENBQUE7QUFDcEQsSUFBWSxlQUFlLFdBQU0sb0JBQW9CLENBQUMsQ0FBQTtBQUN0RCxJQUFZLGVBQWUsV0FBTSx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ZS5jbGFzc2VzLnNtYXJ0ZmlsZVwiO1xyXG5cclxuZXhwb3J0IGxldCBmc2FjdGlvbiA9IFNtYXJ0ZmlsZUZzYWN0aW9uO1xyXG5leHBvcnQgbGV0IGZzID0gcGx1Z2lucy5mcztcclxuZXhwb3J0IGxldCBjaGVja3MgPSBTbWFydGZpbGVDaGVja3M7XHJcbmV4cG9ydCBsZXQgZ2V0ID0gU21hcnRmaWxlR2V0O1xyXG5leHBvcnQgbGV0IGxvY2FsID0gU21hcnRmaWxlTG9jYWw7XHJcbmV4cG9ydCBsZXQgbWVtb3J5ID0gU21hcnRmaWxlTWVtb3J5O1xyXG5leHBvcnQgbGV0IHJlbW90ZSA9IFNtYXJ0ZmlsZVJlbW90ZTtcclxuZXhwb3J0IGxldCByZXF1aXJlUmVsb2FkID0gU21hcnRmaWxlTG9jYWwucmVxdWlyZVJlbG9hZDtcclxuIl19

View File

@ -1,3 +1,4 @@
import "typings-global";
/** /**
* *
* @param filePath * @param filePath

View File

@ -1,5 +1,5 @@
"use strict"; "use strict";
/// <reference path="./typings/index.d.ts" /> require("typings-global");
var plugins = require("./smartfile.plugins"); var plugins = require("./smartfile.plugins");
/** /**
* *
@ -36,4 +36,4 @@ exports.isFile = function (pathArg) {
return plugins.fs.statSync(pathArg).isFile(); return plugins.fs.statSync(pathArg).isFile();
}; };
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZmlsZS5jaGVja3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDZDQUE2QztBQUM3QyxJQUFPLE9BQU8sV0FBVyxxQkFBcUIsQ0FBQyxDQUFDO0FBRWhEOzs7O0dBSUc7QUFDUSxzQkFBYyxHQUFHLFVBQVMsUUFBUTtJQUN6QyxJQUFJLGNBQWMsR0FBVyxLQUFLLENBQUM7SUFDbkMsSUFBSSxDQUFDO1FBQ0QsT0FBTyxDQUFDLEVBQUUsQ0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BmaWxlRXhpc3RzQm9vbCA9IHRydWVcclxuICAgIH1cclxuICAgIGNhdGNoKGVycil7XHJcbiAgICAgICAgZmlsZUV4aXN0c0Jvb2wgPSBmYWxzZTtcclxuICAgIH1cclxuICAgIHJldHVybiBmaWxlRXhpc3RzQm9vbDtcclxufTtcclxuXHJcbi8qKlxyXG4gKlxyXG4gKiBAcGFyYW0gZmlsZVBhdGhcclxuICogQHJldHVybnMge2FueX1cclxuICovXHJcbmV4cG9ydCBsZXQgZmlsZUV4aXN0cyA9IGZ1bmN0aW9uKGZpbGVQYXRoKXtcclxuICAgIGxldCBkb25lID0gcGx1Z2lucy5xLmRlZmVyKCk7XHJcbiAgICBwbHVnaW5zLmZzLmFjY2VzcyhmaWxlUGF0aCwgcGx1Z2lucy5mcy5SX09LLCBmdW5jdGlvbiAoZXJyKSB7XHJcbiAgICAgICAgZXJyID8gZG9uZS5yZWplY3QoKSA6IGRvbmUucmVzb2x2ZSgpO1xyXG4gICAgfSk7XHJcbiAgICByZXR1cm4gZG9uZS5wcm9taXNlO1xyXG59O1xyXG5cclxuZXhwb3J0IGxldCBpc0RpcmVjdG9yeSA9IGZ1bmN0aW9uKHBhdGhBcmcpOmJvb2xlYW57XHJcbiAgICByZXR1cm4gcGx1Z2lucy5mcy5zdGF0U3luYyhwYXRoQXJnKS5pc0RpcmVjdG9yeSgpO1xyXG59O1xyXG5cclxuZXhwb3J0IGxldCBpc0ZpbGUgPSBmdW5jdGlvbihwYXRoQXJnKTpib29sZWFue1xyXG4gICAgcmV0dXJuIHBsdWdpbnMuZnMuc3RhdFN5bmMocGF0aEFyZykuaXNGaWxlKCk7XHJcbn07XHJcbiJdfQ==

View File

@ -1,3 +1,4 @@
import "typings-global";
export declare let copy: (fromArg: string, toArg: string) => any; export declare let copy: (fromArg: string, toArg: string) => any;
export declare let copySync: (fromArg: string, toArg: string) => boolean; export declare let copySync: (fromArg: string, toArg: string) => boolean;
export declare let remove: (pathArg: string) => any; export declare let remove: (pathArg: string) => any;

View File

@ -1,5 +1,5 @@
/// <reference path="./typings/index.d.ts" />
"use strict"; "use strict";
require("typings-global");
var plugins = require("./smartfile.plugins"); var plugins = require("./smartfile.plugins");
exports.copy = function (fromArg, toArg) { exports.copy = function (fromArg, toArg) {
var done = plugins.q.defer(); var done = plugins.q.defer();
@ -24,4 +24,4 @@ exports.removeSync = function (pathArg) {
return true; return true;
}; };
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZmlsZS5mc2FjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw2Q0FBNkM7O0FBRTdDLElBQU8sT0FBTyxXQUFXLHFCQUFxQixDQUFDLENBQUM7QUFHckMsWUFBSSxHQUFHLFVBQVMsT0FBYyxFQUFFLEtBQVk7SUFDbkQsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUM3QixPQUFPLENBQUMsRUFBRSxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUMsS0FBSyxFQUFDLEVBQUUsRUFBQztRQUM3QixJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7SUFDbkIsQ0FBQyxDQUFDLENBQUM7SUFDSCxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQztBQUN4QixDQUFDLENBQUM7QUFFUyxnQkFBUSxHQUFHLFVBQVMsT0FBYyxFQUFDLEtBQVk7SUFDdEQsT0FBTyxDQUFDLEVBQUUsQ0FBQyxRQUFRLENBQUMsT0FBTyxFQUFDLEtBQUssQ0FBQyxDQUFDO0lBQ25DLE1BQU0sQ0FBQyxJQUFJLENBQUM7QUFDaEIsQ0FBQyxDQUFDO0FBRVMsY0FBTSxHQUFHLFVBQVMsT0FBYztJQUN2QyxJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lB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y5xLmRlZmVyKCk7XHJcbiAgICBwbHVnaW5zLmZzLmNvcHkoZnJvbUFyZyx0b0FyZyx7fSxmdW5jdGlvbigpe1xyXG4gICAgICAgIGRvbmUucmVzb2x2ZSgpO1xyXG4gICAgfSk7XHJcbiAgICByZXR1cm4gZG9uZS5wcm9taXNlO1xyXG59O1xyXG5cclxuZXhwb3J0IGxldCBjb3B5U3luYyA9IGZ1bmN0aW9uKGZyb21Bcmc6c3RyaW5nLHRvQXJnOnN0cmluZyk6Ym9vbGVhbntcclxuICAgIHBsdWdpbnMuZnMuY29weVN5bmMoZnJvbUFyZyx0b0FyZyk7XHJcbiAgICByZXR1cm4gdHJ1ZTtcclxufTtcclxuXHJcbmV4cG9ydCBsZXQgcmVtb3ZlID0gZnVuY3Rpb24ocGF0aEFyZzpzdHJpbmcpe1xyXG4gICAgdmFyIGRvbmUgPSBwbHVnaW5zLnEuZGVmZXIoKTtcclxuICAgIHBsdWdpbnMuZnMucmVtb3ZlKHBhdGhBcmcsZnVuY3Rpb24oKXtcclxuICAgICAgICBkb25lLnJlc29sdmUoKTtcclxuICAgIH0pO1xyXG4gICAgcmV0dXJuIGRvbmUucHJvbWlzZTtcclxufTtcclxuXHJcbmV4cG9ydCBsZXQgcmVtb3ZlU3luYyA9IGZ1bmN0aW9uKHBhdGhBcmc6c3RyaW5nKTpib29sZWFue1xyXG4gICAgcGx1Z2lucy5mcy5yZW1vdmVTeW5jKHBhdGhBcmcpO1xyXG4gICAgcmV0dXJuIHRydWU7XHJcbn07Il19

View File

@ -1,3 +1,4 @@
import "typings-global";
export declare let filetype: (pathArg: string) => string; export declare let filetype: (pathArg: string) => string;
export declare let foldersSync: (pathArg: any) => any; export declare let foldersSync: (pathArg: any) => any;
export declare let folders: (pathArg: string) => any; export declare let folders: (pathArg: string) => any;

View File

@ -1,5 +1,5 @@
"use strict"; "use strict";
/// <reference path="./typings/index.d.ts" /> require("typings-global");
var plugins = require("./smartfile.plugins"); var plugins = require("./smartfile.plugins");
exports.filetype = function (pathArg) { exports.filetype = function (pathArg) {
var extName = plugins.path.extname(pathArg); var extName = plugins.path.extname(pathArg);
@ -20,4 +20,4 @@ exports.folders = function (pathArg) {
return done.promise; return done.promise;
}; };
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZmlsZS5nZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDZDQUE2QztBQUM3QyxJQUFPLE9BQU8sV0FBVyxxQkFBcUIsQ0FBQyxDQUFDO0FBRXJDLGdCQUFRLEdBQUcsVUFBUyxPQUFjO0lBQ3pDLElBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQzVDLElBQUksUUFBUSxHQUFHLE9BQU8sQ0FBQyxPQUFPLENBQUMsWUFBWSxFQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsd0JBQXdCO0lBQzNFLE1BQU0sQ0FBQyxRQUFRLENBQUM7QUFDcEIsQ0FBQyxDQUFDO0FBRVMsbUJBQVcsR0FBRyxVQUFTLE9BQU87SUFDckMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxFQUFFLENBQUMsV0FBVyxDQUFDLE9BQU8sQ0FBQyxDQUFDLE1BQU0sQ0FBQyxVQUFTLElBQUk7UUFDdkQsTUFBTSxDQUFDLE9BQU8sQ0FBQyxFQUFFLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU8sRUFBRSxJQUFJLENBQUMsQ0FBQyxDQUFDLFdBQVcsRUFBRSxDQUFDO0lBQy9FLENBQUMsQ0FBQyxDQUFDO0FBQ1AsQ0FBQyxDQUFDO0FBRVMsZUFBTyxHQUFHLFVBQVMsT0FBYztJQUN4QyxJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUss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m9sZGVyQXJyYXkpO1xyXG4gICAgcmV0dXJuIGRvbmUucHJvbWlzZTtcclxufTsiXX0=

View File

@ -1,2 +1,3 @@
import "typings-global";
declare var _default: (fileStringArg: string, fileTypeArg: any) => any; declare var _default: (fileStringArg: string, fileTypeArg: any) => any;
export = _default; export = _default;

View File

@ -1,5 +1,5 @@
/// <reference path="./typings/index.d.ts" />
"use strict"; "use strict";
require("typings-global");
var plugins = require("./smartfile.plugins"); var plugins = require("./smartfile.plugins");
module.exports = function (fileStringArg, fileTypeArg) { module.exports = function (fileStringArg, fileTypeArg) {
switch (fileTypeArg) { switch (fileTypeArg) {
@ -14,4 +14,4 @@ module.exports = function (fileStringArg, fileTypeArg) {
} }
}; };
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZmlsZS5pbnRlcnByZXRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw2Q0FBNkM7O0FBRTdDLElBQU8sT0FBTyxXQUFXLHFCQUFxQixDQUFDLENBQUM7QUFFaEQsaUJBQVMsVUFBUyxhQUFvQixFQUFFLFdBQVc7SUFDL0MsTUFBTSxDQUFDLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBQztRQUNsQixLQUFLLEtBQUssQ0FBRTtRQUNaLEtBQUssTUFBTTtZQUNQLE1BQU0sQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUNoRCxLQUFLLE1BQU07WUFDUCxNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUNyQztZQUNJLE9BQU8sQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLFlBQVksR0FBRyxXQUFXLENBQUMsSUFBSSxHQUFHLGdCQUFnQixDQUFDLENBQUM7WUFDNUUsS0FBSyxDQUFDO0lBQ2QsQ0FBQztBQUNML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sZSB0eXBlIFwiICsgZmlsZVR5cGVBcmcuYmx1ZSArIFwiIG5vdCBzdXBwb3J0ZWRcIik7XHJcbiAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgfVxyXG59Il19

View File

@ -1,3 +1,4 @@
import "typings-global";
export declare let toFS: (options: { export declare let toFS: (options: {
from: string; from: string;
toPath: string; toPath: string;

View File

@ -1,5 +1,5 @@
/// <reference path="./typings/index.d.ts" />
"use strict"; "use strict";
require("typings-global");
var plugins = require("./smartfile.plugins"); var plugins = require("./smartfile.plugins");
var SmartfileGet = require("./smartfile.get"); var SmartfileGet = require("./smartfile.get");
var SmartfileInterpreter = require("./smartfile.interpreter"); var SmartfileInterpreter = require("./smartfile.interpreter");
@ -59,4 +59,4 @@ exports.requireReload = function (path) {
return plugins.requireReload(path); return plugins.requireReload(path);
}; };
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZmlsZS5sb2NhbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw2Q0FBNkM7O0FBRTdDLElBQU8sT0FBTyxXQUFXLHFCQUFxQixDQUFDLENBQUM7QUFDaEQsSUFBTyxZQUFZLFdBQVcsaUJBQWlCLENBQUMsQ0FBQztBQUNqRCxJQUFPLG9CQUFvQixXQUFXLHlCQUF5QixDQUFDLENBQUM7QUFDdEQsWUFBSSxHQUFHLFVBQVMsT0FBbUMsRUFBRSxFQUFZO0lBQVosa0JBQVksR0FBWixjQUFZO0FBRTVFLENBQUMsQ0FBQztBQUVGOzs7O0dBSUc7QUFDUSx3QkFBZ0IsR0FBRyxVQUFTLFdBQWtCO0lBQ3JELElBQUksTUFBTSxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLFdBQVcsQ0FBQyxDQUFDO0lBQzNDLE1BQU0sQ0FBQyxNQUFNLENBQUM7QUFDbEIsQ0FBQyxDQUFDO0FBRVMsc0JBQW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GhvdC5cclxuICogQHBhcmFtIHBhdGhcclxuICogQHJldHVybnMge2FueX1cclxuICovXHJcbmV4cG9ydCBsZXQgcmVxdWlyZVJlbG9hZCA9IGZ1bmN0aW9uKHBhdGg6c3RyaW5nKXtcclxuICAgIHJldHVybiBwbHVnaW5zLnJlcXVpcmVSZWxvYWQocGF0aCk7XHJcbn07Il19

View File

@ -1,3 +1,4 @@
import "typings-global";
import plugins = require("./smartfile.plugins"); import plugins = require("./smartfile.plugins");
/** /**
* allows you to create a gulp stream * allows you to create a gulp stream

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
import "typings-global";
export declare let beautylog: any; export declare let beautylog: any;
export declare let fs: any; export declare let fs: any;
export declare let gulp: any; export declare let gulp: any;

View File

@ -1,5 +1,5 @@
"use strict"; "use strict";
/// <reference path="./typings/index.d.ts" /> require("typings-global");
exports.beautylog = require("beautylog"); exports.beautylog = require("beautylog");
exports.fs = require("fs-extra"); exports.fs = require("fs-extra");
exports.gulp = require("gulp"); exports.gulp = require("gulp");
@ -14,4 +14,4 @@ exports.yaml = require("js-yaml");
exports.request = require("request"); exports.request = require("request");
exports.requireReload = require("require-reload"); exports.requireReload = require("require-reload");
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZmlsZS5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSw2Q0FBNkM7QUFDbEMsaUJBQVMsR0FBRyxPQUFPLENBQUMsV0FBVyxDQUFDLENBQUM7QUFDakMsVUFBRSxHQUFHLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztBQUN6QixZQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0FBQ3ZCLFNBQUMsR0FBRztJQUNYLFNBQVMsRUFBRSxPQUFPLENBQUMsaUJBQWlCLENBQUM7Q0FDeEMsQ0FBQztBQUNZLFlBQUksV0FBV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oXCJiZWF1dHlsb2dcIik7XHJcbmV4cG9ydCBsZXQgZnMgPSByZXF1aXJlKFwiZnMtZXh0cmFcIik7XHJcbmV4cG9ydCBsZXQgZ3VscCA9IHJlcXVpcmUoXCJndWxwXCIpO1xyXG5leHBvcnQgbGV0IGcgPSB7XHJcbiAgICByZW1vdGVTcmM6IHJlcXVpcmUoXCJndWxwLXJlbW90ZS1zcmNcIilcclxufTtcclxuZXhwb3J0IGltcG9ydCBwYXRoID0gcmVxdWlyZShcInBhdGhcIik7XHJcbmV4cG9ydCBsZXQgcSA9IHJlcXVpcmUoXCJxXCIpO1xyXG5leHBvcnQgaW1wb3J0IHZpbnlsID0gcmVxdWlyZShcInZpbnlsXCIpO1xyXG5leHBvcnQgbGV0IHZpbnlsRmlsZSA9IHJlcXVpcmUoXCJ2aW55bC1maWxlXCIpO1xyXG5leHBvcnQgbGV0IHlhbWwgPSByZXF1aXJlKFwianMteWFtbFwiKTtcclxuZXhwb3J0IGxldCByZXF1ZXN0ID0gcmVxdWlyZShcInJlcXVlc3RcIik7XHJcbmV4cG9ydCBsZXQgcmVxdWlyZVJlbG9hZCA9IHJlcXVpcmUoXCJyZXF1aXJlLXJlbG9hZFwiKTtcclxuIl19

View File

@ -1,3 +1,4 @@
import "typings-global";
export declare let toFs: (from: string, toPath: string) => any; export declare let toFs: (from: string, toPath: string) => any;
/** /**
* *

File diff suppressed because one or more lines are too long

View File

@ -34,12 +34,14 @@
"q": "^1.4.1", "q": "^1.4.1",
"request": "^2.72.0", "request": "^2.72.0",
"require-reload": "0.2.2", "require-reload": "0.2.2",
"typings-global": "^1.0.3",
"vinyl": "^1.1.1", "vinyl": "^1.1.1",
"vinyl-file": "^2.0.0" "vinyl-file": "^2.0.0"
}, },
"devDependencies": { "devDependencies": {
"gulp-function": "^1.3.1", "gulp-function": "^1.3.1",
"npmts": "^5.1.11", "npmts": "^5.1.13",
"should": "^8.4.0" "should": "^8.4.0",
"typings-test": "^1.0.1"
} }
} }

1
test/test.d.ts vendored
View File

@ -0,0 +1 @@
import "typings-test";

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
/// <reference path="../ts/typings/index.d.ts" /> import "typings-test";
import * as smartfile from "../dist/index.js"; import * as smartfile from "../dist/index.js";
let beautylog = require("beautylog"); let beautylog = require("beautylog");
let gulp = require("gulp"); let gulp = require("gulp");

View File

@ -1,4 +1,4 @@
/// <reference path="./typings/index.d.ts" /> import "typings-global";
import * as plugins from "./smartfile.plugins"; import * as plugins from "./smartfile.plugins";
import * as SmartfileChecks from "./smartfile.checks"; import * as SmartfileChecks from "./smartfile.checks";

View File

@ -1,4 +1,4 @@
/// <reference path="./typings/index.d.ts" /> import "typings-global";
import plugins = require("./smartfile.plugins"); import plugins = require("./smartfile.plugins");
/** /**

View File

@ -1,4 +1,4 @@
/// <reference path="./typings/index.d.ts" /> import "typings-global";
import plugins = require("./smartfile.plugins"); import plugins = require("./smartfile.plugins");
import SmartfileChecks = require("./smartfile.checks"); import SmartfileChecks = require("./smartfile.checks");

View File

@ -1,4 +1,4 @@
/// <reference path="./typings/index.d.ts" /> import "typings-global";
import plugins = require("./smartfile.plugins"); import plugins = require("./smartfile.plugins");
export let filetype = function(pathArg:string):string { export let filetype = function(pathArg:string):string {

View File

@ -1,4 +1,4 @@
/// <reference path="./typings/index.d.ts" /> import "typings-global";
import plugins = require("./smartfile.plugins"); import plugins = require("./smartfile.plugins");

View File

@ -1,4 +1,4 @@
/// <reference path="./typings/index.d.ts" /> import "typings-global";
import plugins = require("./smartfile.plugins"); import plugins = require("./smartfile.plugins");
import SmartfileGet = require("./smartfile.get"); import SmartfileGet = require("./smartfile.get");

View File

@ -1,4 +1,4 @@
/// <reference path="./typings/index.d.ts" /> import "typings-global";
import plugins = require("./smartfile.plugins"); import plugins = require("./smartfile.plugins");
import SmartfileInterpreter = require("./smartfile.interpreter"); import SmartfileInterpreter = require("./smartfile.interpreter");

View File

@ -1,4 +1,4 @@
/// <reference path="./typings/index.d.ts" /> import "typings-global";
export let beautylog = require("beautylog"); export let beautylog = require("beautylog");
export let fs = require("fs-extra"); export let fs = require("fs-extra");
export let gulp = require("gulp"); export let gulp = require("gulp");

View File

@ -1,4 +1,4 @@
/// <reference path="./typings/index.d.ts" /> import "typings-global";
import plugins = require("./smartfile.plugins"); import plugins = require("./smartfile.plugins");
import SmartfileInterpreter = require("./smartfile.interpreter"); import SmartfileInterpreter = require("./smartfile.interpreter");
import SmartfileGet = require("./smartfile.get"); import SmartfileGet = require("./smartfile.get");

View File

@ -3,7 +3,6 @@
"colors": "github:DefinitelyTyped/DefinitelyTyped/colors/colors.d.ts", "colors": "github:DefinitelyTyped/DefinitelyTyped/colors/colors.d.ts",
"mocha": "github:Bartvds/tsd-deftools/typings/DefinitelyTyped/mocha/mocha.d.ts", "mocha": "github:Bartvds/tsd-deftools/typings/DefinitelyTyped/mocha/mocha.d.ts",
"node": "registry:dt/node", "node": "registry:dt/node",
"should": "registry:dt/should", "should": "registry:dt/should"
"vinyl": "registry:dt/vinyl"
} }
} }