@schematics/angular 18.1.0-next.0 → 18.1.0-next.2
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/app-shell/index.d.ts +1 -1
- package/app-shell/index.js +2 -2
- package/application/files/common-files/tsconfig.app.json.template +2 -1
- package/application/files/common-files/tsconfig.spec.json.template +2 -1
- package/application/index.d.ts +1 -1
- package/application/index.js +2 -2
- package/class/index.d.ts +1 -1
- package/class/index.js +2 -2
- package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template +1 -1
- package/component/index.d.ts +1 -1
- package/component/index.js +2 -2
- package/config/index.d.ts +1 -1
- package/config/index.js +2 -2
- package/directive/index.d.ts +1 -1
- package/directive/index.js +2 -2
- package/e2e/files/tsconfig.json.template +2 -1
- package/e2e/index.d.ts +1 -1
- package/e2e/index.js +2 -2
- package/enum/index.d.ts +1 -1
- package/enum/index.js +2 -2
- package/environments/index.d.ts +1 -1
- package/environments/index.js +2 -2
- package/guard/index.d.ts +1 -1
- package/guard/index.js +2 -2
- package/interceptor/index.d.ts +1 -1
- package/interceptor/index.js +2 -2
- package/interface/index.d.ts +1 -1
- package/interface/index.js +2 -2
- package/library/files/tsconfig.lib.json.template +2 -1
- package/library/files/tsconfig.lib.prod.json.template +2 -1
- package/library/files/tsconfig.spec.json.template +2 -1
- package/library/index.d.ts +1 -1
- package/library/index.js +2 -2
- package/migrations/use-application-builder/css-import-lexer.d.ts +1 -1
- package/migrations/use-application-builder/css-import-lexer.js +2 -3
- package/migrations/use-application-builder/migration.d.ts +1 -1
- package/migrations/use-application-builder/migration.js +2 -2
- package/module/index.d.ts +1 -1
- package/module/index.js +2 -2
- package/ng-new/index.d.ts +1 -1
- package/ng-new/index.js +2 -2
- package/ng-new/schema.d.ts +1 -1
- package/ng-new/schema.json +1 -1
- package/package.json +12 -3
- package/pipe/index.d.ts +1 -1
- package/pipe/index.js +2 -2
- package/resolver/index.d.ts +1 -1
- package/resolver/index.js +2 -2
- package/server/files/root/tsconfig.server.json.template +2 -1
- package/server/index.d.ts +1 -1
- package/server/index.js +2 -2
- package/service/index.d.ts +1 -1
- package/service/index.js +2 -2
- package/service-worker/index.d.ts +1 -1
- package/service-worker/index.js +2 -2
- package/ssr/index.d.ts +1 -1
- package/ssr/index.js +2 -2
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +1008 -1413
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +183622 -179407
- package/utility/add-declaration-to-ng-module.d.ts +1 -1
- package/utility/add-declaration-to-ng-module.js +2 -3
- package/utility/ast-utils.d.ts +1 -1
- package/utility/ast-utils.js +18 -19
- package/utility/change.d.ts +1 -1
- package/utility/change.js +3 -3
- package/utility/dependencies.d.ts +1 -1
- package/utility/dependencies.js +5 -5
- package/utility/dependency.d.ts +1 -1
- package/utility/dependency.js +3 -3
- package/utility/eol.d.ts +1 -1
- package/utility/eol.js +2 -3
- package/utility/find-module.d.ts +1 -1
- package/utility/find-module.js +5 -5
- package/utility/generate-from-files.d.ts +1 -1
- package/utility/generate-from-files.js +2 -3
- package/utility/index.d.ts +1 -1
- package/utility/index.js +1 -1
- package/utility/json-file.d.ts +1 -1
- package/utility/json-file.js +1 -1
- package/utility/latest-versions.d.ts +1 -1
- package/utility/latest-versions.js +3 -3
- package/utility/ng-ast-utils.d.ts +1 -1
- package/utility/ng-ast-utils.js +4 -5
- package/utility/parse-name.d.ts +1 -1
- package/utility/parse-name.js +2 -3
- package/utility/paths.d.ts +1 -1
- package/utility/paths.js +2 -3
- package/utility/project-targets.d.ts +1 -1
- package/utility/project-targets.js +2 -3
- package/utility/standalone/app_config.d.ts +1 -1
- package/utility/standalone/app_config.js +2 -3
- package/utility/standalone/code_block.d.ts +1 -1
- package/utility/standalone/code_block.js +1 -1
- package/utility/standalone/index.d.ts +1 -1
- package/utility/standalone/index.js +1 -1
- package/utility/standalone/rules.d.ts +1 -1
- package/utility/standalone/rules.js +3 -4
- package/utility/standalone/util.d.ts +1 -1
- package/utility/standalone/util.js +7 -8
- package/utility/validation.d.ts +1 -1
- package/utility/validation.js +4 -4
- package/utility/workspace-models.d.ts +1 -1
- package/utility/workspace-models.js +1 -1
- package/utility/workspace.d.ts +1 -1
- package/utility/workspace.js +9 -9
- package/web-worker/files/worker-tsconfig/tsconfig.worker.json.template +1 -1
- package/web-worker/index.d.ts +1 -1
- package/web-worker/index.js +2 -2
- package/workspace/files/tsconfig.json.template +2 -2
- package/workspace/index.d.ts +1 -1
- package/workspace/index.js +2 -2
- package/workspace/schema.d.ts +1 -1
- package/workspace/schema.json +1 -1
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
10
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.findAppConfig =
|
|
13
|
+
exports.findAppConfig = findAppConfig;
|
|
14
14
|
const path_1 = require("path");
|
|
15
15
|
const typescript_1 = __importDefault(require("../../third_party/github.com/Microsoft/TypeScript/lib/typescript"));
|
|
16
16
|
const util_1 = require("./util");
|
|
@@ -32,7 +32,6 @@ function findAppConfig(bootstrapCall, tree, filePath) {
|
|
|
32
32
|
}
|
|
33
33
|
return null;
|
|
34
34
|
}
|
|
35
|
-
exports.findAppConfig = findAppConfig;
|
|
36
35
|
/**
|
|
37
36
|
* Resolves the app config from an identifier referring to it.
|
|
38
37
|
* @param identifier Identifier referring to the app config.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { Rule } from '@angular-devkit/schematics';
|
|
9
9
|
/** Generated code that hasn't been interpolated yet. */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
10
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
export { addRootImport, addRootProvider } from './rules';
|
|
9
9
|
export { PendingCode, CodeBlockCallback, type CodeBlock } from './code_block';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.addRootProvider = exports.addRootImport = void 0;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { Rule } from '@angular-devkit/schematics';
|
|
9
9
|
import { CodeBlockCallback } from './code_block';
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.addRootImport = addRootImport;
|
|
11
|
+
exports.addRootProvider = addRootProvider;
|
|
11
12
|
const core_1 = require("@angular-devkit/core");
|
|
12
13
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
13
14
|
const ast_utils_1 = require("../ast-utils");
|
|
@@ -39,7 +40,6 @@ function addRootImport(project, callback) {
|
|
|
39
40
|
module: '@angular/core',
|
|
40
41
|
});
|
|
41
42
|
}
|
|
42
|
-
exports.addRootImport = addRootImport;
|
|
43
43
|
/**
|
|
44
44
|
* Adds a provider to the root of the project.
|
|
45
45
|
* @param project Name of the project to which to add the import.
|
|
@@ -60,7 +60,6 @@ exports.addRootImport = addRootImport;
|
|
|
60
60
|
function addRootProvider(project, callback) {
|
|
61
61
|
return getRootInsertionRule(project, callback, 'providers');
|
|
62
62
|
}
|
|
63
|
-
exports.addRootProvider = addRootProvider;
|
|
64
63
|
/**
|
|
65
64
|
* Creates a rule that inserts code at the root of either a standalone or NgModule-based project.
|
|
66
65
|
* @param project Name of the project into which to inser tthe code.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { Tree } from '@angular-devkit/schematics';
|
|
9
9
|
import ts from '../../third_party/github.com/Microsoft/TypeScript/lib/typescript';
|
|
@@ -4,13 +4,18 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
10
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.
|
|
13
|
+
exports.getMainFilePath = getMainFilePath;
|
|
14
|
+
exports.getSourceFile = getSourceFile;
|
|
15
|
+
exports.findBootstrapApplicationCall = findBootstrapApplicationCall;
|
|
16
|
+
exports.applyChangesToFile = applyChangesToFile;
|
|
17
|
+
exports.isMergeAppConfigCall = isMergeAppConfigCall;
|
|
18
|
+
exports.findProvidersLiteral = findProvidersLiteral;
|
|
14
19
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
15
20
|
const typescript_1 = __importDefault(require("../../third_party/github.com/Microsoft/TypeScript/lib/typescript"));
|
|
16
21
|
const change_1 = require("../change");
|
|
@@ -35,7 +40,6 @@ async function getMainFilePath(tree, projectName) {
|
|
|
35
40
|
? options.browser
|
|
36
41
|
: options.main;
|
|
37
42
|
}
|
|
38
|
-
exports.getMainFilePath = getMainFilePath;
|
|
39
43
|
/**
|
|
40
44
|
* Gets a TypeScript source file at a specific path.
|
|
41
45
|
* @param tree File tree of a project.
|
|
@@ -46,7 +50,6 @@ function getSourceFile(tree, path) {
|
|
|
46
50
|
const source = typescript_1.default.createSourceFile(path, content, typescript_1.default.ScriptTarget.Latest, true);
|
|
47
51
|
return source;
|
|
48
52
|
}
|
|
49
|
-
exports.getSourceFile = getSourceFile;
|
|
50
53
|
/** Finds the call to `bootstrapApplication` within a file. */
|
|
51
54
|
function findBootstrapApplicationCall(tree, mainFilePath) {
|
|
52
55
|
const sourceFile = getSourceFile(tree, mainFilePath);
|
|
@@ -69,7 +72,6 @@ function findBootstrapApplicationCall(tree, mainFilePath) {
|
|
|
69
72
|
}
|
|
70
73
|
throw new schematics_1.SchematicsException(`Could not find bootstrapApplication call in ${mainFilePath}`);
|
|
71
74
|
}
|
|
72
|
-
exports.findBootstrapApplicationCall = findBootstrapApplicationCall;
|
|
73
75
|
/**
|
|
74
76
|
* Finds the local name of an imported symbol. Could be the symbol name itself or its alias.
|
|
75
77
|
* @param sourceFile File within which to search for the import.
|
|
@@ -113,7 +115,6 @@ function applyChangesToFile(tree, path, changes) {
|
|
|
113
115
|
tree.commitUpdate(recorder);
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
|
-
exports.applyChangesToFile = applyChangesToFile;
|
|
117
118
|
/** Checks whether a node is a call to `mergeApplicationConfig`. */
|
|
118
119
|
function isMergeAppConfigCall(node) {
|
|
119
120
|
if (!typescript_1.default.isCallExpression(node)) {
|
|
@@ -122,7 +123,6 @@ function isMergeAppConfigCall(node) {
|
|
|
122
123
|
const localName = findImportLocalName(node.getSourceFile(), 'mergeApplicationConfig', '@angular/core');
|
|
123
124
|
return !!localName && typescript_1.default.isIdentifier(node.expression) && node.expression.text === localName;
|
|
124
125
|
}
|
|
125
|
-
exports.isMergeAppConfigCall = isMergeAppConfigCall;
|
|
126
126
|
/** Finds the `providers` array literal within an application config. */
|
|
127
127
|
function findProvidersLiteral(config) {
|
|
128
128
|
for (const prop of config.properties) {
|
|
@@ -135,4 +135,3 @@ function findProvidersLiteral(config) {
|
|
|
135
135
|
}
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
138
|
-
exports.findProvidersLiteral = findProvidersLiteral;
|
package/utility/validation.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
export declare const htmlSelectorRe: RegExp;
|
|
9
9
|
export declare function validateHtmlSelector(selector: string): void;
|
package/utility/validation.js
CHANGED
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.htmlSelectorRe = void 0;
|
|
11
|
+
exports.validateHtmlSelector = validateHtmlSelector;
|
|
12
|
+
exports.validateClassName = validateClassName;
|
|
11
13
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
12
14
|
// Must start with a letter, and must contain only alphanumeric characters or dashes.
|
|
13
15
|
// When adding a dash the segment after the dash must also start with a letter.
|
|
@@ -19,10 +21,8 @@ function validateHtmlSelector(selector) {
|
|
|
19
21
|
throw new schematics_1.SchematicsException(`Selector "${selector}" is invalid.`);
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
|
-
exports.validateHtmlSelector = validateHtmlSelector;
|
|
23
24
|
function validateClassName(className) {
|
|
24
25
|
if (!ecmaIdentifierNameRegExp.test(className)) {
|
|
25
26
|
throw new schematics_1.SchematicsException(`Class name "${className}" is invalid.`);
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
|
-
exports.validateClassName = validateClassName;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
export declare enum ProjectType {
|
|
9
9
|
Application = "application",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.Builders = exports.ProjectType = void 0;
|
package/utility/workspace.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { json, workspaces } from '@angular-devkit/core';
|
|
9
9
|
import { Rule, Tree } from '@angular-devkit/schematics';
|
package/utility/workspace.js
CHANGED
|
@@ -4,10 +4,17 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.TreeWorkspaceHost = void 0;
|
|
11
|
+
exports.updateWorkspace = updateWorkspace;
|
|
12
|
+
exports.getWorkspace = getWorkspace;
|
|
13
|
+
exports.writeWorkspace = writeWorkspace;
|
|
14
|
+
exports.buildDefaultPath = buildDefaultPath;
|
|
15
|
+
exports.createDefaultPath = createDefaultPath;
|
|
16
|
+
exports.allWorkspaceTargets = allWorkspaceTargets;
|
|
17
|
+
exports.allTargetOptions = allTargetOptions;
|
|
11
18
|
const core_1 = require("@angular-devkit/core");
|
|
12
19
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
13
20
|
const workspace_models_1 = require("./workspace-models");
|
|
@@ -58,7 +65,6 @@ function updateWorkspace(updater) {
|
|
|
58
65
|
return result || schematics_1.noop;
|
|
59
66
|
};
|
|
60
67
|
}
|
|
61
|
-
exports.updateWorkspace = updateWorkspace;
|
|
62
68
|
// TODO: This should be renamed `readWorkspace` once deep imports are restricted (already exported from `utility` with that name)
|
|
63
69
|
/**
|
|
64
70
|
* Reads a workspace file (`angular.json`) from the provided {@link Tree} instance.
|
|
@@ -74,7 +80,6 @@ async function getWorkspace(tree, path = DEFAULT_WORKSPACE_PATH) {
|
|
|
74
80
|
const { workspace } = await core_1.workspaces.readWorkspace(path, host);
|
|
75
81
|
return workspace;
|
|
76
82
|
}
|
|
77
|
-
exports.getWorkspace = getWorkspace;
|
|
78
83
|
/**
|
|
79
84
|
* Writes a workspace file (`angular.json`) to the provided {@link Tree} instance.
|
|
80
85
|
* The spacing and overall layout of an exisitng file (including comments) will be maintained where
|
|
@@ -90,7 +95,6 @@ async function writeWorkspace(tree, workspace, path) {
|
|
|
90
95
|
const host = new TreeWorkspaceHost(tree);
|
|
91
96
|
return core_1.workspaces.writeWorkspace(workspace, host, path);
|
|
92
97
|
}
|
|
93
|
-
exports.writeWorkspace = writeWorkspace;
|
|
94
98
|
/**
|
|
95
99
|
* Build a default project path for generating.
|
|
96
100
|
* @param project The project which will have its default path generated.
|
|
@@ -100,7 +104,6 @@ function buildDefaultPath(project) {
|
|
|
100
104
|
const projectDirName = project.extensions['projectType'] === workspace_models_1.ProjectType.Application ? 'app' : 'lib';
|
|
101
105
|
return `${root}${projectDirName}`;
|
|
102
106
|
}
|
|
103
|
-
exports.buildDefaultPath = buildDefaultPath;
|
|
104
107
|
async function createDefaultPath(tree, projectName) {
|
|
105
108
|
const workspace = await getWorkspace(tree);
|
|
106
109
|
const project = workspace.projects.get(projectName);
|
|
@@ -109,7 +112,6 @@ async function createDefaultPath(tree, projectName) {
|
|
|
109
112
|
}
|
|
110
113
|
return buildDefaultPath(project);
|
|
111
114
|
}
|
|
112
|
-
exports.createDefaultPath = createDefaultPath;
|
|
113
115
|
function* allWorkspaceTargets(workspace) {
|
|
114
116
|
for (const [projectName, project] of workspace.projects) {
|
|
115
117
|
for (const [targetName, target] of project.targets) {
|
|
@@ -117,7 +119,6 @@ function* allWorkspaceTargets(workspace) {
|
|
|
117
119
|
}
|
|
118
120
|
}
|
|
119
121
|
}
|
|
120
|
-
exports.allWorkspaceTargets = allWorkspaceTargets;
|
|
121
122
|
function* allTargetOptions(target, skipBaseOptions = false) {
|
|
122
123
|
if (!skipBaseOptions && target.options) {
|
|
123
124
|
yield [undefined, target.options];
|
|
@@ -131,4 +132,3 @@ function* allTargetOptions(target, skipBaseOptions = false) {
|
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
|
-
exports.allTargetOptions = allTargetOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* To learn more about
|
|
1
|
+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
2
|
{
|
|
3
3
|
"extends": "<%= relativePathToWorkspaceRoot %>/tsconfig.json",
|
|
4
4
|
"compilerOptions": {
|
package/web-worker/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { Rule } from '@angular-devkit/schematics';
|
|
9
9
|
import { Schema as WebWorkerOptions } from './schema';
|
package/web-worker/index.js
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.default = default_1;
|
|
10
11
|
const core_1 = require("@angular-devkit/core");
|
|
11
12
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
12
13
|
const parse_name_1 = require("../utility/parse-name");
|
|
@@ -107,4 +108,3 @@ function default_1(options) {
|
|
|
107
108
|
]);
|
|
108
109
|
};
|
|
109
110
|
}
|
|
110
|
-
exports.default = default_1;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/* To learn more about
|
|
1
|
+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
2
3
|
{
|
|
3
4
|
"compileOnSave": false,
|
|
4
5
|
"compilerOptions": {
|
|
@@ -17,7 +18,6 @@
|
|
|
17
18
|
"importHelpers": true,
|
|
18
19
|
"target": "ES2022",
|
|
19
20
|
"module": "ES2022",
|
|
20
|
-
"useDefineForClassFields": false,
|
|
21
21
|
"lib": [
|
|
22
22
|
"ES2022",
|
|
23
23
|
"dom"
|
package/workspace/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
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.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { Rule } from '@angular-devkit/schematics';
|
|
9
9
|
import { Schema as WorkspaceOptions } from './schema';
|
package/workspace/index.js
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
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.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.default = default_1;
|
|
10
11
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
11
12
|
const latest_versions_1 = require("../utility/latest-versions");
|
|
12
13
|
function default_1(options) {
|
|
@@ -20,4 +21,3 @@ function default_1(options) {
|
|
|
20
21
|
}),
|
|
21
22
|
]));
|
|
22
23
|
}
|
|
23
|
-
exports.default = default_1;
|
package/workspace/schema.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface Schema {
|
|
|
22
22
|
/**
|
|
23
23
|
* Create a workspace with stricter type checking options. This setting helps improve
|
|
24
24
|
* maintainability and catch bugs ahead of time. For more information, see
|
|
25
|
-
* https://angular.
|
|
25
|
+
* https://angular.dev/tools/cli/template-typecheck#strict-mode
|
|
26
26
|
*/
|
|
27
27
|
strict?: boolean;
|
|
28
28
|
/**
|
package/workspace/schema.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"default": false
|
|
34
34
|
},
|
|
35
35
|
"strict": {
|
|
36
|
-
"description": "Create a workspace with stricter type checking options. This setting helps improve maintainability and catch bugs ahead of time. For more information, see https://angular.
|
|
36
|
+
"description": "Create a workspace with stricter type checking options. This setting helps improve maintainability and catch bugs ahead of time. For more information, see https://angular.dev/tools/cli/template-typecheck#strict-mode",
|
|
37
37
|
"type": "boolean",
|
|
38
38
|
"default": true
|
|
39
39
|
},
|