prepare indent functionality

This commit is contained in:
LosslessBot
2016-07-06 10:04:25 +02:00
parent 3893985bb2
commit c124f90a91
25 changed files with 84 additions and 62 deletions

View File

@ -1,8 +1,10 @@
import "typings-global"
import SmartstringDocker = require("./smartstring.docker");
import SmartstringTypescript = require("./smartstring.typescript");
import * as plugins from "./smartstring.plugins";
import * as SmartstringDocker from "./smartstring.docker";
import * as SmartstringTypescript from "./smartstring.typescript";
import * as SmartstringIndent from "./smartstring.indent";
export {Domain} from "./smartstring.domain";
export {GitRepo} from "./smartstring.git";
export let docker = SmartstringDocker;
export let typescript = SmartstringTypescript;
export let typescript = SmartstringTypescript;
export let indent = SmartstringIndent;

View File

@ -1,5 +1,4 @@
import "typings-global"
import plugins = require("./smartstring.plugins");
import * as plugins from "./smartstring.plugins";
/**
* converts an erray of env strings from docker remote api to an usable object.

View File

@ -1,5 +1,4 @@
import "typings-global"
import plugins = require("./smartstring.plugins");
import * as plugins from "./smartstring.plugins";
export class Domain {
fullName:string;

View File

@ -1,5 +1,4 @@
import "typings-global"
import plugins = require("./smartstring.plugins");
import * as plugins from "./smartstring.plugins";
/* ---------------------------------------------- *
* ------------------ classes ------------------- *

29
ts/smartstring.indent.ts Normal file
View File

@ -0,0 +1,29 @@
import * as plugins from "./smartstring.plugins";
let splitString = (stringArg:string):string[] => {
let stringArray:string[] = [];
return stringArray;
};
let joinString = (stringArrayArg:string[]):string => {
let localString:string = "";
for(let line of stringArrayArg){
localString = localString + line + "\n";
};
return localString;
}
export let indent = (stringArg:string,spaceAmount:number):string => {
return;
};
export let indentWithPrefix = (stringArg:string,prefixArg:string):string => {
return;
};
export let deIndent = (stringArg:string):string => {
return
}

View File

@ -1,3 +1,2 @@
import "typings-global"
export import beautylog = require("beautylog");
export import beautylog = require("beautylog");

View File

@ -1,4 +1,3 @@
import "typings-global"
import plugins = require("./smartstring.plugins");
import * as plugins from "./smartstring.plugins";
export let regexReferencePath = /\/\/\/\s*<reference\s+path\s*=\s*["|'].*["|']\s*\/>\s*[\\n]?/

View File

@ -1,7 +0,0 @@
{
"ambientDependencies": {
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts",
"mocha": "github:Bartvds/tsd-deftools/typings/DefinitelyTyped/mocha/mocha.d.ts",
"colors": "github:DefinitelyTyped/DefinitelyTyped/colors/colors.d.ts"
}
}