diff --git a/.gitignore b/.gitignore index 5f747d6..56ea3f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,7 @@ node_modules/ -.settings/ -.idea/ coverage/ -docs/ +pages/ -ts/*.js -ts/*.js.map -ts/typings/ test/temp/ diff --git a/dist/smartfile.memory.d.ts b/dist/smartfile.memory.d.ts index dbbff56..164d7cb 100644 --- a/dist/smartfile.memory.d.ts +++ b/dist/smartfile.memory.d.ts @@ -1,4 +1,3 @@ -/// /// import "typings-global"; import plugins = require("./smartfile.plugins"); @@ -9,7 +8,7 @@ import plugins = require("./smartfile.plugins"); * @returns stream.Readable * @TODO: make it async; */ -export declare let toGulpStream: (fileArg: string | string[] | plugins.vinyl | plugins.vinyl[], baseArg?: string) => any; +export declare let toGulpStream: (fileArg: any, baseArg?: string) => any; /** * converts file to Object * @param fileStringArg @@ -26,7 +25,7 @@ export declare let toVinylFileSync: (fileArg: string, optionsArg?: { filename?: string; base?: string; relPath?: string; -}) => plugins.vinyl; +}) => any; /** * takes a string array and some options and returns a vinylfile array * @param arrayArg @@ -40,12 +39,12 @@ export declare let toVinylArraySync: (arrayArg: string[], optionsArg?: { /** * takes a vinylFile object and converts it to String */ -export declare let toStringSync: (fileArg: plugins.vinyl) => string; +export declare let toStringSync: (fileArg: any) => any; /** * writes string or vinyl file to disk. * @param fileArg * @param fileNameArg * @param fileBaseArg */ -export declare let toFs: (fileContentArg: string | plugins.vinyl, filePathArg: any) => plugins.Q.Promise<{}>; +export declare let toFs: (fileContentArg: any, filePathArg: any) => plugins.Q.Promise<{}>; export declare let toFsSync: (fileArg: any, filePathArg: string) => void; diff --git a/dist/smartfile.plugins.d.ts b/dist/smartfile.plugins.d.ts index 77fb7c8..8dcfe87 100644 --- a/dist/smartfile.plugins.d.ts +++ b/dist/smartfile.plugins.d.ts @@ -3,13 +3,13 @@ export import beautylog = require("beautylog"); export import fs = require("fs"); export import fsExtra = require("fs-extra"); export declare let gulp: any; -export import glob = require("glob"); +export declare let glob: any; export declare let g: { remoteSrc: any; }; export import path = require("path"); export import Q = require("q"); -export import vinyl = require("vinyl"); +export declare let vinyl: any; export declare let vinylFile: any; export declare let yaml: any; export declare let request: any; diff --git a/dist/smartfile.plugins.js b/dist/smartfile.plugins.js index c86e112..740b44b 100644 --- a/dist/smartfile.plugins.js +++ b/dist/smartfile.plugins.js @@ -15,4 +15,4 @@ exports.vinylFile = require("vinyl-file"); exports.yaml = require("js-yaml"); exports.request = require("request"); exports.requireReload = require("require-reload"); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRmaWxlLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGZpbGUucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQ1YsaUJBQVMsV0FBVyxXQUFXLENBQUMsQ0FBQztBQUNqQyxVQUFFLFdBQVcsSUFBSSxDQUFDLENBQUM7QUFDbkIsZUFBTyxXQUFXLFVBQVUsQ0FBQyxDQUFDO0FBQ2pDLFlBQUksR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUM7QUFDcEIsWUFBSSxXQUFXLE1BQU0sQ0FBQyxDQUFDO0FBQzFCLFNBQUMsR0FBRztJQUNYLFNBQVMsRUFBRSxPQUFPLENBQUMsaUJBQWlCLENBQUM7Q0FDeEMsQ0FBQztBQUNZLFlBQUksV0FBVyxNQUFNLENBQUMsQ0FBQztBQUN2QixTQUFDLFdBQVcsR0FBRyxDQUFDLENBQUM7QUFDakIsYUFBSyxXQUFXLE9BQU8sQ0FBQyxDQUFDO0FBQzVCLGlCQUFTLEdBQUcsT0FBTyxDQUFDLFlBQVksQ0FBQyxDQUFDO0FBQ2xDLFlBQUksR0FBRyxPQUFPLENBQUMsU0FBUyxDQUFDLENBQUM7QUFDMUIsZUFBTyxHQUFHLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQztBQUM3QixxQkFBYSxHQUFHLE9BQU8sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDIn0= \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRmaWxlLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGZpbGUucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQ1YsaUJBQVMsV0FBVyxXQUFXLENBQUMsQ0FBQztBQUNqQyxVQUFFLFdBQVcsSUFBSSxDQUFDLENBQUM7QUFDbkIsZUFBTyxXQUFXLFVBQVUsQ0FBQyxDQUFDO0FBQ2pDLFlBQUksR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUM7QUFDdkIsWUFBSSxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQztBQUN2QixTQUFDLEdBQUc7SUFDWCxTQUFTLEVBQUUsT0FBTyxDQUFDLGlCQUFpQixDQUFDO0NBQ3hDLENBQUM7QUFDWSxZQUFJLFdBQVcsTUFBTSxDQUFDLENBQUM7QUFDdkIsU0FBQyxXQUFXLEdBQUcsQ0FBQyxDQUFDO0FBQ3BCLGFBQUssR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUM7QUFDekIsaUJBQVMsR0FBRyxPQUFPLENBQUMsWUFBWSxDQUFDLENBQUM7QUFDbEMsWUFBSSxHQUFHLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQztBQUMxQixlQUFPLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDO0FBQzdCLHFCQUFhLEdBQUcsT0FBTyxDQUFDLGdCQUFnQixDQUFDLENBQUMifQ== \ No newline at end of file diff --git a/package.json b/package.json index 931cbbb..6642b18 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "smartfile", - "version": "4.0.13", + "version": "4.0.14", "description": "offers smart ways to work with files in nodejs", "main": "dist/index.js", "typings": "dist/index.d.ts", @@ -27,25 +27,25 @@ "homepage": "https://gitlab.com/pushrocks/smartfile", "dependencies": { "@types/fs-extra": "0.x.x", - "@types/glob": "5.x.x", "@types/q": "0.x.x", - "beautylog": "^5.0.14", + "beautylog": "^5.0.22", "fs-extra": "^0.30.0", - "glob": "^7.0.5", + "glob": "^7.0.6", "gulp": "^3.9.1", "gulp-remote-src": "^0.4.1", "js-yaml": "^3.6.1", "q": "^1.4.1", - "request": "^2.73.0", + "request": "^2.74.0", "require-reload": "0.2.2", - "typings-global": "^1.0.6", - "vinyl": "^1.1.1", + "typings-global": "^1.0.14", + "vinyl": "^1.2.0", "vinyl-file": "^2.0.0" }, "devDependencies": { + "@types/should": "^8.1.29", "gulp-function": "^1.3.6", - "npmts-g": "^5.2.6", - "should": "^10.0.0", - "typings-test": "^1.0.1" + "npmts-g": "^5.2.8", + "should": "^11.1.0", + "typings-test": "^1.0.2" } } diff --git a/ts/smartfile.plugins.ts b/ts/smartfile.plugins.ts index 39062f2..1e5366d 100644 --- a/ts/smartfile.plugins.ts +++ b/ts/smartfile.plugins.ts @@ -3,13 +3,13 @@ export import beautylog = require("beautylog"); export import fs = require("fs"); export import fsExtra = require("fs-extra"); export let gulp = require("gulp"); -export import glob = require("glob"); +export let glob = require("glob"); export let g = { remoteSrc: require("gulp-remote-src") }; export import path = require("path"); export import Q = require("q"); -export import vinyl = require("vinyl"); +export let vinyl = require("vinyl"); export let vinylFile = require("vinyl-file"); export let yaml = require("js-yaml"); export let request = require("request");