Skip to content

Commit 9c41f1d

Browse files
committed
Build changes
1 parent 68d321e commit 9c41f1d

15 files changed

+58
-33
lines changed

scripts/closure-compiler/build-devapp-bundle.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ OPTS=(
5151
"--js_module_root=dist/releases/cdk/platform"
5252
"--js_module_root=dist/releases/cdk/portal"
5353
"--js_module_root=dist/releases/cdk/rxjs"
54+
"--js_module_root=dist/releases/cdk/stepper"
5455
"--js_module_root=dist/releases/cdk/table"
5556
"--js_module_root=node_modules/@angular/core"
5657
"--js_module_root=node_modules/@angular/common"
@@ -79,6 +80,7 @@ OPTS=(
7980
dist/releases/cdk/@angular/cdk/platform.js
8081
dist/releases/cdk/@angular/cdk/portal.js
8182
dist/releases/cdk/@angular/cdk/rxjs.js
83+
dist/releases/cdk/@angular/cdk/stepper.js
8284
dist/releases/cdk/@angular/cdk/table.js
8385

8486
# Include all Angular FESM bundles.

src/cdk/public_api.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,5 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
export * from './a11y/index';
10-
export * from './bidi/index';
11-
export * from './coercion/index';
12-
export * from './table/index';
13-
export * from './platform/index';
14-
export * from './portal/index';
15-
export * from './rxjs/index';
16-
export * from './observe-content/index';
17-
export * from './keyboard/index';
18-
export * from './stepper/index';
19-
209
// TODO(jelbourn): add version here
2110
export const __TMP__ = 0;

src/cdk/stepper/index.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,4 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {NgModule} from '@angular/core';
10-
import {CdkStepper, CdkStep} from './stepper';
11-
import {CommonModule} from '@angular/common';
12-
import {CdkStepLabel} from './step-label';
13-
import {CdkStepperNext, CdkStepperPrevious} from './stepper-button';
14-
15-
@NgModule({
16-
imports: [CommonModule],
17-
exports: [CdkStep, CdkStepper, CdkStepLabel, CdkStepperNext, CdkStepperPrevious],
18-
declarations: [CdkStep, CdkStepper, CdkStepLabel, CdkStepperNext, CdkStepperPrevious]
19-
})
20-
export class CdkStepperModule {}
21-
22-
export * from './stepper';
23-
export * from './step-label';
24-
export * from './stepper-button';
9+
export * from './public_api';

src/cdk/stepper/public_api.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
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.io/license
7+
*/
8+
9+
import {NgModule} from '@angular/core';
10+
import {CdkStepper, CdkStep} from './stepper';
11+
import {CommonModule} from '@angular/common';
12+
import {CdkStepLabel} from './step-label';
13+
import {CdkStepperNext, CdkStepperPrevious} from './stepper-button';
14+
15+
@NgModule({
16+
imports: [CommonModule],
17+
exports: [CdkStep, CdkStepper, CdkStepLabel, CdkStepperNext, CdkStepperPrevious],
18+
declarations: [CdkStep, CdkStepper, CdkStepLabel, CdkStepperNext, CdkStepperPrevious]
19+
})
20+
export class CdkStepperModule {}
21+
22+
export * from './stepper';
23+
export * from './step-label';
24+
export * from './stepper-button';

src/cdk/stepper/stepper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
ViewChild,
2323
TemplateRef
2424
} from '@angular/core';
25-
import {LEFT_ARROW, RIGHT_ARROW, ENTER, SPACE} from '../keyboard/keycodes';
25+
import {LEFT_ARROW, RIGHT_ARROW, ENTER, SPACE} from '@angular/cdk/keyboard';
2626
import {CdkStepLabel} from './step-label';
2727

2828
/** Used to generate unique ID for each stepper component. */

src/cdk/stepper/tsconfig-build.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"extends": "../tsconfig-build",
3+
"compilerOptions": {
4+
"outDir": "../../../dist/packages/cdk",
5+
"baseUrl": ".",
6+
"paths": {
7+
"@angular/cdk/keyboard": ["../../../dist/packages/cdk/keyboard/public_api"]
8+
}
9+
},
10+
"files": [
11+
"public_api.ts"
12+
],
13+
"angularCompilerOptions": {
14+
"annotateForClosureCompiler": true,
15+
"strictMetadataEmit": true,
16+
"flatModuleOutFile": "index.js",
17+
"flatModuleId": "@angular/cdk/stepper",
18+
"skipTemplateCodegen": true
19+
}
20+
}

