Skip to content

Commit 6f63fd2

Browse files
authored
build: add schematics to @angular/material package (#10351)
This also fixes a handful of minor issues with the blueprints
1 parent fcc0908 commit 6f63fd2

File tree

15 files changed

+139
-335
lines changed

15 files changed

+139
-335
lines changed

package-lock.json

Lines changed: 68 additions & 31 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
"zone.js": "^0.8.12"
4141
},
4242
"devDependencies": {
43+
"@angular-devkit/core": "^0.4.5",
44+
"@angular-devkit/schematics": "^0.4.5",
4345
"@angular/bazel": ">=6.0.0-beta.7 <7.0.0",
4446
"@angular/compiler-cli": ">=6.0.0-beta.7 <7.0.0",
4547
"@angular/http": ">=6.0.0-beta.7 <7.0.0",
@@ -49,6 +51,7 @@
4951
"@angular/upgrade": "^5.0.1",
5052
"@bazel/ibazel": "0.3.1",
5153
"@google-cloud/storage": "^1.1.1",
54+
"@schematics/angular": "^0.4.5",
5255
"@types/chalk": "^0.4.31",
5356
"@types/fs-extra": "^4.0.3",
5457
"@types/glob": "^5.0.33",

schematics/collection.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@
22
{
33
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
44
"schematics": {
5+
// Adds Angular Material to an application without changing any templates
6+
"ng-add": {
7+
"description": "Adds Angular Material to the application without affecting any templates",
8+
"factory": "./shell",
9+
"schema": "./shell/schema.json",
10+
"aliases": ["material-shell"]
11+
},
512
// Create a dashboard component
613
"materialDashboard": {
7-
"description": "Create a dashboard component",
14+
"description": "Create a card-based dashboard component",
815
"factory": "./dashboard/index",
916
"schema": "./dashboard/schema.json",
1017
"aliases": [ "material-dashboard" ]
1118
},
1219
// Creates a table component
1320
"materialTable": {
14-
"description": "Create a table component",
21+
"description": "Create a component that displays data with a data-table",
1522
"factory": "./table/index",
1623
"schema": "./table/schema.json",
1724
"aliases": [ "material-table" ]
1825
},
1926
// Creates toolbar and navigation components
2027
"materialNav": {
21-
"description": "Create a responsive navigation component",
28+
"description": "Create a component with a responsive sidenav for navigation",
2229
"factory": "./nav/index",
2330
"schema": "./nav/schema.json",
2431
"aliases": [ "material-nav" ]
25-
},
26-
// Adds Angular Material to an application without changing any templates
27-
"materialShell": {
28-
"description": "Create a Material shell",
29-
"factory": "./shell",
30-
"schema": "./shell/schema.json",
31-
"aliases": ["material-shell"]
3232
}
3333
}
3434
}

0 commit comments

Comments
 (0)