Rename the gulp-directory

This commit is contained in:
Manuel Thalmann 2021-05-11 00:56:38 +00:00
parent 90bb091ae8
commit cadbc594c0
4 changed files with 20 additions and 20 deletions

View file

@ -84,7 +84,7 @@ export class Settings
/** /**
* A value indicating whether the debug-mode is enabled. * A value indicating whether the debug-mode is enabled.
*/ */
public get Debug() public get Debug(): boolean
{ {
return this.Target === "Debug"; return this.Target === "Debug";
} }
@ -95,10 +95,10 @@ export class Settings
* @param path * @param path
* The path to join. * The path to join.
* *
* @return * @returns
* The joined path. * The joined path.
*/ */
public RootPath(...path: string[]) public RootPath(...path: string[]): string
{ {
return Path.join(Path.dirname(__dirname), ...path); return Path.join(Path.dirname(__dirname), ...path);
} }
@ -112,7 +112,7 @@ export class Settings
* @returns * @returns
* The joined path. * The joined path.
*/ */
public SourceRoot(...path: string[]) public SourceRoot(...path: string[]): string
{ {
return this.RootPath(this.sourceRoot, ...path); return this.RootPath(this.sourceRoot, ...path);
} }
@ -126,7 +126,7 @@ export class Settings
* @returns * @returns
* The joined path. * The joined path.
*/ */
public TypeScriptProjectRoot(...path: string[]) public TypeScriptProjectRoot(...path: string[]): string
{ {
return this.SourceRoot(this.typeScriptProjectRoot, ...path); return this.SourceRoot(this.typeScriptProjectRoot, ...path);
} }
@ -140,7 +140,7 @@ export class Settings
* @returns * @returns
* The joined path. * The joined path.
*/ */
public TypeScriptSourceRoot(...path: string[]) public TypeScriptSourceRoot(...path: string[]): string
{ {
return this.TypeScriptProjectRoot(this.typeScriptSourceRoot, ...path); return this.TypeScriptProjectRoot(this.typeScriptSourceRoot, ...path);
} }
@ -154,7 +154,7 @@ export class Settings
* @returns * @returns
* The joined path. * The joined path.
*/ */
public LibraryPath(...path: string[]) public LibraryPath(...path: string[]): string
{ {
return this.RootPath(this.libraryPath, ...path); return this.RootPath(this.libraryPath, ...path);
} }
@ -168,7 +168,7 @@ export class Settings
* @returns * @returns
* The joined path. * The joined path.
*/ */
public ThemeSource(...path: string[]) public ThemeSource(...path: string[]): string
{ {
return this.SourceRoot(this.themeSource, ...path); return this.SourceRoot(this.themeSource, ...path);
} }
@ -182,7 +182,7 @@ export class Settings
* @returns * @returns
* The joined path. * The joined path.
*/ */
public StylePath(...path: string[]) public StylePath(...path: string[]): string
{ {
return this.RootPath(this.stylePath, ...path); return this.RootPath(this.stylePath, ...path);
} }
@ -196,7 +196,7 @@ export class Settings
* @returns * @returns
* The joined path. * The joined path.
*/ */
public TemplateSource(...path: string[]) public TemplateSource(...path: string[]): string
{ {
return this.SourceRoot(this.templateSource, ...path); return this.SourceRoot(this.templateSource, ...path);
} }
@ -210,7 +210,7 @@ export class Settings
* @returns * @returns
* The joined path. * The joined path.
*/ */
public TemplatePath(...path: string[]) public TemplatePath(...path: string[]): string
{ {
return this.RootPath(this.templatePath, ...path); return this.RootPath(this.templatePath, ...path);
} }
@ -224,7 +224,7 @@ export class Settings
* @returns * @returns
* The joined path. * The joined path.
*/ */
public TestPath(...path: string[]) public TestPath(...path: string[]): string
{ {
return this.RootPath(this.testPath, ...path); return this.RootPath(this.testPath, ...path);
} }
@ -238,7 +238,7 @@ export class Settings
* @returns * @returns
* The joined path. * The joined path.
*/ */
public TestWebsitePath(...path: string[]) public TestWebsitePath(...path: string[]): string
{ {
return this.TestPath(this.testWebsitePath, ...path); return this.TestPath(this.testWebsitePath, ...path);
} }
@ -252,7 +252,7 @@ export class Settings
* @returns * @returns
* The joined path. * The joined path.
*/ */
public TestThemePath(...path: string[]) public TestThemePath(...path: string[]): string
{ {
return this.TestWebsitePath("themes", this.themeName, ...path); return this.TestWebsitePath("themes", this.themeName, ...path);
} }

View file

@ -1,11 +1,10 @@
import { TaskFunction } from "gulp"; import { TaskFunction }from "gulp";
/** /**
* @inheritdoc * @inheritdoc
*/ */
declare global declare global
{ {
// tslint:disable-next-line: completed-docs
interface Function extends Partial<TaskFunction> interface Function extends Partial<TaskFunction>
{ } { }
} }

View file

@ -17,8 +17,8 @@ import Path = require("upath");
import buffer = require("vinyl-buffer"); import buffer = require("vinyl-buffer");
import vinylSourceStream = require("vinyl-source-stream"); import vinylSourceStream = require("vinyl-source-stream");
import Watchify = require("watchify"); import Watchify = require("watchify");
import { Settings } from "./.gulp/Settings"; import { Settings } from "./gulp/Settings";
import "./.gulp/TaskFunction"; import "./gulp/TaskFunction";
/** /**
* The port to listen for stop-requests. * The port to listen for stop-requests.

View file

@ -3,7 +3,8 @@
"compilerOptions": { "compilerOptions": {
"noEmit": true "noEmit": true
}, },
"files": [ "include": [
"./gulp/**",
"./gulpfile.ts" "./gulpfile.ts"
] ]
} }