updated structure and introduced new Smartfile class
This commit is contained in:
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 SmartfileChecks from "./smartfile.checks";
|
||||
@ -8,16 +8,13 @@ import * as SmartfileLocal from "./smartfile.local";
|
||||
import * as SmartfileMemory from "./smartfile.memory";
|
||||
import * as SmartfileRemote from "./smartfile.remote";
|
||||
|
||||
export {Smartfile} from "./smartfile.classes.smartfile";
|
||||
|
||||
var smartfile = {
|
||||
fsaction: SmartfileFsaction,
|
||||
fs: plugins.fs,
|
||||
checks: SmartfileChecks,
|
||||
get: SmartfileGet,
|
||||
local: SmartfileLocal,
|
||||
memory: SmartfileMemory,
|
||||
remote: SmartfileRemote,
|
||||
requireReload: SmartfileLocal.requireReload
|
||||
};
|
||||
|
||||
export = smartfile;
|
||||
export let fsaction = SmartfileFsaction;
|
||||
export let fs = plugins.fs;
|
||||
export let checks = SmartfileChecks;
|
||||
export let get = SmartfileGet;
|
||||
export let local = SmartfileLocal;
|
||||
export let memory = SmartfileMemory;
|
||||
export let remote = SmartfileRemote;
|
||||
export let requireReload = SmartfileLocal.requireReload;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/// <reference path="./typings/main.d.ts" />
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
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 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");
|
||||
|
||||
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");
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/// <reference path="./typings/main.d.ts" />
|
||||
/// <reference path="./typings/index.d.ts" />
|
||||
|
||||
import plugins = require("./smartfile.plugins");
|
||||
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 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 fs = require("fs-extra");
|
||||
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 SmartfileInterpreter = require("./smartfile.interpreter");
|
||||
import SmartfileGet = require("./smartfile.get");
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"ambientDependencies": {
|
||||
"globalDependencies": {
|
||||
"colors": "github:DefinitelyTyped/DefinitelyTyped/colors/colors.d.ts",
|
||||
"mocha": "github:Bartvds/tsd-deftools/typings/DefinitelyTyped/mocha/mocha.d.ts",
|
||||
"node": "registry:dt/node",
|
||||
|
Reference in New Issue
Block a user