Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Commit f0f8c8b

Browse files
Merge pull request #16 from avrios/chore/AV-26330
chore: Update angular to 13 and fix `id` in schema.json
2 parents fd5b629 + a076dd8 commit f0f8c8b

26 files changed

+1280
-151
lines changed

package-lock.json

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

package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "avrios-schematics",
3-
"version": "2.4.1",
3+
"version": "2.5.0",
44
"description": "A blank schematics",
55
"scripts": {
66
"build": "tsc -p tsconfig.json"
@@ -12,13 +12,12 @@
1212
"license": "MIT",
1313
"schematics": "./src/collection.json",
1414
"devDependencies": {
15-
"@angular-devkit/core": "^7.3.4",
16-
"@angular-devkit/schematics": "^7.3.4",
17-
"@schematics/angular": "^7.3.4",
18-
"@types/jasmine": "^3.0.0",
19-
"@types/node": "^8.0.31",
20-
"jasmine": "^3.0.0",
21-
"rxjs": "^6.4.0",
22-
"typescript": "~3.2.2"
15+
"@angular-devkit/architect": "0.1300.1",
16+
"@angular-devkit/core": "13.0.1",
17+
"@angular-devkit/schematics": "13.0.1",
18+
"@schematics/angular": "13.0.1",
19+
"@types/node": "15.0.2",
20+
"rxjs": "7.4.0",
21+
"typescript": "4.4.4"
2322
}
2423
}

src/api-service/index.js

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

src/api-service/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/schema",
3-
"id": "SchematicsAngularComponent",
3+
"$id": "SchematicsAngularComponent",
44
"title": "Angular Component Options Schema",
55
"type": "object",
66
"description": "Creates a new generic API service definition in the given or default project.",

src/component/index.js

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

src/component/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function (options: ComponentOptions): Rule {
5252
const parsedPath = parseName(options.path, options.name);
5353
options.name = parsedPath.name;
5454
options.path = parsedPath.path;
55-
options.selector = options.selector || buildSelector(options, project.prefix);
55+
options.selector = options.selector || buildSelector(options, project.prefix ?? '');
5656

5757
validateName(options.name);
5858
validateHtmlSelector(options.selector);

src/component/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/schema",
3-
"id": "SchematicsAngularComponent",
3+
"$id": "SchematicsAngularComponent",
44
"title": "Angular Component Options Schema",
55
"type": "object",
66
"description": "Creates a new generic component definition in the given or default project.",

src/library/index.js

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

src/library/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as ts from 'typescript';
2-
import { experimental, strings } from '@angular-devkit/core';
2+
import { strings } from '@angular-devkit/core';
33
import {
44
Rule,
55
SchematicsException,
@@ -80,7 +80,7 @@ export default function (options: LibraryOptions): Rule {
8080
const workspaceContent = workspaceConfig.toString();
8181
const nxWorkspaceContent = nxWorkspaceConfig.toString();
8282

83-
const workspace: experimental.workspace.WorkspaceSchema = JSON.parse(workspaceContent);
83+
const workspace = JSON.parse(workspaceContent);
8484
const nxWorkspace: NxWorkspaceSchema = JSON.parse(nxWorkspaceContent);
8585

8686
const libId = `shared-${dasherizedName}`;

src/library/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/schema",
3-
"id": "SchematicsAngularComponent",
3+
"$id": "SchematicsAngularComponent",
44
"title": "Angular Library Options Schema",
55
"type": "object",
66
"description": "Creates a new generic Library definition in the given or default project.",

0 commit comments

Comments
 (0)