src/demo-app/system-config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ System.config({
3535
'@angular/cdk/platform': 'dist/bundles/cdk-platform.umd.js',
3636
'@angular/cdk/portal': 'dist/bundles/cdk-portal.umd.js',
3737
'@angular/cdk/rxjs': 'dist/bundles/cdk-rxjs.umd.js',
38+
'@angular/cdk/stepper': 'dist/bundles/cdk-stepper.umd.js',
3839
'@angular/cdk/table': 'dist/bundles/cdk-table.umd.js',
3940
'@angular/cdk/testing': 'dist/bundles/cdk-testing.umd.js',
4041
},

src/e2e-app/system-config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ System.config({
3535
'@angular/cdk/platform': 'dist/bundles/cdk-platform.umd.js',
3636
'@angular/cdk/portal': 'dist/bundles/cdk-portal.umd.js',
3737
'@angular/cdk/rxjs': 'dist/bundles/cdk-rxjs.umd.js',
38+
'@angular/cdk/stepper': 'dist/bundles/cdk-stepper.umd.js',
3839
'@angular/cdk/table': 'dist/bundles/cdk-table.umd.js',
3940
'@angular/cdk/testing': 'dist/bundles/cdk-testing.umd.js',
4041
'@angular/material-examples': 'dist/bundles/material-examples.umd.js',

src/lib/stepper/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
import {NgModule} from '@angular/core';
1010
import {CommonModule} from '@angular/common';
11-
import {PortalModule} from '@angular/cdk';
11+
import {PortalModule} from '@angular/cdk/portal';
1212
import {MdButtonModule} from '../button/index';
1313
import {MdHorizontalStepper} from './stepper-horizontal';
1414
import {MdVerticalStepper} from './stepper-vertical';
1515
import {MdStep, MdStepper} from './stepper';
16-
import {CdkStepperModule} from '@angular/cdk';
16+
import {CdkStepperModule} from '@angular/cdk/stepper';
1717
import {MdCommonModule} from '../core';
1818
import {MdStepLabel} from './step-label';
1919
import {MdStepperNext, MdStepperPrevious} from './stepper-button';

src/lib/stepper/step-label.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
import {Directive, TemplateRef} from '@angular/core';
10-
import {CdkStepLabel} from '@angular/cdk';
10+
import {CdkStepLabel} from '@angular/cdk/stepper';
1111

1212
@Directive({
1313
selector: '[mdStepLabel], [matStepLabel]',

src/lib/stepper/stepper-button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
import {Directive} from '@angular/core';
10-
import {CdkStepper, CdkStepperNext, CdkStepperPrevious} from '@angular/cdk';
10+
import {CdkStepper, CdkStepperNext, CdkStepperPrevious} from '@angular/cdk/stepper';
1111
import {MdStepper} from './stepper';
1212

1313
/** Button that moves to the next step in a stepper workflow. */

src/lib/stepper/stepper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {CdkStep, CdkStepper} from '@angular/cdk';
9+
import {CdkStep, CdkStepper} from '@angular/cdk/stepper';
1010
import {
1111
Component,
1212
ContentChild,

src/lib/tsconfig-build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"@angular/cdk/platform": ["../../dist/packages/cdk/platform/public_api"],
3030
"@angular/cdk/portal": ["../../dist/packages/cdk/portal/public_api"],
3131
"@angular/cdk/rxjs": ["../../dist/packages/cdk/rxjs/public_api"],
32+
"@angular/cdk/stepper": ["../../dist/packages/cdk/stepper/public_api"],
3233
"@angular/cdk/table": ["../../dist/packages/cdk/table/public_api"]
3334
}
3435
},

tools/package-tools/rollup-helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const ROLLUP_GLOBALS = {
3232
'@angular/cdk/platform': 'ng.cdk.platform',
3333
'@angular/cdk/portal': 'ng.cdk.portal',
3434
'@angular/cdk/rxjs': 'ng.cdk.rxjs',
35+
'@angular/cdk/stepper': 'ng.cdk.stepper',
3536
'@angular/cdk/table': 'ng.cdk.table',
3637
'@angular/cdk': 'ng.cdk',
3738

tools/package-tools/secondary-entry-points.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const CDK_ENTRY_POINTS = [
1616
'table',
1717
'portal',
1818
'observe-content',
19+
'stepper',
1920
'a11y',
2021
];
2122

0 commit comments

Comments
 (0)