Skip to content

Commit 9df3976

Browse files
committed
[2025-10-26] Array input to AbstractStage.runCustomScssDirSubStage
1 parent 0e45c15 commit 9df3976

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+484
-430
lines changed

dist/js/lib/03-stages/classes/CompileStage.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export declare class CompileStage extends AbstractStage<Stage.Args.Compile, Stag
5454
*
5555
* @since 0.2.0-alpha — Runs PostCSS if {@link Stage.Args.Compile.postCSS} is truthy.
5656
*/
57-
protected scss(): Promise<string[] | undefined>;
57+
protected scss(): Promise<void>;
5858
/**
5959
* Compiles typescript to javascript.
6060
*

dist/js/lib/03-stages/classes/CompileStage.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/lib/03-stages/classes/abstract/AbstractStage.d.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,9 @@ export declare abstract class AbstractStage<T_Args extends Stage.Args, T_SubStag
399399
*
400400
* @since 0.2.0-alpha.2 — Changed `postCSS` param to `opts` object param. Added returning output css filepaths. Improved some issues with the async compiling and sub-file finding.
401401
*
402-
* @since 0.3.0-alpha.1.draft — Added `sassOpts` param.
402+
* @since 0.3.0-alpha.1.draft — Added `sassOpts` param and allowed `subpath` to be an array.
403403
*/
404-
protected runCustomScssDirSubStage(subpath: string, distDir?: string, opts?: Partial<AbstractStage.runCustomScssDirSubStage.Opts>, logLevelBase?: number, sassOpts?: Stage.Compiler.Args.Sass): Promise<string[]>;
404+
protected runCustomScssDirSubStage(subpath: string | string[], distDir?: string, opts?: Partial<AbstractStage.runCustomScssDirSubStage.Opts>, logLevelBase?: number, sassOpts?: Stage.Compiler.Args.Sass): Promise<string[]>;
405405
/**
406406
* Deprecated overload here for forward-compatibility. Please use the
407407
* overload above instead.
@@ -410,7 +410,7 @@ export declare abstract class AbstractStage<T_Args extends Stage.Args, T_SubStag
410410
* {@link AbstractStage.runCustomScssDirSubStage.Opts} object as
411411
* the third param instead.
412412
*/
413-
protected runCustomScssDirSubStage(subpath: string, distDir?: string, postCSS?: boolean, logLevelBase?: number, sassOpts?: Stage.Compiler.Args.Sass): Promise<string[]>;
413+
protected runCustomScssDirSubStage(subpath: string | string[], distDir?: string, postCSS?: boolean, logLevelBase?: number, sassOpts?: Stage.Compiler.Args.Sass): Promise<string[]>;
414414
}
415415
/**
416416
* Utilities for the {@link AbstractStage} class.
@@ -471,6 +471,13 @@ export declare namespace AbstractStage {
471471
* @default true
472472
*/
473473
postCSS: boolean;
474+
/**
475+
* The base path for the source directory (used to rewrite the
476+
* output path).
477+
*
478+
* @since 0.3.0-alpha.1.draft
479+
*/
480+
srcDir?: string;
474481
}
475482
}
476483
}

dist/js/lib/03-stages/classes/abstract/AbstractStage.js

Lines changed: 39 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/types/Stage.d.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,16 @@ export interface Stage<T_Args extends Stage.Args = Stage.Args, T_SubStage extend
217217
* @since 0.1.0-alpha
218218
*/
219219
export declare namespace Stage {
220+
/**
221+
* Any stage class compatible with this package.
222+
*
223+
* These are all lowercase on purpose.
224+
*
225+
* @since 0.1.0-alpha
226+
*
227+
* @expand
228+
*/
229+
type Name = "snapshot" | "compile" | "test" | "document" | "build" | "package" | "release";
220230
/**
221231
* An object with an instance of each stage's class.
222232
*
@@ -878,16 +888,6 @@ export declare namespace Stage {
878888
}
879889
}
880890
}
881-
/**
882-
* Any stage class compatible with this package.
883-
*
884-
* These are all lowercase on purpose.
885-
*
886-
* @since 0.1.0-alpha
887-
*
888-
* @expand
889-
*/
890-
type Name = "snapshot" | "compile" | "test" | "document" | "build" | "package" | "release";
891891
/**
892892
* Default substage names.
893893
*

0 commit comments

Comments
 (0)