diff --git a/glob-base/glob-base-tests.ts b/glob-base/glob-base-tests.ts new file mode 100644 index 0000000000..6890c435e2 --- /dev/null +++ b/glob-base/glob-base-tests.ts @@ -0,0 +1,7 @@ +import * as globBase from "glob-base"; + +const result = globBase("**/*.ts"); + +const isGlob = result.isGlob; +const glob = result.glob; +const base = result.base; diff --git a/glob-base/index.d.ts b/glob-base/index.d.ts new file mode 100644 index 0000000000..ce47b2a797 --- /dev/null +++ b/glob-base/index.d.ts @@ -0,0 +1,16 @@ +// Type definitions for glob-base 0.3 +// Project: https://github.com/jonschlinkert/glob-base +// Definitions by: Alan Agius +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function globbase(basePath?: string): globbase.GlobBaseResult; + +declare namespace globbase { + interface GlobBaseResult { + base: string; + isGlob: boolean; + glob: string; + } +} + +export = globbase; diff --git a/glob-base/tsconfig.json b/glob-base/tsconfig.json new file mode 100644 index 0000000000..b7244ca371 --- /dev/null +++ b/glob-base/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "glob-base-tests.ts" + ] +} diff --git a/glob-base/tslint.json b/glob-base/tslint.json new file mode 100644 index 0000000000..377cc837d4 --- /dev/null +++ b/glob-base/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" }