updated structure and introduced new Smartfile class

This commit is contained in:
Philipp Kunz
2016-05-20 00:31:53 +02:00
parent 96210fca9f
commit f3a81d60e9
25 changed files with 77 additions and 65 deletions

View File

@ -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;

View File

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

View File

@ -0,0 +1,5 @@
export class Smartfile {
constructor(){
};
}

View File

@ -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");

View File

@ -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 {

View File

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

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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",