just-scripts 2.2.2 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +46 -1
- package/CHANGELOG.md +18 -2
- package/lib/index.d.ts +4 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/tasks/apiExtractorTask.d.ts +0 -2
- package/lib/tasks/apiExtractorTask.d.ts.map +1 -1
- package/lib/tasks/apiExtractorTask.js.map +1 -1
- package/lib/tasks/prettierTask.d.ts +1 -2
- package/lib/tasks/prettierTask.d.ts.map +1 -1
- package/lib/webpack/overlays/stylesOverlay.d.ts +1 -2
- package/lib/webpack/overlays/stylesOverlay.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +4 -2
- package/src/tasks/apiExtractorTask.ts +0 -2
- package/src/tasks/prettierTask.ts +1 -1
- package/src/webpack/overlays/stylesOverlay.ts +1 -1
- package/api-extractor.json +0 -4
- package/config/apiExtractor/api-extractor.json +0 -13
- package/etc/just-scripts.api.md +0 -538
- package/src/copy/__tests__/CopyInstruction.spec.ts +0 -14
- package/src/copy/__tests__/executeCopyInstructions.spec.ts +0 -192
- package/src/tasks/__tests__/__snapshots__/tscTask.spec.ts.snap +0 -205
- package/src/tasks/__tests__/callTaskForTest.ts +0 -28
- package/src/tasks/__tests__/mockExecFactory.ts +0 -29
- package/src/tasks/__tests__/normalizeCmdArgsForTest.ts +0 -30
- package/src/tasks/__tests__/tscTask.spec.ts +0 -440
package/etc/just-scripts.api.md
DELETED
|
@@ -1,538 +0,0 @@
|
|
|
1
|
-
## API Report File for "just-scripts"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
/// <reference types="node" />
|
|
8
|
-
|
|
9
|
-
import type * as ApiExtractorTypes from '@microsoft/api-extractor';
|
|
10
|
-
import type { BuildOptions } from 'esbuild';
|
|
11
|
-
import { Configuration } from 'webpack';
|
|
12
|
-
import { spawn } from 'just-scripts-utils';
|
|
13
|
-
import { SpawnOptions } from 'child_process';
|
|
14
|
-
import { TaskFunction } from 'just-task';
|
|
15
|
-
import * as ts from 'typescript';
|
|
16
|
-
import * as webpackMerge from 'webpack-merge';
|
|
17
|
-
|
|
18
|
-
// @public
|
|
19
|
-
export interface ApiExtractorOptions extends ApiExtractorTypes.IExtractorInvokeOptions {
|
|
20
|
-
configJsonFilePath?: string;
|
|
21
|
-
// @deprecated (undocumented)
|
|
22
|
-
fixNewlines?: boolean;
|
|
23
|
-
onConfigLoaded?: (config: ApiExtractorTypes.IConfigFile) => void;
|
|
24
|
-
onResult?: (result: any, extractorOptions: any) => void;
|
|
25
|
-
projectFolder?: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// @public
|
|
29
|
-
export function apiExtractorUpdateTask(options: ApiExtractorOptions): TaskFunction;
|
|
30
|
-
|
|
31
|
-
// Warning: (ae-forgotten-export) The symbol "Omit_2" needs to be exported by the entry point index.d.ts
|
|
32
|
-
//
|
|
33
|
-
// @public @deprecated (undocumented)
|
|
34
|
-
export function apiExtractorUpdateTask(configJsonFilePath: string, extractorOptions: Omit_2<ApiExtractorOptions, 'configJsonFilePath'>): TaskFunction;
|
|
35
|
-
|
|
36
|
-
// @public (undocumented)
|
|
37
|
-
export function apiExtractorVerifyTask(options: ApiExtractorOptions): TaskFunction;
|
|
38
|
-
|
|
39
|
-
// @public @deprecated (undocumented)
|
|
40
|
-
export function apiExtractorVerifyTask(configJsonFilePath: string, extractorOptions: Omit_2<ApiExtractorOptions, 'configJsonFilePath'>): TaskFunction;
|
|
41
|
-
|
|
42
|
-
// @public (undocumented)
|
|
43
|
-
export const basicWebpackConfig: Configuration;
|
|
44
|
-
|
|
45
|
-
// @public (undocumented)
|
|
46
|
-
export const basicWebpackServeConfig: Configuration;
|
|
47
|
-
|
|
48
|
-
// @public (undocumented)
|
|
49
|
-
export function cleanTask(options?: CleanTaskOptions): TaskFunction;
|
|
50
|
-
|
|
51
|
-
// @public @deprecated (undocumented)
|
|
52
|
-
export function cleanTask(paths?: string[], limit?: number): TaskFunction;
|
|
53
|
-
|
|
54
|
-
// @public (undocumented)
|
|
55
|
-
export interface CleanTaskOptions {
|
|
56
|
-
limit?: number;
|
|
57
|
-
paths?: string[];
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// @public (undocumented)
|
|
61
|
-
export interface CopyConfig {
|
|
62
|
-
// (undocumented)
|
|
63
|
-
copyInstructions: CopyInstruction[];
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// @public
|
|
67
|
-
function copyFilesInDirectory(sourceDirectoryPath: string, outputDirectoryPath: string, filterFunction?: (file: string) => boolean, noSymlinks?: boolean): CopyInstruction[];
|
|
68
|
-
|
|
69
|
-
// @public
|
|
70
|
-
function copyFilesToDestinationDirectory(sourceFilePaths: string | string[], destinationDirectory: string, noSymlinks?: boolean): CopyInstruction[];
|
|
71
|
-
|
|
72
|
-
// @public
|
|
73
|
-
function copyFilesToDestinationDirectoryWithRename(instrs: {
|
|
74
|
-
sourceFilePath: string;
|
|
75
|
-
destinationName: string;
|
|
76
|
-
}[], destinationDirectory: string, noSymlinks?: boolean): CopyInstruction[];
|
|
77
|
-
|
|
78
|
-
// @public
|
|
79
|
-
function copyFileToDestinationDirectoryWithRename(sourceFilePath: string, destinationName: string, destinationDirectory: string, noSymlink?: boolean): CopyInstruction[];
|
|
80
|
-
|
|
81
|
-
// @public (undocumented)
|
|
82
|
-
export interface CopyInstruction {
|
|
83
|
-
destinationFilePath: string;
|
|
84
|
-
noSymlink?: boolean;
|
|
85
|
-
sourceFilePath: string | string[];
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
declare namespace copyInstructions {
|
|
89
|
-
export {
|
|
90
|
-
copyFilesToDestinationDirectory,
|
|
91
|
-
copyFileToDestinationDirectoryWithRename,
|
|
92
|
-
copyFilesToDestinationDirectoryWithRename,
|
|
93
|
-
copyFilesInDirectory,
|
|
94
|
-
mergeFiles,
|
|
95
|
-
CopyInstruction,
|
|
96
|
-
CopyConfig
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
export { copyInstructions }
|
|
100
|
-
|
|
101
|
-
// @public
|
|
102
|
-
export function copyInstructionsTask(config?: CopyConfig): TaskFunction;
|
|
103
|
-
|
|
104
|
-
// @public (undocumented)
|
|
105
|
-
export function copyTask(options: CopyTaskOptions): TaskFunction;
|
|
106
|
-
|
|
107
|
-
// @public @deprecated (undocumented)
|
|
108
|
-
export function copyTask(paths: string[] | undefined, dest: string, limit?: number): TaskFunction;
|
|
109
|
-
|
|
110
|
-
// @public (undocumented)
|
|
111
|
-
export interface CopyTaskOptions {
|
|
112
|
-
dest: string;
|
|
113
|
-
limit?: number;
|
|
114
|
-
paths?: string[];
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// @public (undocumented)
|
|
118
|
-
export interface CreateOptions {
|
|
119
|
-
cwd?: string;
|
|
120
|
-
dereference?: boolean;
|
|
121
|
-
entries?: string[];
|
|
122
|
-
file: string;
|
|
123
|
-
filter?: (path: string, header: EntryHeader) => boolean;
|
|
124
|
-
gzip?: boolean | {
|
|
125
|
-
level?: number;
|
|
126
|
-
memLevel?: number;
|
|
127
|
-
};
|
|
128
|
-
map?: (header: EntryHeader) => EntryHeader;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
// Warning: (ae-forgotten-export) The symbol "CssLoaderOptions" needs to be exported by the entry point index.d.ts
|
|
132
|
-
//
|
|
133
|
-
// @public (undocumented)
|
|
134
|
-
export const createStylesOverlay: (options?: CssLoaderOptions) => Partial<Configuration>;
|
|
135
|
-
|
|
136
|
-
// @public
|
|
137
|
-
export function createTarTask(options?: CreateOptions): TaskFunction;
|
|
138
|
-
|
|
139
|
-
// @public (undocumented)
|
|
140
|
-
interface CssLoaderOptions {
|
|
141
|
-
// (undocumented)
|
|
142
|
-
localIdentName?: string;
|
|
143
|
-
// (undocumented)
|
|
144
|
-
modules?: boolean;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// @public (undocumented)
|
|
148
|
-
export function defaultCleanPaths(): string[];
|
|
149
|
-
|
|
150
|
-
// @public (undocumented)
|
|
151
|
-
export const displayBailoutOverlay: () => Partial<Configuration>;
|
|
152
|
-
|
|
153
|
-
// @public (undocumented)
|
|
154
|
-
export interface EntryHeader {
|
|
155
|
-
// (undocumented)
|
|
156
|
-
devmajor: number;
|
|
157
|
-
// (undocumented)
|
|
158
|
-
devminor: number;
|
|
159
|
-
// (undocumented)
|
|
160
|
-
gid: number;
|
|
161
|
-
// (undocumented)
|
|
162
|
-
gname: string;
|
|
163
|
-
linkname: string;
|
|
164
|
-
mode: number;
|
|
165
|
-
mtime: Date;
|
|
166
|
-
// (undocumented)
|
|
167
|
-
name: string;
|
|
168
|
-
// (undocumented)
|
|
169
|
-
size: number;
|
|
170
|
-
type: 'file' | 'link' | 'symlink' | 'directory' | 'block-device' | 'character-device' | 'fifo' | 'contiguous-file';
|
|
171
|
-
// (undocumented)
|
|
172
|
-
uid: number;
|
|
173
|
-
// (undocumented)
|
|
174
|
-
uname: string;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
// @public (undocumented)
|
|
178
|
-
export type EsbuildBuildOptions = BuildOptions;
|
|
179
|
-
|
|
180
|
-
// @public
|
|
181
|
-
export function esbuildTask(options?: EsbuildBuildOptions): TaskFunction;
|
|
182
|
-
|
|
183
|
-
// @public (undocumented)
|
|
184
|
-
export interface EsbuildTransformOptions {
|
|
185
|
-
// (undocumented)
|
|
186
|
-
esbuildOptions: BuildOptions;
|
|
187
|
-
// (undocumented)
|
|
188
|
-
include: string[] | string;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
// @public (undocumented)
|
|
192
|
-
export function eslintTask(options?: EsLintTaskOptions): TaskFunction;
|
|
193
|
-
|
|
194
|
-
// @public
|
|
195
|
-
export interface EsLintTaskOptions {
|
|
196
|
-
// (undocumented)
|
|
197
|
-
cache?: boolean;
|
|
198
|
-
// (undocumented)
|
|
199
|
-
cacheLocation?: string;
|
|
200
|
-
// (undocumented)
|
|
201
|
-
configPath?: string;
|
|
202
|
-
// (undocumented)
|
|
203
|
-
extensions?: string;
|
|
204
|
-
// (undocumented)
|
|
205
|
-
files?: string[];
|
|
206
|
-
// (undocumented)
|
|
207
|
-
fix?: boolean;
|
|
208
|
-
format?: string;
|
|
209
|
-
// (undocumented)
|
|
210
|
-
ignorePath?: string;
|
|
211
|
-
// (undocumented)
|
|
212
|
-
maxWarnings?: number;
|
|
213
|
-
// (undocumented)
|
|
214
|
-
noEslintRc?: boolean;
|
|
215
|
-
outputFile?: string;
|
|
216
|
-
quiet?: boolean;
|
|
217
|
-
// (undocumented)
|
|
218
|
-
resolvePluginsPath?: string;
|
|
219
|
-
timing?: boolean;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
// @public (undocumented)
|
|
223
|
-
export interface ExtractOptions {
|
|
224
|
-
cwd?: string;
|
|
225
|
-
dereference?: boolean;
|
|
226
|
-
dmode?: number;
|
|
227
|
-
file: string;
|
|
228
|
-
filter?: (path: string, header: EntryHeader) => boolean;
|
|
229
|
-
fmode?: number;
|
|
230
|
-
gzip?: boolean;
|
|
231
|
-
map?: (header: EntryHeader) => EntryHeader;
|
|
232
|
-
readable?: boolean;
|
|
233
|
-
writable?: boolean;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
// @public
|
|
237
|
-
export function extractTarTask(options?: ExtractOptions): TaskFunction;
|
|
238
|
-
|
|
239
|
-
// @public (undocumented)
|
|
240
|
-
export const fileOverlay: () => Partial<Configuration>;
|
|
241
|
-
|
|
242
|
-
// @public
|
|
243
|
-
export function fixApiFileNewlines(apiFilePath: string, newlineOptions: {
|
|
244
|
-
sampleFilePath?: string;
|
|
245
|
-
newline?: string;
|
|
246
|
-
}): void;
|
|
247
|
-
|
|
248
|
-
// @public (undocumented)
|
|
249
|
-
export const htmlOverlay: (options: any) => Partial<Configuration>;
|
|
250
|
-
|
|
251
|
-
// @public (undocumented)
|
|
252
|
-
export function jestTask(options?: JestTaskOptions): TaskFunction;
|
|
253
|
-
|
|
254
|
-
// @public (undocumented)
|
|
255
|
-
export interface JestTaskOptions {
|
|
256
|
-
// (undocumented)
|
|
257
|
-
_?: string[];
|
|
258
|
-
// (undocumented)
|
|
259
|
-
clearCache?: boolean;
|
|
260
|
-
// (undocumented)
|
|
261
|
-
colors?: boolean;
|
|
262
|
-
// (undocumented)
|
|
263
|
-
config?: string;
|
|
264
|
-
// (undocumented)
|
|
265
|
-
coverage?: boolean;
|
|
266
|
-
env?: NodeJS.ProcessEnv;
|
|
267
|
-
nodeArgs?: string[];
|
|
268
|
-
// (undocumented)
|
|
269
|
-
passWithNoTests?: boolean;
|
|
270
|
-
// (undocumented)
|
|
271
|
-
rootDir?: string;
|
|
272
|
-
// (undocumented)
|
|
273
|
-
runInBand?: boolean;
|
|
274
|
-
// (undocumented)
|
|
275
|
-
silent?: boolean;
|
|
276
|
-
// (undocumented)
|
|
277
|
-
testNamePattern?: string;
|
|
278
|
-
// (undocumented)
|
|
279
|
-
testPathPattern?: string;
|
|
280
|
-
// (undocumented)
|
|
281
|
-
u?: boolean;
|
|
282
|
-
// (undocumented)
|
|
283
|
-
updateSnapshot?: boolean;
|
|
284
|
-
// (undocumented)
|
|
285
|
-
watch?: boolean;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
// @public (undocumented)
|
|
289
|
-
function lib(): void;
|
|
290
|
-
|
|
291
|
-
// @public
|
|
292
|
-
function mergeFiles(sourceFilePaths: string[], destinationFilePath: string): CopyInstruction;
|
|
293
|
-
|
|
294
|
-
// @public (undocumented)
|
|
295
|
-
export function nodeExecTask(options: NodeExecTaskOptions): TaskFunction;
|
|
296
|
-
|
|
297
|
-
// @public (undocumented)
|
|
298
|
-
export interface NodeExecTaskOptions {
|
|
299
|
-
args?: string[];
|
|
300
|
-
enableTypeScript?: boolean;
|
|
301
|
-
env?: NodeJS.ProcessEnv;
|
|
302
|
-
spawnOptions?: SpawnOptions;
|
|
303
|
-
transpileOnly?: boolean;
|
|
304
|
-
tsconfig?: string;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
// @public (undocumented)
|
|
308
|
-
type Omit_2<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
|
|
309
|
-
|
|
310
|
-
// Warning: (ae-forgotten-export) The symbol "PrettierTaskOptions" needs to be exported by the entry point index.d.ts
|
|
311
|
-
//
|
|
312
|
-
// @public (undocumented)
|
|
313
|
-
export function prettierCheckTask(options?: PrettierTaskOptions): TaskFunction;
|
|
314
|
-
|
|
315
|
-
// @public (undocumented)
|
|
316
|
-
export function prettierTask(options?: PrettierTaskOptions): TaskFunction;
|
|
317
|
-
|
|
318
|
-
// @public (undocumented)
|
|
319
|
-
interface PrettierTaskOptions {
|
|
320
|
-
// (undocumented)
|
|
321
|
-
configPath?: string;
|
|
322
|
-
// (undocumented)
|
|
323
|
-
files?: string[] | string;
|
|
324
|
-
// (undocumented)
|
|
325
|
-
ignorePath?: string;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
// @public (undocumented)
|
|
329
|
-
export function sassTask(options: SassTaskOptions): TaskFunction;
|
|
330
|
-
|
|
331
|
-
// @public @deprecated (undocumented)
|
|
332
|
-
export function sassTask(createSourceModule: (fileName: string, css: string) => string, postcssPlugins?: any[]): TaskFunction;
|
|
333
|
-
|
|
334
|
-
// @public (undocumented)
|
|
335
|
-
export interface SassTaskOptions {
|
|
336
|
-
// (undocumented)
|
|
337
|
-
createSourceModule: (fileName: string, css: string) => string;
|
|
338
|
-
// (undocumented)
|
|
339
|
-
postcssPlugins?: any[];
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
export { spawn }
|
|
343
|
-
|
|
344
|
-
// @public (undocumented)
|
|
345
|
-
export const stylesOverlay: () => Partial<Configuration>;
|
|
346
|
-
|
|
347
|
-
declare namespace taskPresets {
|
|
348
|
-
export {
|
|
349
|
-
lib,
|
|
350
|
-
webapp
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
export { taskPresets }
|
|
354
|
-
|
|
355
|
-
// @public (undocumented)
|
|
356
|
-
export interface TsCheckerOptions {
|
|
357
|
-
// (undocumented)
|
|
358
|
-
async: boolean;
|
|
359
|
-
// (undocumented)
|
|
360
|
-
checkSyntacticErrors: boolean;
|
|
361
|
-
// (undocumented)
|
|
362
|
-
colors: boolean;
|
|
363
|
-
// (undocumented)
|
|
364
|
-
compilerOptions: object;
|
|
365
|
-
// (undocumented)
|
|
366
|
-
eslint: true | undefined;
|
|
367
|
-
eslintOptions: object;
|
|
368
|
-
// (undocumented)
|
|
369
|
-
ignoreDiagnostics: number[];
|
|
370
|
-
// (undocumented)
|
|
371
|
-
ignoreLints: string[];
|
|
372
|
-
// (undocumented)
|
|
373
|
-
ignoreLintWarnings: boolean;
|
|
374
|
-
// (undocumented)
|
|
375
|
-
measureCompilationTime: boolean;
|
|
376
|
-
// (undocumented)
|
|
377
|
-
memoryLimit: number;
|
|
378
|
-
// (undocumented)
|
|
379
|
-
reportFiles: string[];
|
|
380
|
-
// (undocumented)
|
|
381
|
-
resolveModuleNameModule: string;
|
|
382
|
-
// (undocumented)
|
|
383
|
-
resolveTypeReferenceDirectiveModule: string;
|
|
384
|
-
// (undocumented)
|
|
385
|
-
silent: boolean;
|
|
386
|
-
// (undocumented)
|
|
387
|
-
tsconfig: string;
|
|
388
|
-
// (undocumented)
|
|
389
|
-
tslint: string | true | undefined;
|
|
390
|
-
// (undocumented)
|
|
391
|
-
tslintAutoFix: boolean;
|
|
392
|
-
// (undocumented)
|
|
393
|
-
typescript: string;
|
|
394
|
-
// (undocumented)
|
|
395
|
-
useTypescriptIncrementalApi: boolean;
|
|
396
|
-
// (undocumented)
|
|
397
|
-
vue: boolean;
|
|
398
|
-
// (undocumented)
|
|
399
|
-
watch: string | string[];
|
|
400
|
-
// (undocumented)
|
|
401
|
-
workers: number;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
// @public
|
|
405
|
-
export function tscTask(options?: TscTaskOptions): TaskFunction;
|
|
406
|
-
|
|
407
|
-
// @public (undocumented)
|
|
408
|
-
export type TscTaskOptions = {
|
|
409
|
-
[key in keyof ts.CompilerOptions]?: string | boolean | string[];
|
|
410
|
-
} & {
|
|
411
|
-
nodeArgs?: string[];
|
|
412
|
-
};
|
|
413
|
-
|
|
414
|
-
// @public
|
|
415
|
-
export function tscWatchTask(options?: TscTaskOptions): TaskFunction;
|
|
416
|
-
|
|
417
|
-
// @public (undocumented)
|
|
418
|
-
export function tslintTask(options?: TsLintTaskOptions): TaskFunction;
|
|
419
|
-
|
|
420
|
-
// @public (undocumented)
|
|
421
|
-
export interface TsLintTaskOptions {
|
|
422
|
-
// (undocumented)
|
|
423
|
-
config?: string;
|
|
424
|
-
// (undocumented)
|
|
425
|
-
fix?: boolean;
|
|
426
|
-
// (undocumented)
|
|
427
|
-
project?: string;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
// @public (undocumented)
|
|
431
|
-
export interface TsLoaderOptions {
|
|
432
|
-
// (undocumented)
|
|
433
|
-
allowTsInNodeModules: boolean;
|
|
434
|
-
// (undocumented)
|
|
435
|
-
colors: boolean;
|
|
436
|
-
// (undocumented)
|
|
437
|
-
compilerOptions: ts.CompilerOptions;
|
|
438
|
-
// (undocumented)
|
|
439
|
-
configFile: string;
|
|
440
|
-
// (undocumented)
|
|
441
|
-
experimentalFileCaching: boolean;
|
|
442
|
-
// (undocumented)
|
|
443
|
-
experimentalWatchApi: boolean;
|
|
444
|
-
// (undocumented)
|
|
445
|
-
getCustomTransformers: string | ((program: ts.Program) => ts.CustomTransformers | undefined);
|
|
446
|
-
// (undocumented)
|
|
447
|
-
happyPackMode: boolean;
|
|
448
|
-
// (undocumented)
|
|
449
|
-
onlyCompileBundledFiles: boolean;
|
|
450
|
-
// (undocumented)
|
|
451
|
-
projectReferences: boolean;
|
|
452
|
-
// (undocumented)
|
|
453
|
-
transpileOnly: boolean;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
// Warning: (ae-forgotten-export) The symbol "TsOverlayOptions" needs to be exported by the entry point index.d.ts
|
|
457
|
-
//
|
|
458
|
-
// @public (undocumented)
|
|
459
|
-
export const tsOverlay: (overlayOptions?: TsOverlayOptions | undefined) => Partial<Configuration>;
|
|
460
|
-
|
|
461
|
-
// @public (undocumented)
|
|
462
|
-
interface TsOverlayOptions {
|
|
463
|
-
// (undocumented)
|
|
464
|
-
checkerOptions?: Partial<TsCheckerOptions>;
|
|
465
|
-
// (undocumented)
|
|
466
|
-
loaderOptions?: Partial<TsLoaderOptions>;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
// @public (undocumented)
|
|
470
|
-
function webapp(): void;
|
|
471
|
-
|
|
472
|
-
// @public
|
|
473
|
-
export function webpackCliInitTask(customScaffold?: string, auto?: boolean): TaskFunction;
|
|
474
|
-
|
|
475
|
-
// @public
|
|
476
|
-
export function webpackCliTask(options?: WebpackCliTaskOptions): TaskFunction;
|
|
477
|
-
|
|
478
|
-
// @public (undocumented)
|
|
479
|
-
export interface WebpackCliTaskOptions {
|
|
480
|
-
env?: NodeJS.ProcessEnv;
|
|
481
|
-
nodeArgs?: string[];
|
|
482
|
-
transpileOnly?: boolean;
|
|
483
|
-
tsconfig?: string;
|
|
484
|
-
webpackCliArgs?: string[];
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
// @public (undocumented)
|
|
488
|
-
export const webpackConfig: (config: Partial<Configuration>) => Configuration;
|
|
489
|
-
|
|
490
|
-
// @public (undocumented)
|
|
491
|
-
export function webpackDevServerTask(options?: WebpackDevServerTaskOptions): TaskFunction;
|
|
492
|
-
|
|
493
|
-
// @public (undocumented)
|
|
494
|
-
export interface WebpackDevServerTaskOptions extends WebpackCliTaskOptions, Configuration {
|
|
495
|
-
config?: string;
|
|
496
|
-
env?: {
|
|
497
|
-
[key: string]: string | undefined;
|
|
498
|
-
};
|
|
499
|
-
mode?: 'production' | 'development';
|
|
500
|
-
nodeArgs?: string[];
|
|
501
|
-
open?: boolean;
|
|
502
|
-
transpileOnly?: boolean;
|
|
503
|
-
tsconfig?: string;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
export { webpackMerge }
|
|
507
|
-
|
|
508
|
-
// @public (undocumented)
|
|
509
|
-
export const webpackOverlays: {
|
|
510
|
-
typescript: (overlayOptions?: TsOverlayOptions | undefined) => Partial<Configuration>;
|
|
511
|
-
html: (options: any) => Partial<Configuration>;
|
|
512
|
-
styles: () => Partial<Configuration>;
|
|
513
|
-
file: () => Partial<Configuration>;
|
|
514
|
-
displayBailout: () => Partial<Configuration>;
|
|
515
|
-
};
|
|
516
|
-
|
|
517
|
-
// @public (undocumented)
|
|
518
|
-
export const webpackServeConfig: (config: Partial<Configuration>) => Configuration;
|
|
519
|
-
|
|
520
|
-
// @public (undocumented)
|
|
521
|
-
export function webpackTask(options?: WebpackTaskOptions): TaskFunction;
|
|
522
|
-
|
|
523
|
-
// @public (undocumented)
|
|
524
|
-
export interface WebpackTaskOptions extends Configuration {
|
|
525
|
-
// (undocumented)
|
|
526
|
-
config?: string;
|
|
527
|
-
env?: NodeJS.ProcessEnv;
|
|
528
|
-
onCompile?: (err: Error, stats: any) => void | Promise<void>;
|
|
529
|
-
outputStats?: boolean | string;
|
|
530
|
-
transpileOnly?: boolean;
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
export * from "just-task";
|
|
535
|
-
|
|
536
|
-
// (No @packageDocumentation comment for this package)
|
|
537
|
-
|
|
538
|
-
```
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { copyFilesToDestinationDirectory } from '../CopyInstruction';
|
|
2
|
-
import { normalize } from 'path';
|
|
3
|
-
|
|
4
|
-
describe('CopyInstruction tests', () => {
|
|
5
|
-
it('copies files with the same name to the target directory', () => {
|
|
6
|
-
const result = copyFilesToDestinationDirectory(['files/foo.js', 'my/path/bar.js'], 'dist/lib/');
|
|
7
|
-
|
|
8
|
-
expect(result.length).toEqual(2);
|
|
9
|
-
expect(result[0].sourceFilePath).toEqual(normalize('files/foo.js'));
|
|
10
|
-
expect(result[0].destinationFilePath).toEqual(normalize('dist/lib/foo.js'));
|
|
11
|
-
expect(result[1].sourceFilePath).toEqual(normalize('my/path/bar.js'));
|
|
12
|
-
expect(result[1].destinationFilePath).toEqual(normalize('dist/lib/bar.js'));
|
|
13
|
-
});
|
|
14
|
-
});
|