updated structure and introduced new Smartfile class
This commit is contained in:
parent
96210fca9f
commit
f3a81d60e9
20
dist/index.d.ts
vendored
20
dist/index.d.ts
vendored
@ -4,14 +4,12 @@ import * as SmartfileGet from "./smartfile.get";
|
|||||||
import * as SmartfileLocal from "./smartfile.local";
|
import * as SmartfileLocal from "./smartfile.local";
|
||||||
import * as SmartfileMemory from "./smartfile.memory";
|
import * as SmartfileMemory from "./smartfile.memory";
|
||||||
import * as SmartfileRemote from "./smartfile.remote";
|
import * as SmartfileRemote from "./smartfile.remote";
|
||||||
declare var smartfile: {
|
export { Smartfile } from "./smartfile.classes.smartfile";
|
||||||
fsaction: typeof SmartfileFsaction;
|
export declare let fsaction: typeof SmartfileFsaction;
|
||||||
fs: any;
|
export declare let fs: any;
|
||||||
checks: typeof SmartfileChecks;
|
export declare let checks: typeof SmartfileChecks;
|
||||||
get: typeof SmartfileGet;
|
export declare let get: typeof SmartfileGet;
|
||||||
local: typeof SmartfileLocal;
|
export declare let local: typeof SmartfileLocal;
|
||||||
memory: typeof SmartfileMemory;
|
export declare let memory: typeof SmartfileMemory;
|
||||||
remote: typeof SmartfileRemote;
|
export declare let remote: typeof SmartfileRemote;
|
||||||
requireReload: (path: string) => any;
|
export declare let requireReload: (path: string) => any;
|
||||||
};
|
|
||||||
export = smartfile;
|
|
||||||
|
25
dist/index.js
vendored
25
dist/index.js
vendored
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
"use strict";
|
"use strict";
|
||||||
var plugins = require("./smartfile.plugins");
|
var plugins = require("./smartfile.plugins");
|
||||||
var SmartfileChecks = require("./smartfile.checks");
|
var SmartfileChecks = require("./smartfile.checks");
|
||||||
@ -7,16 +7,15 @@ var SmartfileGet = require("./smartfile.get");
|
|||||||
var SmartfileLocal = require("./smartfile.local");
|
var SmartfileLocal = require("./smartfile.local");
|
||||||
var SmartfileMemory = require("./smartfile.memory");
|
var SmartfileMemory = require("./smartfile.memory");
|
||||||
var SmartfileRemote = require("./smartfile.remote");
|
var SmartfileRemote = require("./smartfile.remote");
|
||||||
var smartfile = {
|
var smartfile_classes_smartfile_1 = require("./smartfile.classes.smartfile");
|
||||||
fsaction: SmartfileFsaction,
|
exports.Smartfile = smartfile_classes_smartfile_1.Smartfile;
|
||||||
fs: plugins.fs,
|
exports.fsaction = SmartfileFsaction;
|
||||||
checks: SmartfileChecks,
|
exports.fs = plugins.fs;
|
||||||
get: SmartfileGet,
|
exports.checks = SmartfileChecks;
|
||||||
local: SmartfileLocal,
|
exports.get = SmartfileGet;
|
||||||
memory: SmartfileMemory,
|
exports.local = SmartfileLocal;
|
||||||
remote: SmartfileRemote,
|
exports.memory = SmartfileMemory;
|
||||||
requireReload: SmartfileLocal.requireReload
|
exports.remote = SmartfileRemote;
|
||||||
};
|
exports.requireReload = SmartfileLocal.requireReload;
|
||||||
module.exports = smartfile;
|
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDRDQUE0Qzs7QUFFNUMsSUFBWSxPQUFPLFdBQU0scUJBQXFCLENBQUMsQ0FBQTtBQUMvQyxJQUFZLGVBQWUsV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBQ3RELElBQVksaUJBQWlCLFdBQU0sc0JBQXNCLENBQUMsQ0FBQTtBQUMxRCxJQUFZLFlBQVksV0FBTSxpQkFBaUIsQ0FBQyxDQUFBO0FBQ2hELElBQVksY0FBYyxXQUFNLG1CQUFtQixDQUFDLENBQUE7QUFDcEQsSUFBWSxlQUFlLFdBQU0sb0JBQW9CLENBQUMsQ0FBQTtBQUN0RCxJQUFZLGVBQWUsV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBR3RELElBQUksU0FBUyxHQUFHO0lBQ1osUUFBUSxFQUFFLGlCQUFpQjtJQUMzQix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21hcnRmaWxlTG9jYWw7XHJcbmV4cG9ydCBsZXQgbWVtb3J5ID0gU21hcnRmaWxlTWVtb3J5O1xyXG5leHBvcnQgbGV0IHJlbW90ZSA9IFNtYXJ0ZmlsZVJlbW90ZTtcclxuZXhwb3J0IGxldCByZXF1aXJlUmVsb2FkID0gU21hcnRmaWxlTG9jYWwucmVxdWlyZVJlbG9hZDtcclxuIl19
|
||||||
|
4
dist/smartfile.checks.js
vendored
4
dist/smartfile.checks.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZmlsZS5jaGVja3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDRDQUE0QztBQUM1QyxJQUFPLE9BQU8sV0FBVyxxQkFBcUIsQ0FBQyxDQUFDO0FBRWhEOzs7O0dBSUc7QUFDUSxzQkFBYyxHQUFHLFVBQVMsUUFBUTtJQUN6QyxJQUFJLGNBQWMsR0FBVyxLQUFLLENBQUM7SUFDbkMsSUFBSSxDQUFDO1FBQ0QsT0FBTyxDQUFDLEVBQUUsQ0FBQyxZQUFZLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDbEMsY0FBYyxHQUFHLElBQUksQ0FBQTtJQUN6QixDQUNBO0lBQUEsS0FBSyxDQUFBLENBQUMsR0FBRyxDQUFDLENBQUEsQ0FBQztRQUNQLGNBQWMsR0FBRyxLQUFLLENBQUM7SU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XHJcbmV4cG9ydCBsZXQgZmlsZUV4aXN0cyA9IGZ1bmN0aW9uKGZpbGVQYXRoKXtcclxuICAgIGxldCBkb25lID0gcGx1Z2lucy5xLmRlZmVyKCk7XHJcbiAgICBwbHVnaW5zLmZzLmFjY2VzcyhmaWxlUGF0aCwgcGx1Z2lucy5mcy5SX09LLCBmdW5jdGlvbiAoZXJyKSB7XHJcbiAgICAgICAgZXJyID8gZG9uZS5yZWplY3QoKSA6IGRvbmUucmVzb2x2ZSgpO1xyXG4gICAgfSk7XHJcbiAgICByZXR1cm4gZG9uZS5wcm9taXNlO1xyXG59O1xyXG5cclxuZXhwb3J0IGxldCBpc0RpcmVjdG9yeSA9IGZ1bmN0aW9uKHBhdGhBcmcpOmJvb2xlYW57XHJcbiAgICByZXR1cm4gcGx1Z2lucy5mcy5zdGF0U3luYyhwYXRoQXJnKS5pc0RpcmVjdG9yeSgpO1xyXG59O1xyXG5cclxuZXhwb3J0IGxldCBpc0ZpbGUgPSBmdW5jdGlvbihwYXRoQXJnKTpib29sZWFue1xyXG4gICAgcmV0dXJuIHBsdWdpbnMuZnMuc3RhdFN5bmMocGF0aEFyZykuaXNGaWxlKCk7XHJcbn07XHJcbiJdfQ==
|
||||||
|
3
dist/smartfile.classes.smartfile.d.ts
vendored
Normal file
3
dist/smartfile.classes.smartfile.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export declare class Smartfile {
|
||||||
|
constructor();
|
||||||
|
}
|
10
dist/smartfile.classes.smartfile.js
vendored
Normal file
10
dist/smartfile.classes.smartfile.js
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
"use strict";
|
||||||
|
var Smartfile = (function () {
|
||||||
|
function Smartfile() {
|
||||||
|
}
|
||||||
|
;
|
||||||
|
return Smartfile;
|
||||||
|
}());
|
||||||
|
exports.Smartfile = Smartfile;
|
||||||
|
|
||||||
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZmlsZS5jbGFzc2VzLnNtYXJ0ZmlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7SUFDSTtJQUVBLENBQUM7O0lBQ0wsZ0JBQUM7QUFBRCxDQUpBLEFBSUMsSUFBQTtBQUpZLGlCQUFTLFlBSXJCLENBQUEiLCJmaWxlIjoic21hcnRmaWxlLmNsYXNzZXMuc21hcnRmaWxlLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIFNtYXJ0ZmlsZSB7XHJcbiAgICBjb25zdHJ1Y3Rvcigpe1xyXG4gICAgICAgIFxyXG4gICAgfTtcclxufSJdfQ==
|
4
dist/smartfile.fsaction.js
vendored
4
dist/smartfile.fsaction.js
vendored
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
"use strict";
|
"use strict";
|
||||||
var plugins = require("./smartfile.plugins");
|
var plugins = require("./smartfile.plugins");
|
||||||
exports.copy = function (fromArg, toArg) {
|
exports.copy = function (fromArg, toArg) {
|
||||||
@ -24,4 +24,4 @@ exports.removeSync = function (pathArg) {
|
|||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZmlsZS5mc2FjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw0Q0FBNEM7O0FBRTVDLElBQU8sT0FBTyxXQUFXLHFCQUFxQixDQUFDLENBQUM7QUFHckMsWUFBSSxHQUFHLFVBQVMsT0FBYyxFQUFFLEtBQVk7SUFDbkQsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUM3QixPQUFPLENBQUMsRUFBRSxDQUFDLElBQUksQ0FBQyxPQUFPLEVB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ZlU3luYyA9IGZ1bmN0aW9uKHBhdGhBcmc6c3RyaW5nKTpib29sZWFue1xyXG4gICAgcGx1Z2lucy5mcy5yZW1vdmVTeW5jKHBhdGhBcmcpO1xyXG4gICAgcmV0dXJuIHRydWU7XHJcbn07Il19
|
||||||
|
4
dist/smartfile.get.js
vendored
4
dist/smartfile.get.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZmlsZS5nZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDRDQUE0QztBQUM1QyxJQUFPLE9BQU8sV0FBVyxxQkFBcUIsQ0FBQyxDQUFDO0FBRXJDLGdCQUFRLEdBQUcsVUFBUyxPQUFjO0lBQ3pDLElBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQzVDLElBQUksUUFBUSxHQUFHLE9BQU8sQ0FBQyxPQUFPLENBQUMsWUFBWSxFQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsd0JBQXdCO0lBQzNFLE1BQU0sQ0FBQyxRQUFRLENBQUM7QUFDcEIsQ0FBQyxDQUFDO0FBRVMsbUJBQVcsR0FBRyxVQUFTLE9BQU87SUFDckMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxFQUFFLENB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lvbihwYXRoQXJnOnN0cmluZyl7XHJcbiAgICBsZXQgZG9uZSA9IHBsdWdpbnMucS5kZWZlcigpO1xyXG4gICAgbGV0IGZvbGRlckFycmF5ID0gcGx1Z2lucy5mcy5yZWFkZGlyU3luYyhwYXRoQXJnKS5maWx0ZXIoZnVuY3Rpb24oZmlsZSkge1xyXG4gICAgICAgIHJldHVybiBwbHVnaW5zLmZzLnN0YXRTeW5jKHBsdWdpbnMucGF0aC5qb2luKHBhdGhBcmcsIGZpbGUpKS5pc0RpcmVjdG9yeSgpO1xyXG4gICAgfSk7XHJcbiAgICBkb25lLnJlc29sdmUoZm9sZGVyQXJyYXkpO1xyXG4gICAgcmV0dXJuIGRvbmUucHJvbWlzZTtcclxufTsiXX0=
|
||||||
|
4
dist/smartfile.interpreter.js
vendored
4
dist/smartfile.interpreter.js
vendored
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
"use strict";
|
"use strict";
|
||||||
var plugins = require("./smartfile.plugins");
|
var plugins = require("./smartfile.plugins");
|
||||||
module.exports = function (fileStringArg, fileTypeArg) {
|
module.exports = function (fileStringArg, fileTypeArg) {
|
||||||
@ -14,4 +14,4 @@ module.exports = function (fileStringArg, fileTypeArg) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZmlsZS5pbnRlcnByZXRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw0Q0FBNEM7O0FBRTVDLElBQU8sT0FBTyxXQUFXLHFCQUFxQixDQUFDLENBQUM7QUFFaEQsaUJBQVMsVUFBUyxhQUFvQixFQUFFLFdBQVc7SUFDL0MsTUFBTSxDQUFDLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBQztRQUNsQixLQUFLLEtBQUssQ0FBRTtRQUNa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Y2FzZSBcInltbFwiIDpcclxuICAgICAgICBjYXNlIFwieWFtbFwiOlxyXG4gICAgICAgICAgICByZXR1cm4gcGx1Z2lucy55YW1sLnNhZmVMb2FkKGZpbGVTdHJpbmdBcmcpO1xyXG4gICAgICAgIGNhc2UgXCJqc29uXCI6XHJcbiAgICAgICAgICAgIHJldHVybiBKU09OLnBhcnNlKGZpbGVTdHJpbmdBcmcpO1xyXG4gICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgIHBsdWdpbnMuYmVhdXR5bG9nLmVycm9yKFwiZmlsZSB0eXBlIFwiICsgZmlsZVR5cGVBcmcuYmx1ZSArIFwiIG5vdCBzdXBwb3J0ZWRcIik7XHJcbiAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgfVxyXG59Il19
|
||||||
|
4
dist/smartfile.local.js
vendored
4
dist/smartfile.local.js
vendored
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
"use strict";
|
"use strict";
|
||||||
var plugins = require("./smartfile.plugins");
|
var plugins = require("./smartfile.plugins");
|
||||||
var SmartfileGet = require("./smartfile.get");
|
var SmartfileGet = require("./smartfile.get");
|
||||||
@ -59,4 +59,4 @@ exports.requireReload = function (path) {
|
|||||||
return plugins.requireReload(path);
|
return plugins.requireReload(path);
|
||||||
};
|
};
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZmlsZS5sb2NhbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw0Q0FBNEM7O0FBRTVDLElBQU8sT0FBTyxXQUFXLHFCQUFxQixDQUFDLENBQUM7QUFDaEQsSUFBTyxZQUFZLFdBQVcsaUJBQWlCLENBQUMsQ0FBQztBQUNqRCxJQUFPLG9CQUFvQixXQUFXLHlCQUF5QixDQUFDLENBQUM7QUFDdEQsWUFBSSxH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b3B0aW9ucyA9IHt9KSB7XHJcbiAgICByZXR1cm4gcGx1Z2lucy52aW55bEZpbGUucmVhZFN5bmMoZmlsZVBhdGhBcmcsb3B0aW9ucyk7XHJcbn07XHJcblxyXG4vKipcclxuICogbGV0cyB5b3UgcmVsb2FkIGZpbGVzIGhvdC5cclxuICogQHBhcmFtIHBhdGhcclxuICogQHJldHVybnMge2FueX1cclxuICovXHJcbmV4cG9ydCBsZXQgcmVxdWlyZVJlbG9hZCA9IGZ1bmN0aW9uKHBhdGg6c3RyaW5nKXtcclxuICAgIHJldHVybiBwbHVnaW5zLnJlcXVpcmVSZWxvYWQocGF0aCk7XHJcbn07Il19
|
||||||
|
4
dist/smartfile.memory.js
vendored
4
dist/smartfile.memory.js
vendored
File diff suppressed because one or more lines are too long
4
dist/smartfile.plugins.js
vendored
4
dist/smartfile.plugins.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZmlsZS5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSw0Q0FBNEM7QUFDakMsaUJBQVMsR0FBRyxPQUFPLENBQUMsV0FBVyxDQUFDLENBQUM7QUFDakMsVUFBRSxHQUFHLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztBQUN6QixZQUFJ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lc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cIi4vdHlwaW5ncy9pbmRleC5kLnRzXCIgLz5cclxuZXhwb3J0IGxldCBiZWF1dHlsb2cgPSByZXF1aXJlKFwiYmVhdXR5bG9nXCIpO1xyXG5leHBvcnQgbGV0IGZzID0gcmVxdWlyZShcImZzLWV4dHJhXCIpO1xyXG5leHBvcnQgbGV0IGd1bHAgPSByZXF1aXJlKFwiZ3VscFwiKTtcclxuZXhwb3J0IGxldCBnID0ge1xyXG4gICAgcmVtb3RlU3JjOiByZXF1aXJlKFwiZ3VscC1yZW1vdGUtc3JjXCIpXHJcbn07XHJcbmV4cG9ydCBpbXBvcnQgcGF0aCA9IHJlcXVpcmUoXCJwYXRoXCIpO1xyXG5leHBvcnQgbGV0IHEgPSByZXF1aXJlKFwicVwiKTtcclxuZXhwb3J0IGltcG9ydCB2aW55bCA9IHJlcXVpcmUoXCJ2aW55bFwiKTtcclxuZXhwb3J0IGxldCB2aW55bEZpbGUgPSByZXF1aXJlKFwidmlueWwtZmlsZVwiKTtcclxuZXhwb3J0IGxldCB5YW1sID0gcmVxdWlyZShcImpzLXlhbWxcIik7XHJcbmV4cG9ydCBsZXQgcmVxdWVzdCA9IHJlcXVpcmUoXCJyZXF1ZXN0XCIpO1xyXG5leHBvcnQgbGV0IHJlcXVpcmVSZWxvYWQgPSByZXF1aXJlKFwicmVxdWlyZS1yZWxvYWRcIik7XHJcbiJdfQ==
|
||||||
|
4
dist/smartfile.remote.js
vendored
4
dist/smartfile.remote.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="../ts/typings/main.d.ts" />
|
/// <reference path="../ts/typings/index.d.ts" />
|
||||||
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");
|
||||||
|
23
ts/index.ts
23
ts/index.ts
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
|
|
||||||
import * as plugins from "./smartfile.plugins";
|
import * as plugins from "./smartfile.plugins";
|
||||||
import * as SmartfileChecks from "./smartfile.checks";
|
import * as SmartfileChecks from "./smartfile.checks";
|
||||||
@ -8,16 +8,13 @@ import * as SmartfileLocal from "./smartfile.local";
|
|||||||
import * as SmartfileMemory from "./smartfile.memory";
|
import * as SmartfileMemory from "./smartfile.memory";
|
||||||
import * as SmartfileRemote from "./smartfile.remote";
|
import * as SmartfileRemote from "./smartfile.remote";
|
||||||
|
|
||||||
|
export {Smartfile} from "./smartfile.classes.smartfile";
|
||||||
|
|
||||||
var smartfile = {
|
export let fsaction = SmartfileFsaction;
|
||||||
fsaction: SmartfileFsaction,
|
export let fs = plugins.fs;
|
||||||
fs: plugins.fs,
|
export let checks = SmartfileChecks;
|
||||||
checks: SmartfileChecks,
|
export let get = SmartfileGet;
|
||||||
get: SmartfileGet,
|
export let local = SmartfileLocal;
|
||||||
local: SmartfileLocal,
|
export let memory = SmartfileMemory;
|
||||||
memory: SmartfileMemory,
|
export let remote = SmartfileRemote;
|
||||||
remote: SmartfileRemote,
|
export let requireReload = SmartfileLocal.requireReload;
|
||||||
requireReload: SmartfileLocal.requireReload
|
|
||||||
};
|
|
||||||
|
|
||||||
export = smartfile;
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
import plugins = require("./smartfile.plugins");
|
import plugins = require("./smartfile.plugins");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
5
ts/smartfile.classes.smartfile.ts
Normal file
5
ts/smartfile.classes.smartfile.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export class Smartfile {
|
||||||
|
constructor(){
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
|
|
||||||
import plugins = require("./smartfile.plugins");
|
import plugins = require("./smartfile.plugins");
|
||||||
import SmartfileChecks = require("./smartfile.checks");
|
import SmartfileChecks = require("./smartfile.checks");
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
import plugins = require("./smartfile.plugins");
|
import plugins = require("./smartfile.plugins");
|
||||||
|
|
||||||
export let filetype = function(pathArg:string):string {
|
export let filetype = function(pathArg:string):string {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
|
|
||||||
import plugins = require("./smartfile.plugins");
|
import plugins = require("./smartfile.plugins");
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
|
|
||||||
import plugins = require("./smartfile.plugins");
|
import plugins = require("./smartfile.plugins");
|
||||||
import SmartfileGet = require("./smartfile.get");
|
import SmartfileGet = require("./smartfile.get");
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
|
|
||||||
import plugins = require("./smartfile.plugins");
|
import plugins = require("./smartfile.plugins");
|
||||||
import SmartfileInterpreter = require("./smartfile.interpreter");
|
import SmartfileInterpreter = require("./smartfile.interpreter");
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
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");
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/index.d.ts" />
|
||||||
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");
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"ambientDependencies": {
|
"globalDependencies": {
|
||||||
"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",
|
||||||
|
Loading…
Reference in New Issue
Block a user