Skip to content

Commit 1121d53

Browse files
chore: create cdk-experimental package (#9059)
1 parent 1bcd8ca commit 1121d53

26 files changed

+183
-12
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@
7676
/src/material-experimental/** @jelbourn
7777
/src/material-experimental/dialog/** @jelbourn @josephperrott @crisbeto
7878

79+
# CDK experimental package
80+
/src/cdk-experimental/** @jelbourn
81+
7982
# Docs examples & guides
8083
/guides/** @amcdnl @jelbourn
8184
/src/material-examples/** @amcdnl @jelbourn

src/cdk-experimental/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC 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+
export * from './public-api';

src/cdk-experimental/package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "@angular/cdk-experimental",
3+
"version": "0.0.0-PLACEHOLDER",
4+
"description": "Experimental components for Angular CDK",
5+
"main": "./bundles/cdk-experimental.umd.js",
6+
"module": "./esm5/cdk-experimental.es5.js",
7+
"es2015": "./esm2015/cdk-experimental.js",
8+
"typings": "./cdk-experimental.d.ts",
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/angular/material2.git"
12+
},
13+
"license": "MIT",
14+
"bugs": {
15+
"url": "https://github.com/angular/material2/issues"
16+
},
17+
"homepage": "https://github.com/angular/material2#readme",
18+
"peerDependencies": {
19+
"@angular/material": "0.0.0-PLACEHOLDER",
20+
"@angular/core": "0.0.0-NG"
21+
},
22+
"dependencies": {
23+
"tslib": "^1.7.1"
24+
}
25+
}

src/cdk-experimental/public-api.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC 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+
export * from './version';
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// TypeScript config file that is used to compile the experimental package into ES2015.
2+
{
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"declaration": true,
6+
"stripInternal": false,
7+
"experimentalDecorators": true,
8+
"noUnusedParameters": true,
9+
"strictNullChecks": true,
10+
"importHelpers": true,
11+
"newLine": "lf",
12+
"module": "es2015",
13+
"moduleResolution": "node",
14+
"outDir": "../../dist/packages/cdk-experimental",
15+
"rootDir": ".",
16+
"sourceMap": true,
17+
"inlineSources": true,
18+
"target": "es2015",
19+
"lib": ["es2015", "dom"],
20+
"skipLibCheck": true,
21+
"types": [],
22+
"paths": {
23+
"@angular/material/*": ["../../dist/packages/material/*"],
24+
"@angular/material": ["../../dist/packages/material/public-api"],
25+
"@angular/cdk/*": ["../../dist/packages/cdk/*"],
26+
"@angular/cdk": ["../../dist/packages/cdk"]
27+
}
28+
},
29+
"files": [
30+
"public-api.ts",
31+
"typings.d.ts"
32+
],
33+
"angularCompilerOptions": {
34+
"annotateForClosureCompiler": true,
35+
"strictMetadataEmit": true,
36+
"flatModuleOutFile": "index.js",
37+
"flatModuleId": "@angular/cdk-experimental",
38+
"skipTemplateCodegen": true
39+
}
40+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// TypeScript config file that extends the default build tsconfig file. This config is used to
2+
// also compile the unit-test files. Since the code will run inside of the browser, the target is
3+
// set to ES5. Also the format needs to be CommonJS for Karma.
4+
{
5+
"extends": "./tsconfig-build",
6+
"compilerOptions": {
7+
"importHelpers": false,
8+
"module": "commonjs",
9+
"target": "es5",
10+
"types": ["jasmine"]
11+
},
12+
"angularCompilerOptions": {
13+
"strictMetadataEmit": true,
14+
"skipTemplateCodegen": true,
15+
"emitDecoratorMetadata": true
16+
},
17+
"include": [
18+
"**/*.spec.ts",
19+
"index.ts"
20+
]
21+
}

src/cdk-experimental/tsconfig.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Configuration for IDEs only.
2+
{
3+
"extends": "../../tsconfig.json",
4+
"compilerOptions": {
5+
"rootDir": "..",
6+
"baseUrl": ".",
7+
"paths": {
8+
"@angular/cdk/*": ["../cdk/*"],
9+
"@angular/cdk": ["../cdk"],
10+
"@angular/material/*": ["../lib/*"],
11+
"@angular/material": ["../lib/public-api.ts"]
12+
}
13+
},
14+
"include": ["./**/*.ts"]
15+
}

src/cdk-experimental/typings.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare var module: {id: string};

src/cdk-experimental/version.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC 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 {Version} from '@angular/core';
10+
11+
/** Current version of the CDK Experimental package. */
12+
export const VERSION = new Version('0.0.0-PLACEHOLDER');

src/demo-app/system-config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ System.config({
4141
'@angular/material-experimental': 'dist/packages/material-experimental/index.js',
4242
'@angular/material-moment-adapter': 'dist/packages/material-moment-adapter/index.js',
4343
'@angular/cdk': 'dist/packages/cdk/index.js',
44+
'@angular/cdk-experimental': 'dist/packages/cdk-experimental/index.js',
45+
4446
'@angular/cdk/a11y': 'dist/packages/cdk/a11y/index.js',
4547
'@angular/cdk/accordion': 'dist/packages/cdk/accordion/index.js',
4648
'@angular/cdk/bidi': 'dist/packages/cdk/bidi/index.js',

0 commit comments

Comments
 (0)