|
7 | 7 | * @maddimathon/build-utilities@0.3.0-alpha.1.draft |
8 | 8 | * @license MIT |
9 | 9 | */ |
| 10 | +import { DateTime } from 'luxon'; |
10 | 11 | import * as postcss_PresetEnv from 'postcss-preset-env'; |
11 | | -import type { Json } from '@maddimathon/utility-typescript/types'; |
| 12 | +import * as sass from 'sass'; |
| 13 | +import type { Json, Objects } from '@maddimathon/utility-typescript/types'; |
12 | 14 | import type { CLI, Config, Stage } from '../../../types/index.js'; |
13 | 15 | import { FileSystem } from '../../00-universal/index.js'; |
14 | 16 | import type { Stage_Console } from './Stage_Console.js'; |
@@ -154,14 +156,32 @@ export declare class Stage_Compiler implements Stage.Compiler { |
154 | 156 | */ |
155 | 157 | readonly postCSS: Stage.Compiler.Args.PostCSS; |
156 | 158 | readonly sass: { |
| 159 | + readonly alertAscii: undefined; |
| 160 | + readonly alertColor: undefined; |
| 161 | + readonly benchmarkCompileTime: undefined; |
157 | 162 | readonly charset: true; |
| 163 | + readonly cli: undefined; |
| 164 | + readonly compileViaCLI: undefined; |
| 165 | + readonly fatalDeprecations: undefined; |
| 166 | + readonly functions: undefined; |
| 167 | + readonly futureDeprecations: undefined; |
| 168 | + readonly importers: undefined; |
| 169 | + readonly isWatchedUpdate: undefined; |
| 170 | + readonly loadPaths: undefined; |
| 171 | + readonly logger: undefined; |
| 172 | + readonly quietDeps: undefined; |
| 173 | + readonly silenceDeprecations: undefined; |
158 | 174 | readonly sourceMap: true; |
159 | 175 | readonly sourceMapIncludeSources: true; |
160 | 176 | readonly style: "expanded"; |
| 177 | + readonly useAsyncCompiler: false; |
| 178 | + readonly verbose: undefined; |
161 | 179 | }; |
162 | 180 | readonly ts: {}; |
163 | 181 | }; |
164 | | - readonly args: Stage.Compiler.Args; |
| 182 | + readonly args: Stage.Compiler.Args & { |
| 183 | + sass: Objects.Classify<Stage.Compiler.Args.Sass>; |
| 184 | + }; |
165 | 185 | /** |
166 | 186 | * @param config Current project config. |
167 | 187 | * @param params Current CLI params. |
@@ -199,6 +219,48 @@ export declare class Stage_Compiler implements Stage.Compiler { |
199 | 219 | from: string; |
200 | 220 | to?: string; |
201 | 221 | }[], level: number, _postCssOpts?: Stage.Compiler.Args.PostCSS): Promise<void>; |
| 222 | + /** |
| 223 | + * Creates the message for the benchmark end notice. |
| 224 | + * |
| 225 | + * @since 0.3.0-alpha.1.draft |
| 226 | + */ |
| 227 | + protected benchmarkStartTimeMaker(msg: string, start: DateTime): string; |
| 228 | + /** |
| 229 | + * Creates the message for the benchmark end notice. |
| 230 | + * |
| 231 | + * @since 0.3.0-alpha.1.draft |
| 232 | + */ |
| 233 | + protected benchmarkEndTimeMaker(msg: string, start: DateTime, end?: DateTime): string; |
| 234 | + /** |
| 235 | + * Runs the compiler from the sass package. |
| 236 | + * |
| 237 | + * @since 0.3.0-alpha.1.draft |
| 238 | + */ |
| 239 | + protected sassCompiler(input: string, opts: Stage.Compiler.Args.Sass): Promise<{ |
| 240 | + compiled: sass.CompileResult; |
| 241 | + end: DateTime<true>; |
| 242 | + }>; |
| 243 | + /** |
| 244 | + * This skips compiling options and validating values. |
| 245 | + * |
| 246 | + * @since 0.3.0-alpha.1.draft |
| 247 | + */ |
| 248 | + protected scssAPI(input: string, output: string, level: number, sassCompleteOpts: Objects.Classify<Stage.Compiler.Args.Sass>): Promise<string>; |
| 249 | + /** |
| 250 | + * Coverts scss args for the CLI. |
| 251 | + * |
| 252 | + * @since 0.3.0-alpha.1.draft |
| 253 | + */ |
| 254 | + protected scssCLI_args(completeSassOpts: Stage.Compiler.Args.Sass): string; |
| 255 | + /** |
| 256 | + * Compiles scs via CLI. This skips compiling options and validating values. |
| 257 | + * |
| 258 | + * @since 0.3.0-alpha.1.draft |
| 259 | + */ |
| 260 | + protected scssCLI(input: string, output: string, level: number, sassCompleteOpts: Objects.Classify<Stage.Compiler.Args.Sass>): Promise<{ |
| 261 | + compiled: string; |
| 262 | + end: DateTime<true>; |
| 263 | + }>; |
202 | 264 | scss(input: string, output: string, level: number, sassOpts?: Stage.Compiler.Args.Sass): Promise<string>; |
203 | 265 | scssBulk(paths: { |
204 | 266 | input: string; |
|
0 commit comments