From cadbc594c0e7b1b495863aa2d054ec229c24d1ed Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 11 May 2021 00:56:38 +0000 Subject: [PATCH] Rename the gulp-directory --- {.gulp => gulp}/Settings.ts | 30 +++++++++++++++--------------- {.gulp => gulp}/TaskFunction.ts | 3 +-- gulpfile.ts | 4 ++-- tsconfig.json | 3 ++- 4 files changed, 20 insertions(+), 20 deletions(-) rename {.gulp => gulp}/Settings.ts (87%) rename {.gulp => gulp}/TaskFunction.ts (57%) diff --git a/.gulp/Settings.ts b/gulp/Settings.ts similarity index 87% rename from .gulp/Settings.ts rename to gulp/Settings.ts index 42e2647..410792d 100644 --- a/.gulp/Settings.ts +++ b/gulp/Settings.ts @@ -84,7 +84,7 @@ export class Settings /** * A value indicating whether the debug-mode is enabled. */ - public get Debug() + public get Debug(): boolean { return this.Target === "Debug"; } @@ -95,10 +95,10 @@ export class Settings * @param path * The path to join. * - * @return + * @returns * The joined path. */ - public RootPath(...path: string[]) + public RootPath(...path: string[]): string { return Path.join(Path.dirname(__dirname), ...path); } @@ -112,7 +112,7 @@ export class Settings * @returns * The joined path. */ - public SourceRoot(...path: string[]) + public SourceRoot(...path: string[]): string { return this.RootPath(this.sourceRoot, ...path); } @@ -126,7 +126,7 @@ export class Settings * @returns * The joined path. */ - public TypeScriptProjectRoot(...path: string[]) + public TypeScriptProjectRoot(...path: string[]): string { return this.SourceRoot(this.typeScriptProjectRoot, ...path); } @@ -140,7 +140,7 @@ export class Settings * @returns * The joined path. */ - public TypeScriptSourceRoot(...path: string[]) + public TypeScriptSourceRoot(...path: string[]): string { return this.TypeScriptProjectRoot(this.typeScriptSourceRoot, ...path); } @@ -154,7 +154,7 @@ export class Settings * @returns * The joined path. */ - public LibraryPath(...path: string[]) + public LibraryPath(...path: string[]): string { return this.RootPath(this.libraryPath, ...path); } @@ -168,7 +168,7 @@ export class Settings * @returns * The joined path. */ - public ThemeSource(...path: string[]) + public ThemeSource(...path: string[]): string { return this.SourceRoot(this.themeSource, ...path); } @@ -182,7 +182,7 @@ export class Settings * @returns * The joined path. */ - public StylePath(...path: string[]) + public StylePath(...path: string[]): string { return this.RootPath(this.stylePath, ...path); } @@ -196,7 +196,7 @@ export class Settings * @returns * The joined path. */ - public TemplateSource(...path: string[]) + public TemplateSource(...path: string[]): string { return this.SourceRoot(this.templateSource, ...path); } @@ -210,7 +210,7 @@ export class Settings * @returns * The joined path. */ - public TemplatePath(...path: string[]) + public TemplatePath(...path: string[]): string { return this.RootPath(this.templatePath, ...path); } @@ -224,7 +224,7 @@ export class Settings * @returns * The joined path. */ - public TestPath(...path: string[]) + public TestPath(...path: string[]): string { return this.RootPath(this.testPath, ...path); } @@ -238,7 +238,7 @@ export class Settings * @returns * The joined path. */ - public TestWebsitePath(...path: string[]) + public TestWebsitePath(...path: string[]): string { return this.TestPath(this.testWebsitePath, ...path); } @@ -252,8 +252,8 @@ export class Settings * @returns * The joined path. */ - public TestThemePath(...path: string[]) + public TestThemePath(...path: string[]): string { return this.TestWebsitePath("themes", this.themeName, ...path); } -} \ No newline at end of file +} diff --git a/.gulp/TaskFunction.ts b/gulp/TaskFunction.ts similarity index 57% rename from .gulp/TaskFunction.ts rename to gulp/TaskFunction.ts index f3f46b8..c5011a8 100644 --- a/.gulp/TaskFunction.ts +++ b/gulp/TaskFunction.ts @@ -1,11 +1,10 @@ -import { TaskFunction } from "gulp"; +import { TaskFunction }from "gulp"; /** * @inheritdoc */ declare global { - // tslint:disable-next-line: completed-docs interface Function extends Partial { } } diff --git a/gulpfile.ts b/gulpfile.ts index 79f8a18..01fa4c1 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -17,8 +17,8 @@ import Path = require("upath"); import buffer = require("vinyl-buffer"); import vinylSourceStream = require("vinyl-source-stream"); import Watchify = require("watchify"); -import { Settings } from "./.gulp/Settings"; -import "./.gulp/TaskFunction"; +import { Settings } from "./gulp/Settings"; +import "./gulp/TaskFunction"; /** * The port to listen for stop-requests. diff --git a/tsconfig.json b/tsconfig.json index 097475e..2dec126 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,8 @@ "compilerOptions": { "noEmit": true }, - "files": [ + "include": [ + "./gulp/**", "./gulpfile.ts" ] }