Skip to content

Commit 5d9ab9e

Browse files
devversionjelbourn
authored andcommitted
refactor(schematics): re-add disabled aliases (#12982)
* Due to a devkit issue, we temporarily had to remove the schematic aliases in order to be able to run the tests. Since this issue has been fixed a long time ago, we can re-add the aliases. * Also adds more aliases to other schematics for consistency. * Locks the devkit and schematics version because there is an ongoing type definition bug within the devkit (https://unpkg.com/@angular-devkit/core@0.7.5/src/virtual-fs/host/test.d.ts).
1 parent fe64211 commit 5d9ab9e

File tree

3 files changed

+25
-26
lines changed

3 files changed

+25
-26
lines changed

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"zone.js": "^0.8.26"
4545
},
4646
"devDependencies": {
47-
"@angular-devkit/core": "^0.7.1",
48-
"@angular-devkit/schematics": "^0.7.1",
47+
"@angular-devkit/core": "0.7.4",
48+
"@angular-devkit/schematics": "0.7.4",
4949
"@angular/bazel": "7.0.0-beta.4",
5050
"@angular/compiler-cli": "7.0.0-beta.4",
5151
"@angular/http": "7.0.0-beta.4",
@@ -56,7 +56,7 @@
5656
"@bazel/ibazel": "0.3.1",
5757
"@google-cloud/storage": "^1.1.1",
5858
"@octokit/rest": "^15.9.4",
59-
"@schematics/angular": "^0.7.1",
59+
"@schematics/angular": "0.7.4",
6060
"@types/chalk": "^0.4.31",
6161
"@types/fs-extra": "^4.0.3",
6262
"@types/glob": "^5.0.33",

src/lib/schematics/collection.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"description": "Adds Angular Material to the application without affecting any templates",
88
"factory": "./install",
99
"schema": "./install/schema.json",
10-
"aliases": ["material-shell"]
10+
"aliases": ["material-shell", "install"]
1111
},
1212
// Create a dashboard component
1313
"dashboard": {
@@ -28,22 +28,21 @@
2828
"description": "Create a component with a responsive sidenav for navigation",
2929
"factory": "./nav/index",
3030
"schema": "./nav/schema.json",
31-
// TODO(devversion): re-add `materialNav` alias if we have the latest schematics version
32-
// that includes https://github.com/angular/angular-cli/pull/11390
33-
"aliases": [ "material-nav"]
31+
"aliases": ["material-nav", "materialNav"]
3432
},
3533
// Create a file tree component
3634
"tree": {
3735
"description": "Create a file tree component.",
3836
"factory": "./tree/index",
39-
"schema": "./tree/schema.json"
37+
"schema": "./tree/schema.json",
38+
"aliases": ["material-tree"]
4039
},
4140
// Creates a address form component
4241
"addressForm": {
4342
"description": "Create a component with a address form",
4443
"factory": "./address-form/index",
4544
"schema": "./address-form/schema.json",
46-
"aliases": ["address-form"]
45+
"aliases": ["address-form", "material-address-form", "material-addressForm"]
4746
}
4847
}
4948
}

0 commit comments

Comments
 (0)