@angular/build 22.2.1 → 22.3.0-next.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/builders.json +5 -0
- package/package.json +19 -18
- package/src/builders/library/builder.d.ts +19 -0
- package/src/builders/library/builder.js +279 -0
- package/src/builders/library/builder.js.map +1 -0
- package/src/builders/library/index.d.ts +13 -0
- package/src/builders/library/index.js +17 -0
- package/src/builders/library/index.js.map +1 -0
- package/src/builders/library/options.d.ts +11 -0
- package/src/builders/library/options.js +116 -0
- package/src/builders/library/options.js.map +1 -0
- package/src/builders/library/pipeline/assets.d.ts +29 -0
- package/src/builders/library/pipeline/assets.js +106 -0
- package/src/builders/library/pipeline/assets.js.map +1 -0
- package/src/builders/library/pipeline/build-action.d.ts +35 -0
- package/src/builders/library/pipeline/build-action.js +169 -0
- package/src/builders/library/pipeline/build-action.js.map +1 -0
- package/src/builders/library/pipeline/bundler.d.ts +42 -0
- package/src/builders/library/pipeline/bundler.js +278 -0
- package/src/builders/library/pipeline/bundler.js.map +1 -0
- package/src/builders/library/pipeline/compilation.d.ts +39 -0
- package/src/builders/library/pipeline/compilation.js +197 -0
- package/src/builders/library/pipeline/compilation.js.map +1 -0
- package/src/builders/library/pipeline/entry-points.d.ts +34 -0
- package/src/builders/library/pipeline/entry-points.js +194 -0
- package/src/builders/library/pipeline/entry-points.js.map +1 -0
- package/src/builders/library/pipeline/package-manifests.d.ts +17 -0
- package/src/builders/library/pipeline/package-manifests.js +119 -0
- package/src/builders/library/pipeline/package-manifests.js.map +1 -0
- package/src/builders/library/pipeline/stylesheet-bundler.d.ts +19 -0
- package/src/builders/library/pipeline/stylesheet-bundler.js +39 -0
- package/src/builders/library/pipeline/stylesheet-bundler.js.map +1 -0
- package/src/builders/library/pipeline/types.d.ts +54 -0
- package/src/builders/library/pipeline/utils.d.ts +69 -0
- package/src/builders/library/pipeline/utils.js +73 -0
- package/src/builders/library/pipeline/utils.js.map +1 -0
- package/src/builders/library/schema.d.ts +149 -0
- package/src/builders/library/schema.js +26 -0
- package/src/builders/library/schema.js.map +1 -0
- package/src/builders/library/schema.json +168 -0
- package/src/builders/library/types.d.ts +125 -0
- package/src/builders/library/types.js +10 -0
- package/src/builders/library/types.js.map +1 -0
- package/src/builders/unit-test/builder.js +24 -2
- package/src/builders/unit-test/builder.js.map +1 -1
- package/src/builders/unit-test/options.d.ts +1 -0
- package/src/builders/unit-test/options.js +2 -1
- package/src/builders/unit-test/options.js.map +1 -1
- package/src/builders/unit-test/runners/api.d.ts +1 -1
- package/src/builders/unit-test/runners/karma/executor.js +1 -1
- package/src/builders/unit-test/runners/karma/executor.js.map +1 -1
- package/src/builders/unit-test/runners/vitest/build-options.d.ts +8 -2
- package/src/builders/unit-test/runners/vitest/build-options.js +21 -45
- package/src/builders/unit-test/runners/vitest/build-options.js.map +1 -1
- package/src/builders/unit-test/runners/vitest/index.js +2 -2
- package/src/builders/unit-test/runners/vitest/index.js.map +1 -1
- package/src/builders/unit-test/schema.d.ts +6 -0
- package/src/builders/unit-test/schema.js.map +1 -1
- package/src/builders/unit-test/schema.json +8 -0
- package/src/tools/angular/compilation/angular-compilation.d.ts +2 -1
- package/src/tools/angular/compilation/angular-compilation.js.map +1 -1
- package/src/tools/angular/compilation/aot-compilation.d.ts +1 -1
- package/src/tools/angular/compilation/aot-compilation.js +20 -11
- package/src/tools/angular/compilation/aot-compilation.js.map +1 -1
- package/src/tools/angular/compilation/compiler-options.d.ts +4 -1
- package/src/tools/angular/compilation/compiler-options.js +24 -7
- package/src/tools/angular/compilation/compiler-options.js.map +1 -1
- package/src/tools/angular/compilation/jit-compilation.d.ts +1 -1
- package/src/tools/angular/compilation/jit-compilation.js +2 -2
- package/src/tools/angular/compilation/jit-compilation.js.map +1 -1
- package/src/tools/angular/compilation/parallel-compilation.d.ts +1 -1
- package/src/tools/angular/compilation/parallel-compilation.js +2 -1
- package/src/tools/angular/compilation/parallel-compilation.js.map +1 -1
- package/src/tools/angular/compilation/parallel-worker.d.ts +1 -0
- package/src/tools/angular/compilation/parallel-worker.js +2 -1
- package/src/tools/angular/compilation/parallel-worker.js.map +1 -1
- package/src/tools/angular/compilation/typescript-compilation.d.ts +1 -1
- package/src/tools/angular/compilation/typescript-compilation.js +2 -2
- package/src/tools/angular/compilation/typescript-compilation.js.map +1 -1
- package/src/tools/esbuild/stylesheets/stylesheet-cache-key.d.ts +1 -0
- package/src/tools/esbuild/stylesheets/stylesheet-cache-key.js +2 -0
- package/src/tools/esbuild/stylesheets/stylesheet-cache-key.js.map +1 -1
- package/src/utils/normalize-cache.js +1 -1
- package/src/utils/resolve-assets.js +1 -1
- package/src/utils/resolve-assets.js.map +1 -1
- package/src/utils/version.js +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
+
*/
|
|
8
|
+
import { ComponentStylesheetBundler } from '../../../tools/esbuild/angular/component-stylesheets';
|
|
9
|
+
import type { NormalizedLibraryOptions } from '../types';
|
|
10
|
+
export type LibraryStylesheetBundlerOptions = Pick<NormalizedLibraryOptions, 'workspaceRoot' | 'preserveSymlinks' | 'styleIncludePaths' | 'sass' | 'cacheOptions' | 'inlineStyleLanguage' | 'postcssConfiguration' | 'tailwindConfiguration'>;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a stylesheet bundler instance configured for library compilation.
|
|
13
|
+
*
|
|
14
|
+
* @param options The normalized library builder options.
|
|
15
|
+
* @param incremental Whether incremental watch mode is enabled.
|
|
16
|
+
* @param target The esbuild target environments derived from browserslist.
|
|
17
|
+
* @returns A new ComponentStylesheetBundler instance.
|
|
18
|
+
*/
|
|
19
|
+
export declare function createComponentStylesheetBundlerForLibrary(options: LibraryStylesheetBundlerOptions, incremental: boolean, target: string[]): ComponentStylesheetBundler;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.createComponentStylesheetBundlerForLibrary = createComponentStylesheetBundlerForLibrary;
|
|
11
|
+
const component_stylesheets_1 = require("../../../tools/esbuild/angular/component-stylesheets");
|
|
12
|
+
/**
|
|
13
|
+
* Creates a stylesheet bundler instance configured for library compilation.
|
|
14
|
+
*
|
|
15
|
+
* @param options The normalized library builder options.
|
|
16
|
+
* @param incremental Whether incremental watch mode is enabled.
|
|
17
|
+
* @param target The esbuild target environments derived from browserslist.
|
|
18
|
+
* @returns A new ComponentStylesheetBundler instance.
|
|
19
|
+
*/
|
|
20
|
+
function createComponentStylesheetBundlerForLibrary(options, incremental, target) {
|
|
21
|
+
const { workspaceRoot, preserveSymlinks, styleIncludePaths, sass, cacheOptions, inlineStyleLanguage, postcssConfiguration, tailwindConfiguration, } = options;
|
|
22
|
+
const bundleOptions = {
|
|
23
|
+
workspaceRoot,
|
|
24
|
+
optimization: true,
|
|
25
|
+
inlineFonts: false,
|
|
26
|
+
dataurl: true,
|
|
27
|
+
target,
|
|
28
|
+
preserveSymlinks,
|
|
29
|
+
sourcemap: false,
|
|
30
|
+
outputNames: { bundles: '[name]', media: 'media/[name]' },
|
|
31
|
+
includePaths: styleIncludePaths,
|
|
32
|
+
sass,
|
|
33
|
+
cacheOptions,
|
|
34
|
+
postcssConfiguration,
|
|
35
|
+
tailwindConfiguration,
|
|
36
|
+
};
|
|
37
|
+
return new component_stylesheets_1.ComponentStylesheetBundler(bundleOptions, inlineStyleLanguage, incremental);
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=stylesheet-bundler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stylesheet-bundler.js","sourceRoot":"","sources":["stylesheet-bundler.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AA0BH,gGAiCC;AAzDD,gGAAkG;AAgBlG;;;;;;;GAOG;AACH,SAAgB,0CAA0C,CACxD,OAAwC,EACxC,WAAoB,EACpB,MAAgB;IAEhB,MAAM,EACJ,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,GACtB,GAAG,OAAO,CAAC;IAEZ,MAAM,aAAa,GAA4B;QAC7C,aAAa;QACb,YAAY,EAAE,IAAI;QAClB,WAAW,EAAE,KAAK;QAClB,OAAO,EAAE,IAAI;QACb,MAAM;QACN,gBAAgB;QAChB,SAAS,EAAE,KAAK;QAChB,WAAW,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE;QACzD,YAAY,EAAE,iBAAiB;QAC/B,IAAI;QACJ,YAAY;QACZ,oBAAoB;QACpB,qBAAqB;KACtB,CAAC;IAEF,OAAO,IAAI,kDAA0B,CAAC,aAAa,EAAE,mBAAmB,EAAE,WAAW,CAAC,CAAC;AACzF,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
declare module 'rolldown-plugin-dts' {
|
|
10
|
+
import type { Plugin } from 'rolldown';
|
|
11
|
+
import type { IsolatedDeclarationsOptions } from 'rolldown/experimental';
|
|
12
|
+
|
|
13
|
+
interface Logger {
|
|
14
|
+
info: (...args: unknown[]) => void;
|
|
15
|
+
warn: (...args: unknown[]) => void;
|
|
16
|
+
error: (...args: unknown[]) => void;
|
|
17
|
+
}
|
|
18
|
+
interface GeneralOptions {
|
|
19
|
+
generator?: 'tsc' | 'oxc' | 'tsgo';
|
|
20
|
+
entry?: string | string[];
|
|
21
|
+
cwd?: string;
|
|
22
|
+
dtsInput?: boolean;
|
|
23
|
+
emitDtsOnly?: boolean;
|
|
24
|
+
tsconfig?: string | boolean;
|
|
25
|
+
tsconfigRaw?: unknown;
|
|
26
|
+
compilerOptions?: unknown;
|
|
27
|
+
sourcemap?: boolean;
|
|
28
|
+
resolver?: 'oxc' | 'tsc';
|
|
29
|
+
cjsDefault?: boolean;
|
|
30
|
+
sideEffects?: boolean;
|
|
31
|
+
logger?: Logger;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface TscOptions {
|
|
35
|
+
build?: boolean;
|
|
36
|
+
incremental?: boolean;
|
|
37
|
+
parallel?: boolean;
|
|
38
|
+
eager?: boolean;
|
|
39
|
+
newContext?: boolean;
|
|
40
|
+
emitJs?: boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface Options extends GeneralOptions, TscOptions {
|
|
44
|
+
oxc?: Omit<IsolatedDeclarationsOptions, 'sourcemap'>;
|
|
45
|
+
tsgo?: TsgoOptions;
|
|
46
|
+
customLanguages?: unknown[];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface TsgoOptions {
|
|
50
|
+
path?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export declare function dts(options?: Options): Plugin[];
|
|
54
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The output directory name for ES module format output files.
|
|
10
|
+
*/
|
|
11
|
+
export declare const FESM_OUTPUT_DIR = "fesm2022";
|
|
12
|
+
/**
|
|
13
|
+
* The output directory name for TypeScript declaration files output.
|
|
14
|
+
*/
|
|
15
|
+
export declare const TYPES_OUTPUT_DIR = "types";
|
|
16
|
+
/**
|
|
17
|
+
* Represents an in-memory file to be emitted to disk.
|
|
18
|
+
*/
|
|
19
|
+
export interface MemoryOutputFile {
|
|
20
|
+
type: 'memory';
|
|
21
|
+
/** The destination path where the file should be written. */
|
|
22
|
+
path: string;
|
|
23
|
+
/** The contents of the file as either a string or byte array. */
|
|
24
|
+
contents: string | Uint8Array;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Represents an existing file on disk to be copied to a destination path.
|
|
28
|
+
*/
|
|
29
|
+
export interface DiskOutputFile {
|
|
30
|
+
type: 'disk';
|
|
31
|
+
/** The path to the source file on disk. */
|
|
32
|
+
source: string;
|
|
33
|
+
/** The destination path where the file should be copied. */
|
|
34
|
+
path: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Represents a file to be emitted to disk, either from memory or copied from disk.
|
|
38
|
+
*/
|
|
39
|
+
export type OutputFile = MemoryOutputFile | DiskOutputFile;
|
|
40
|
+
/**
|
|
41
|
+
* Creates an output file descriptor for an existing file on disk.
|
|
42
|
+
*
|
|
43
|
+
* @param source The path to the source file on disk.
|
|
44
|
+
* @param path The destination path where the file should be copied.
|
|
45
|
+
* @returns A {@link DiskOutputFile} descriptor.
|
|
46
|
+
*/
|
|
47
|
+
export declare function createDiskOutputFile(source: string, path: string): DiskOutputFile;
|
|
48
|
+
/**
|
|
49
|
+
* Creates an output file descriptor for an in-memory file.
|
|
50
|
+
*
|
|
51
|
+
* @param path The destination path where the file should be written.
|
|
52
|
+
* @param contents The contents of the file as either a string, byte array, or JSON object.
|
|
53
|
+
* @returns A {@link MemoryOutputFile} descriptor.
|
|
54
|
+
*/
|
|
55
|
+
export declare function createMemoryOutputFile(path: string, contents: string | Uint8Array | Record<string, unknown>): MemoryOutputFile;
|
|
56
|
+
/**
|
|
57
|
+
* Determines whether a file path represents a TypeScript declaration file (`.d.ts`, `.d.mts`, or `.d.cts`).
|
|
58
|
+
*
|
|
59
|
+
* @param path The file path to check.
|
|
60
|
+
* @returns True if the path ends with `.d.ts`, `.d.mts`, or `.d.cts`.
|
|
61
|
+
*/
|
|
62
|
+
export declare function isDeclarationFile(path: string): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Determines whether a file path represents a declaration source map file (`.d.ts.map`, `.d.mts.map`, or `.d.cts.map`).
|
|
65
|
+
*
|
|
66
|
+
* @param path The file path to check.
|
|
67
|
+
* @returns True if the path ends with `.d.ts.map`, `.d.mts.map`, or `.d.cts.map`.
|
|
68
|
+
*/
|
|
69
|
+
export declare function isDeclarationSourceMapFile(path: string): boolean;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.TYPES_OUTPUT_DIR = exports.FESM_OUTPUT_DIR = void 0;
|
|
11
|
+
exports.createDiskOutputFile = createDiskOutputFile;
|
|
12
|
+
exports.createMemoryOutputFile = createMemoryOutputFile;
|
|
13
|
+
exports.isDeclarationFile = isDeclarationFile;
|
|
14
|
+
exports.isDeclarationSourceMapFile = isDeclarationSourceMapFile;
|
|
15
|
+
const IS_DTS_FILE_REGEXP = /\.d\.[cm]?ts$/i;
|
|
16
|
+
const IS_DTS_MAP_FILE_REGEXP = /\.d\.[cm]?ts\.map$/i;
|
|
17
|
+
/**
|
|
18
|
+
* The output directory name for ES module format output files.
|
|
19
|
+
*/
|
|
20
|
+
exports.FESM_OUTPUT_DIR = 'fesm2022';
|
|
21
|
+
/**
|
|
22
|
+
* The output directory name for TypeScript declaration files output.
|
|
23
|
+
*/
|
|
24
|
+
exports.TYPES_OUTPUT_DIR = 'types';
|
|
25
|
+
/**
|
|
26
|
+
* Creates an output file descriptor for an existing file on disk.
|
|
27
|
+
*
|
|
28
|
+
* @param source The path to the source file on disk.
|
|
29
|
+
* @param path The destination path where the file should be copied.
|
|
30
|
+
* @returns A {@link DiskOutputFile} descriptor.
|
|
31
|
+
*/
|
|
32
|
+
function createDiskOutputFile(source, path) {
|
|
33
|
+
return {
|
|
34
|
+
type: 'disk',
|
|
35
|
+
source,
|
|
36
|
+
path,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Creates an output file descriptor for an in-memory file.
|
|
41
|
+
*
|
|
42
|
+
* @param path The destination path where the file should be written.
|
|
43
|
+
* @param contents The contents of the file as either a string, byte array, or JSON object.
|
|
44
|
+
* @returns A {@link MemoryOutputFile} descriptor.
|
|
45
|
+
*/
|
|
46
|
+
function createMemoryOutputFile(path, contents) {
|
|
47
|
+
return {
|
|
48
|
+
type: 'memory',
|
|
49
|
+
path,
|
|
50
|
+
contents: typeof contents === 'string' || contents instanceof Uint8Array
|
|
51
|
+
? contents
|
|
52
|
+
: JSON.stringify(contents, null, 2) + '\n',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Determines whether a file path represents a TypeScript declaration file (`.d.ts`, `.d.mts`, or `.d.cts`).
|
|
57
|
+
*
|
|
58
|
+
* @param path The file path to check.
|
|
59
|
+
* @returns True if the path ends with `.d.ts`, `.d.mts`, or `.d.cts`.
|
|
60
|
+
*/
|
|
61
|
+
function isDeclarationFile(path) {
|
|
62
|
+
return IS_DTS_FILE_REGEXP.test(path);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Determines whether a file path represents a declaration source map file (`.d.ts.map`, `.d.mts.map`, or `.d.cts.map`).
|
|
66
|
+
*
|
|
67
|
+
* @param path The file path to check.
|
|
68
|
+
* @returns True if the path ends with `.d.ts.map`, `.d.mts.map`, or `.d.cts.map`.
|
|
69
|
+
*/
|
|
70
|
+
function isDeclarationSourceMapFile(path) {
|
|
71
|
+
return IS_DTS_MAP_FILE_REGEXP.test(path);
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["utils.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAqDH,oDAMC;AASD,wDAYC;AAQD,8CAEC;AAQD,gEAEC;AAlGD,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AAC5C,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AAErD;;GAEG;AACU,QAAA,eAAe,GAAG,UAAU,CAAC;AAE1C;;GAEG;AACU,QAAA,gBAAgB,GAAG,OAAO,CAAC;AAiCxC;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,MAAc,EAAE,IAAY;IAC/D,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,MAAM;QACN,IAAI;KACL,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,sBAAsB,CACpC,IAAY,EACZ,QAAuD;IAEvD,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,IAAI;QACJ,QAAQ,EACN,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,YAAY,UAAU;YAC5D,CAAC,CAAC,QAAQ;YACV,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI;KAC/C,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAgB,iBAAiB,CAAC,IAAY;IAC5C,OAAO,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC;AAED;;;;;GAKG;AACH,SAAgB,0BAA0B,CAAC,IAAY;IACrD,OAAO,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Library builder target options for Build Architect. Builds an Angular library package
|
|
3
|
+
* conforming to the Angular Package Format (APF).
|
|
4
|
+
*/
|
|
5
|
+
export type Schema = {
|
|
6
|
+
/**
|
|
7
|
+
* A list of package names allowed in the 'dependencies' and 'optionalDependencies' sections
|
|
8
|
+
* of package.json. Values can be regular expression patterns.
|
|
9
|
+
*/
|
|
10
|
+
allowedNonPeerDependencies?: string[];
|
|
11
|
+
/**
|
|
12
|
+
* Define the assets to be copied to the output directory. These assets are copied as-is
|
|
13
|
+
* without any further processing or hashing.
|
|
14
|
+
*/
|
|
15
|
+
assets?: AssetPattern[];
|
|
16
|
+
/**
|
|
17
|
+
* Automatically clear the terminal screen during rebuilds.
|
|
18
|
+
*/
|
|
19
|
+
clearScreen?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Angular compilation mode. Use 'partial' when publishing to npm (APF requirement). Use
|
|
22
|
+
* 'full' only during development or for private, internal monorepo packages that are never
|
|
23
|
+
* published.
|
|
24
|
+
*/
|
|
25
|
+
compilationMode?: CompilationMode;
|
|
26
|
+
/**
|
|
27
|
+
* Generates a sourcemap for each corresponding '.d.ts' file.
|
|
28
|
+
*/
|
|
29
|
+
declarationMap?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Delete the output path before building.
|
|
32
|
+
*/
|
|
33
|
+
deleteOutputPath?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The stylesheet language to use for the library's inline component styles.
|
|
36
|
+
*/
|
|
37
|
+
inlineStyleLanguage?: InlineStyleLanguage;
|
|
38
|
+
/**
|
|
39
|
+
* Enable this to keep the 'scripts' section in the published package.json.
|
|
40
|
+
*/
|
|
41
|
+
keepLifecycleScripts?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Specify the output directory for the built package, relative to the workspace root.
|
|
44
|
+
*/
|
|
45
|
+
outputPath?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Enable and define the file watching poll time period in milliseconds.
|
|
48
|
+
*/
|
|
49
|
+
poll?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Do not use the real path when resolving modules. If unset then will default to `true` if
|
|
52
|
+
* NodeJS option --preserve-symlinks is set.
|
|
53
|
+
*/
|
|
54
|
+
preserveSymlinks?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Log progress to the console while building.
|
|
57
|
+
*/
|
|
58
|
+
progress?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Options to pass to style preprocessors.
|
|
61
|
+
*/
|
|
62
|
+
stylePreprocessorOptions?: StylePreprocessorOptions;
|
|
63
|
+
/**
|
|
64
|
+
* The full path for the TypeScript configuration file, relative to the current workspace
|
|
65
|
+
* root.
|
|
66
|
+
*/
|
|
67
|
+
tsConfig: string;
|
|
68
|
+
/**
|
|
69
|
+
* Run build when files change.
|
|
70
|
+
*/
|
|
71
|
+
watch?: boolean;
|
|
72
|
+
};
|
|
73
|
+
export type AssetPattern = AssetPatternClass | string;
|
|
74
|
+
export type AssetPatternClass = {
|
|
75
|
+
/**
|
|
76
|
+
* Allow glob patterns to follow symlink directories. This allows subdirectories of the
|
|
77
|
+
* symlink to be searched.
|
|
78
|
+
*/
|
|
79
|
+
followSymlinks?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* The pattern to match.
|
|
82
|
+
*/
|
|
83
|
+
glob: string;
|
|
84
|
+
/**
|
|
85
|
+
* An array of globs to ignore.
|
|
86
|
+
*/
|
|
87
|
+
ignore?: string[];
|
|
88
|
+
/**
|
|
89
|
+
* The input directory path in which to apply 'glob'. Defaults to the project root.
|
|
90
|
+
*/
|
|
91
|
+
input: string;
|
|
92
|
+
/**
|
|
93
|
+
* Absolute path within the output.
|
|
94
|
+
*/
|
|
95
|
+
output?: string;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Angular compilation mode. Use 'partial' when publishing to npm (APF requirement). Use
|
|
99
|
+
* 'full' only during development or for private, internal monorepo packages that are never
|
|
100
|
+
* published.
|
|
101
|
+
*/
|
|
102
|
+
export declare enum CompilationMode {
|
|
103
|
+
Full = "full",
|
|
104
|
+
Partial = "partial"
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* The stylesheet language to use for the library's inline component styles.
|
|
108
|
+
*/
|
|
109
|
+
export declare enum InlineStyleLanguage {
|
|
110
|
+
Css = "css",
|
|
111
|
+
Less = "less",
|
|
112
|
+
Sass = "sass",
|
|
113
|
+
Scss = "scss"
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Options to pass to style preprocessors.
|
|
117
|
+
*/
|
|
118
|
+
export type StylePreprocessorOptions = {
|
|
119
|
+
/**
|
|
120
|
+
* Paths to include. Paths will be resolved to workspace root.
|
|
121
|
+
*/
|
|
122
|
+
includePaths?: string[];
|
|
123
|
+
/**
|
|
124
|
+
* Options to pass to the sass preprocessor.
|
|
125
|
+
*/
|
|
126
|
+
sass?: Sass;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Options to pass to the sass preprocessor.
|
|
130
|
+
*/
|
|
131
|
+
export type Sass = {
|
|
132
|
+
/**
|
|
133
|
+
* A set of deprecations to treat as fatal. If a deprecation warning of any provided type is
|
|
134
|
+
* encountered during compilation, the compiler will error instead. If a Version is
|
|
135
|
+
* provided, then all deprecations that were active in that compiler version will be treated
|
|
136
|
+
* as fatal.
|
|
137
|
+
*/
|
|
138
|
+
fatalDeprecations?: string[];
|
|
139
|
+
/**
|
|
140
|
+
* A set of future deprecations to opt into early. Future deprecations passed here will be
|
|
141
|
+
* treated as active by the compiler, emitting warnings as necessary.
|
|
142
|
+
*/
|
|
143
|
+
futureDeprecations?: string[];
|
|
144
|
+
/**
|
|
145
|
+
* A set of active deprecations to ignore. If a deprecation warning of any provided type is
|
|
146
|
+
* encountered during compilation, the compiler will ignore it instead.
|
|
147
|
+
*/
|
|
148
|
+
silenceDeprecations?: string[];
|
|
149
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
|
|
3
|
+
// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.InlineStyleLanguage = exports.CompilationMode = void 0;
|
|
6
|
+
/**
|
|
7
|
+
* Angular compilation mode. Use 'partial' when publishing to npm (APF requirement). Use
|
|
8
|
+
* 'full' only during development or for private, internal monorepo packages that are never
|
|
9
|
+
* published.
|
|
10
|
+
*/
|
|
11
|
+
var CompilationMode;
|
|
12
|
+
(function (CompilationMode) {
|
|
13
|
+
CompilationMode["Full"] = "full";
|
|
14
|
+
CompilationMode["Partial"] = "partial";
|
|
15
|
+
})(CompilationMode || (exports.CompilationMode = CompilationMode = {}));
|
|
16
|
+
/**
|
|
17
|
+
* The stylesheet language to use for the library's inline component styles.
|
|
18
|
+
*/
|
|
19
|
+
var InlineStyleLanguage;
|
|
20
|
+
(function (InlineStyleLanguage) {
|
|
21
|
+
InlineStyleLanguage["Css"] = "css";
|
|
22
|
+
InlineStyleLanguage["Less"] = "less";
|
|
23
|
+
InlineStyleLanguage["Sass"] = "sass";
|
|
24
|
+
InlineStyleLanguage["Scss"] = "scss";
|
|
25
|
+
})(InlineStyleLanguage || (exports.InlineStyleLanguage = InlineStyleLanguage = {}));
|
|
26
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["schema.ts"],"names":[],"mappings":";AACA,mFAAmF;AACnF,oFAAoF;;;AAqGpF;;;;GAIG;AACH,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,sCAAmB,CAAA;AACvB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED;;GAEG;AACH,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC3B,kCAAW,CAAA;IACX,oCAAa,CAAA;IACb,oCAAa,CAAA;IACb,oCAAa,CAAA;AACjB,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"title": "Library builder target options",
|
|
4
|
+
"description": "Library builder target options for Build Architect. Builds an Angular library package conforming to the Angular Package Format (APF).",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"tsConfig": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The full path for the TypeScript configuration file, relative to the current workspace root."
|
|
10
|
+
},
|
|
11
|
+
"outputPath": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Specify the output directory for the built package, relative to the workspace root."
|
|
14
|
+
},
|
|
15
|
+
"assets": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"description": "Define the assets to be copied to the output directory. These assets are copied as-is without any further processing or hashing.",
|
|
18
|
+
"default": [],
|
|
19
|
+
"items": {
|
|
20
|
+
"$ref": "#/definitions/assetPattern"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"inlineStyleLanguage": {
|
|
24
|
+
"description": "The stylesheet language to use for the library's inline component styles.",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"default": "css",
|
|
27
|
+
"enum": ["css", "less", "sass", "scss"]
|
|
28
|
+
},
|
|
29
|
+
"stylePreprocessorOptions": {
|
|
30
|
+
"description": "Options to pass to style preprocessors.",
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"includePaths": {
|
|
34
|
+
"description": "Paths to include. Paths will be resolved to workspace root.",
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"default": []
|
|
40
|
+
},
|
|
41
|
+
"sass": {
|
|
42
|
+
"description": "Options to pass to the sass preprocessor.",
|
|
43
|
+
"type": "object",
|
|
44
|
+
"properties": {
|
|
45
|
+
"fatalDeprecations": {
|
|
46
|
+
"description": "A set of deprecations to treat as fatal. If a deprecation warning of any provided type is encountered during compilation, the compiler will error instead. If a Version is provided, then all deprecations that were active in that compiler version will be treated as fatal.",
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"silenceDeprecations": {
|
|
53
|
+
"description": " A set of active deprecations to ignore. If a deprecation warning of any provided type is encountered during compilation, the compiler will ignore it instead.",
|
|
54
|
+
"type": "array",
|
|
55
|
+
"items": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"futureDeprecations": {
|
|
60
|
+
"description": "A set of future deprecations to opt into early. Future deprecations passed here will be treated as active by the compiler, emitting warnings as necessary.",
|
|
61
|
+
"type": "array",
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"additionalProperties": false
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"additionalProperties": false
|
|
71
|
+
},
|
|
72
|
+
"declarationMap": {
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"description": "Generates a sourcemap for each corresponding '.d.ts' file.",
|
|
75
|
+
"default": false
|
|
76
|
+
},
|
|
77
|
+
"compilationMode": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"description": "Angular compilation mode. Use 'partial' when publishing to npm (APF requirement). Use 'full' only during development or for private, internal monorepo packages that are never published.",
|
|
80
|
+
"enum": ["partial", "full"],
|
|
81
|
+
"default": "partial"
|
|
82
|
+
},
|
|
83
|
+
"allowedNonPeerDependencies": {
|
|
84
|
+
"description": "A list of package names allowed in the 'dependencies' and 'optionalDependencies' sections of package.json. Values can be regular expression patterns.",
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"default": []
|
|
90
|
+
},
|
|
91
|
+
"keepLifecycleScripts": {
|
|
92
|
+
"description": "Enable this to keep the 'scripts' section in the published package.json.",
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"default": false
|
|
95
|
+
},
|
|
96
|
+
"deleteOutputPath": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"description": "Delete the output path before building.",
|
|
99
|
+
"default": true
|
|
100
|
+
},
|
|
101
|
+
"watch": {
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"description": "Run build when files change.",
|
|
104
|
+
"default": false
|
|
105
|
+
},
|
|
106
|
+
"poll": {
|
|
107
|
+
"type": "number",
|
|
108
|
+
"description": "Enable and define the file watching poll time period in milliseconds."
|
|
109
|
+
},
|
|
110
|
+
"preserveSymlinks": {
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
|
|
113
|
+
},
|
|
114
|
+
"progress": {
|
|
115
|
+
"type": "boolean",
|
|
116
|
+
"description": "Log progress to the console while building.",
|
|
117
|
+
"default": true
|
|
118
|
+
},
|
|
119
|
+
"clearScreen": {
|
|
120
|
+
"type": "boolean",
|
|
121
|
+
"default": false,
|
|
122
|
+
"description": "Automatically clear the terminal screen during rebuilds."
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"additionalProperties": false,
|
|
126
|
+
"required": ["tsConfig"],
|
|
127
|
+
"definitions": {
|
|
128
|
+
"assetPattern": {
|
|
129
|
+
"oneOf": [
|
|
130
|
+
{
|
|
131
|
+
"type": "object",
|
|
132
|
+
"properties": {
|
|
133
|
+
"followSymlinks": {
|
|
134
|
+
"type": "boolean",
|
|
135
|
+
"default": false,
|
|
136
|
+
"description": "Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched."
|
|
137
|
+
},
|
|
138
|
+
"glob": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"description": "The pattern to match."
|
|
141
|
+
},
|
|
142
|
+
"input": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"description": "The input directory path in which to apply 'glob'. Defaults to the project root."
|
|
145
|
+
},
|
|
146
|
+
"ignore": {
|
|
147
|
+
"description": "An array of globs to ignore.",
|
|
148
|
+
"type": "array",
|
|
149
|
+
"items": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"output": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"default": "",
|
|
156
|
+
"description": "Absolute path within the output."
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"additionalProperties": false,
|
|
160
|
+
"required": ["glob", "input"]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"type": "string"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|