switch to smartq
This commit is contained in:
24
dist/smartfile.fs.d.ts
vendored
24
dist/smartfile.fs.d.ts
vendored
@ -1,6 +1,4 @@
|
||||
/// <reference types="q" />
|
||||
import 'typings-global';
|
||||
import plugins = require('./smartfile.plugins');
|
||||
/**
|
||||
*
|
||||
* @param filePath
|
||||
@ -12,7 +10,7 @@ export declare let fileExistsSync: (filePath: any) => boolean;
|
||||
* @param filePath
|
||||
* @returns {any}
|
||||
*/
|
||||
export declare let fileExists: (filePath: any) => plugins.q.Promise<{}>;
|
||||
export declare let fileExists: (filePath: any) => Promise<{}>;
|
||||
/**
|
||||
* Checks if given path points to an existing directory
|
||||
*/
|
||||
@ -24,7 +22,7 @@ export declare let isFile: (pathArg: any) => boolean;
|
||||
/**
|
||||
* copies a file from A to B on the local disk
|
||||
*/
|
||||
export declare let copy: (fromArg: string, toArg: string) => plugins.q.Promise<{}>;
|
||||
export declare let copy: (fromArg: string, toArg: string) => Promise<{}>;
|
||||
/**
|
||||
* copies a file SYNCHRONOUSLY from A to B on the local disk
|
||||
*/
|
||||
@ -32,7 +30,7 @@ export declare let copySync: (fromArg: string, toArg: string) => boolean;
|
||||
/**
|
||||
* ensures that a directory is in place
|
||||
*/
|
||||
export declare let ensureDir: (dirPathArg: string) => plugins.q.Promise<{}>;
|
||||
export declare let ensureDir: (dirPathArg: string) => Promise<{}>;
|
||||
/**
|
||||
* ensures that a directory is in place
|
||||
*/
|
||||
@ -41,7 +39,7 @@ export declare let ensureDirSync: (dirPathArg: string) => void;
|
||||
* ensure an empty directory
|
||||
* @executes ASYNC
|
||||
*/
|
||||
export declare let ensureEmptyDir: (dirPathArg: string) => plugins.q.Promise<{}>;
|
||||
export declare let ensureEmptyDir: (dirPathArg: string) => Promise<{}>;
|
||||
/**
|
||||
* ensure an empty directory
|
||||
* @executes SYNC
|
||||
@ -54,7 +52,7 @@ export declare let ensureEmptyDirSync: (dirPathArg: string) => void;
|
||||
* @returns Promise<void>
|
||||
* @exec ASYNC
|
||||
*/
|
||||
export declare let ensureFile: (filePathArg: any, initFileStringArg: any) => plugins.q.Promise<void>;
|
||||
export declare let ensureFile: (filePathArg: any, initFileStringArg: any) => Promise<void>;
|
||||
/**
|
||||
* ensures that a file is on disk
|
||||
* @param filePath the filePath to ensureDir
|
||||
@ -66,7 +64,7 @@ export declare let ensureFileSync: (filePathArg: string, initFileStringArg: stri
|
||||
/**
|
||||
* removes a file or folder from local disk
|
||||
*/
|
||||
export declare let remove: (pathArg: string) => plugins.q.Promise<void>;
|
||||
export declare let remove: (pathArg: string) => Promise<void>;
|
||||
/**
|
||||
* removes a file SYNCHRONOUSLY from local disk
|
||||
*/
|
||||
@ -74,7 +72,7 @@ export declare let removeSync: (pathArg: string) => boolean;
|
||||
/**
|
||||
* removes an array of filePaths from disk
|
||||
*/
|
||||
export declare let removeMany: (filePathArrayArg: string[]) => plugins.q.Promise<void[]>;
|
||||
export declare let removeMany: (filePathArrayArg: string[]) => Promise<void[]>;
|
||||
/**
|
||||
* like removeFilePathArray but SYNCHRONOUSLY
|
||||
*/
|
||||
@ -109,7 +107,7 @@ export declare let requireReload: (path: string) => any;
|
||||
* lists Folders in a directory on local disk
|
||||
* @returns Promise
|
||||
*/
|
||||
export declare let listFolders: (pathArg: string, regexFilter?: RegExp) => plugins.q.Promise<{}>;
|
||||
export declare let listFolders: (pathArg: string, regexFilter?: RegExp) => Promise<{}>;
|
||||
/**
|
||||
* lists Folders SYNCHRONOUSLY in a directory on local disk
|
||||
* @returns an array with the folder names as strings
|
||||
@ -119,7 +117,7 @@ export declare let listFoldersSync: (pathArg: string, regexFilter?: RegExp) => s
|
||||
* lists Files in a directory on local disk
|
||||
* @returns Promise
|
||||
*/
|
||||
export declare let listFiles: (pathArg: string, regexFilter?: RegExp) => plugins.q.Promise<{}>;
|
||||
export declare let listFiles: (pathArg: string, regexFilter?: RegExp) => Promise<{}>;
|
||||
/**
|
||||
* lists Files SYNCHRONOUSLY in a directory on local disk
|
||||
* @returns an array with the folder names as strings
|
||||
@ -129,7 +127,7 @@ export declare let listFilesSync: (pathArg: string, regexFilter?: RegExp) => str
|
||||
* lists all items (folders AND files) in a directory on local disk
|
||||
* @returns Promise<string[]>
|
||||
*/
|
||||
export declare let listAllItems: (pathArg: string, regexFilter?: RegExp) => plugins.q.Promise<string[]>;
|
||||
export declare let listAllItems: (pathArg: string, regexFilter?: RegExp) => Promise<string[]>;
|
||||
/**
|
||||
* lists all items (folders AND files) in a directory on local disk
|
||||
* @returns an array with the folder names as strings
|
||||
@ -141,4 +139,4 @@ export declare let listAllItemsSync: (pathArg: string, regexFilter?: RegExp) =>
|
||||
* note: if the miniMatch Filter is an absolute path, the cwdArg will be omitted
|
||||
* @returns Promise<string[]> string array with the absolute paths of all matching files
|
||||
*/
|
||||
export declare let listFileTree: (dirPathArg: string, miniMatchFilter: string) => plugins.q.Promise<string[]>;
|
||||
export declare let listFileTree: (dirPathArg: string, miniMatchFilter: string) => Promise<string[]>;
|
||||
|
6
dist/smartfile.fs.js
vendored
6
dist/smartfile.fs.js
vendored
File diff suppressed because one or more lines are too long
10
dist/smartfile.memory.d.ts
vendored
10
dist/smartfile.memory.d.ts
vendored
@ -1,8 +1,6 @@
|
||||
/// <reference types="node" />
|
||||
/// <reference types="q" />
|
||||
import 'typings-global';
|
||||
import plugins = require('./smartfile.plugins');
|
||||
export interface vinyl {
|
||||
export interface IVinylFile {
|
||||
contents: Buffer;
|
||||
base: string;
|
||||
path: string;
|
||||
@ -14,7 +12,7 @@ export interface vinyl {
|
||||
* @returns stream.Readable
|
||||
* @TODO: make it async;
|
||||
*/
|
||||
export declare let toGulpStream: (fileArg: string | string[] | vinyl | vinyl[], baseArg?: string) => any;
|
||||
export declare let toGulpStream: (fileArg: string | string[] | IVinylFile | IVinylFile[], baseArg?: string) => any;
|
||||
/**
|
||||
* converts file to Object
|
||||
* @param fileStringArg
|
||||
@ -45,12 +43,12 @@ export declare let toVinylArraySync: (arrayArg: string[], optionsArg?: {
|
||||
/**
|
||||
* takes a vinylFile object and converts it to String
|
||||
*/
|
||||
export declare let vinylToStringSync: (fileArg: vinyl) => string;
|
||||
export declare let vinylToStringSync: (fileArg: IVinylFile) => string;
|
||||
/**
|
||||
* writes string or vinyl file to disk.
|
||||
* @param fileArg
|
||||
* @param fileNameArg
|
||||
* @param fileBaseArg
|
||||
*/
|
||||
export declare let toFs: (fileContentArg: string | vinyl, filePathArg: any) => plugins.q.Promise<{}>;
|
||||
export declare let toFs: (fileContentArg: string | IVinylFile, filePathArg: any) => Promise<{}>;
|
||||
export declare let toFsSync: (fileArg: any, filePathArg: string) => void;
|
||||
|
9
dist/smartfile.memory.js
vendored
9
dist/smartfile.memory.js
vendored
File diff suppressed because one or more lines are too long
2
dist/smartfile.plugins.d.ts
vendored
2
dist/smartfile.plugins.d.ts
vendored
@ -4,7 +4,7 @@ export import fs = require('fs');
|
||||
export import fsExtra = require('fs-extra');
|
||||
export declare let glob: any;
|
||||
export import path = require('path');
|
||||
export import q = require('q');
|
||||
export import q = require('smartq');
|
||||
export declare let request: any;
|
||||
export declare let requireReload: any;
|
||||
export import smartpath = require('smartpath');
|
||||
|
4
dist/smartfile.plugins.js
vendored
4
dist/smartfile.plugins.js
vendored
@ -5,10 +5,10 @@ exports.fs = require("fs");
|
||||
exports.fsExtra = require("fs-extra");
|
||||
exports.glob = require('glob');
|
||||
exports.path = require("path");
|
||||
exports.q = require("q");
|
||||
exports.q = require("smartq");
|
||||
exports.request = require('request');
|
||||
exports.requireReload = require('require-reload');
|
||||
exports.smartpath = require("smartpath");
|
||||
exports.vinylFile = require('vinyl-file');
|
||||
exports.yaml = require('js-yaml');
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRmaWxlLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGZpbGUucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEJBQXVC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UMsQ0FBQSJ9
|
8
dist/smartfile.remote.d.ts
vendored
8
dist/smartfile.remote.d.ts
vendored
@ -1,16 +1,14 @@
|
||||
/// <reference types="q" />
|
||||
import 'typings-global';
|
||||
import plugins = require('./smartfile.plugins');
|
||||
export declare let toFs: (from: string, toPath: string) => plugins.q.Promise<{}>;
|
||||
export declare let toFs: (from: string, toPath: string) => Promise<{}>;
|
||||
/**
|
||||
*
|
||||
* @param fromArg
|
||||
* @returns {any}
|
||||
*/
|
||||
export declare let toObject: (fromArg: string) => plugins.q.Promise<{}>;
|
||||
export declare let toObject: (fromArg: string) => Promise<{}>;
|
||||
/**
|
||||
*
|
||||
* @param fromArg
|
||||
* @returns {any}
|
||||
*/
|
||||
export declare let toString: (fromArg: string) => plugins.q.Promise<{}>;
|
||||
export declare let toString: (fromArg: string) => Promise<{}>;
|
||||
|
Reference in New Issue
Block a user