Skip to content

Commit 872952e

Browse files
jelbournjosephperrott
authored andcommitted
build: add ng_package rule for @angular/material (#10625)
In order to make this work, this includes: * Move schematics under src/lib * Change sass rules to omit sourcemaps * Add cdk/text-field and lib/tree to packages list * Add bazel rules for prebuilt themes * Add html assets to all ng_module rules * Point all ng_module rules to a package common tsconfig * Add missing index.ts for src/lib * Add bazel rules for schematics * Fix incorrect module_name for hyphenated lib ng_module rules * Add NgModules to `imports` of the example module (formerly were just exports)
1 parent c64cb7e commit 872952e

File tree

146 files changed

+2540
-539
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+2540
-539
lines changed

.github/CODEOWNERS

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Angular Material components
22
/src/lib/* @jelbourn
33
/src/lib/autocomplete/** @kara @crisbeto
4+
/src/lib/badge/** @amcdnl
45
/src/lib/bottom-sheet/** @jelbourn @crisbeto
56
/src/lib/button-toggle/** @tinayuangao
67
/src/lib/button/** @tinayuangao
@@ -18,9 +19,11 @@
1819
/src/lib/list/** @jelbourn @crisbeto @devversion
1920
/src/lib/menu/** @kara @crisbeto
2021
/src/lib/paginator/** @andrewseguin
22+
/src/lib/prebuilt-themes/** @jelbourn
2123
/src/lib/progress-bar/** @jelbourn @crisbeto @josephperrott
2224
/src/lib/progress-spinner/** @jelbourn @crisbeto @josephperrott
2325
/src/lib/radio/** @tinayuangao @devversion
26+
/src/lib/schematics/** @amcdnl
2427
/src/lib/select/** @kara @crisbeto
2528
/src/lib/sidenav/** @mmalerba
2629
/src/lib/slide-toggle/** @devversion
@@ -32,7 +35,6 @@
3235
/src/lib/tabs/** @andrewseguin
3336
/src/lib/toolbar/** @devversion
3437
/src/lib/tooltip/** @andrewseguin
35-
/src/lib/badge/** @amcdnl
3638
/src/lib/tree/** @tinayuangao
3739

3840
# Angular Material core
@@ -42,10 +44,10 @@
4244
/src/lib/core/datetime/** @mmalerba
4345
/src/lib/core/error/** @crisbeto @mmalerba
4446
/src/lib/core/gestures/** @jelbourn
47+
/src/lib/core/label/** @kara @mmalerba
4548
/src/lib/core/line/** @jelbourn
4649
/src/lib/core/option/** @kara @crisbeto
4750
/src/lib/core/placeholder/** @kara @mmalerba
48-
/src/lib/core/label/** @kara @mmalerba
4951
/src/lib/core/ripple/** @devversion
5052
/src/lib/core/selection/** @tinayuangao @jelbourn
5153
/src/lib/core/selection/pseudo*/** @crisbeto @jelbourn
@@ -93,8 +95,9 @@
9395
/src/demo-app/* @jelbourn
9496
/src/demo-app/a11y/** @tinayuangao
9597
/src/demo-app/autocomplete/** @kara @crisbeto
96-
/src/demo-app/bottom-sheet/** @jelbourn @crisbeto
98+
/src/demo-app/badge/** @amcdnl
9799
/src/demo-app/baseline/** @mmalerba
100+
/src/demo-app/bottom-sheet/** @jelbourn @crisbeto
98101
/src/demo-app/button-toggle/** @tinayuangao
99102
/src/demo-app/button/** @tinayuangao
100103
/src/demo-app/card/** @jelbourn
@@ -135,7 +138,6 @@
135138
/src/demo-app/tooltip/** @andrewseguin
136139
/src/demo-app/tree/** @tinayuangao
137140
/src/demo-app/typography/** @crisbeto
138-
/src/demo-app/badge/** @amcdnl
139141

140142
# E2E app
141143
/e2e/* @jelbourn
@@ -179,9 +181,6 @@
179181
/src/e2e-app/slide-toggle/** @devversion
180182
/src/e2e-app/tabs/** @andrewseguin
181183

182-
# Schematics
183-
/schematics/** @amcdnl
184-
185184
# Universal app
186185
/src/universal-app/** @jelbourn
187186

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ testem.log
4141
/.git
4242

4343
# schematics
44-
/schematics/**/*.js
45-
/schematics/**/*.map
44+
/src/lib/schematics/**/*.js
45+
/src/lib/schematics/**/*.map

BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ filegroup(
1414
# TODO(alexeagle): figure out what to do
1515
srcs = glob(["/".join(["node_modules", pkg, "**", ext]) for pkg in [
1616
"@angular",
17+
"@angular-devkit",
18+
"@schematics",
1719
"@types",
1820
"bytebuffer",
1921
"hammerjs",
2022
"jasmine",
2123
"minimist",
2224
"moment",
25+
"parse5",
2326
"protobufjs",
2427
"protractor",
2528
"reflect-metadata",

0 commit comments

Comments
 (0)