Skip to content

Commit bf35495

Browse files
authored
Merge pull request #195 from ZhiliangLiu/zoranliu/5.0.0-alpha
Zoranliu/5.0.0 alpha
2 parents a93b227 + 88e9e79 commit bf35495

99 files changed

Lines changed: 17873 additions & 20011 deletions

File tree

Some content is hidden

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

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ jobs:
33
build:
44
docker:
55
# specify the version you desire here
6-
- image: circleci/node:10-browsers
6+
- image: circleci/node:16-browsers
77
working_directory: ~/repo
88
steps:
99
- checkout

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ node_modules
2525
!.vscode/extensions.json
2626

2727
# misc
28+
/.angular/cache
2829
/.sass-cache
2930
/connect.lock
3031
/coverage

angular.json

Lines changed: 23 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,20 @@
1111
"build": {
1212
"builder": "@angular-devkit/build-angular:browser",
1313
"options": {
14-
"aot": true,
1514
"outputPath": "dist/apps/docs",
1615
"index": "apps/docs/src/index.html",
1716
"main": "apps/docs/src/main.ts",
1817
"tsConfig": "apps/docs/tsconfig.app.json",
1918
"polyfills": "apps/docs/src/polyfills.ts",
2019
"assets": ["apps/docs/src/assets", "apps/docs/src/favicon.ico", "apps/docs/src/404.html"],
2120
"styles": ["apps/docs/src/styles.scss"],
22-
"scripts": []
21+
"scripts": [],
22+
"vendorChunk": true,
23+
"extractLicenses": false,
24+
"buildOptimizer": false,
25+
"sourceMap": true,
26+
"optimization": false,
27+
"namedChunks": true
2328
},
2429
"configurations": {
2530
"production": {
@@ -36,15 +41,15 @@
3641
"aot": false,
3742
"extractLicenses": true,
3843
"vendorChunk": false,
39-
"buildOptimizer": false,
4044
"fileReplacements": [
4145
{
4246
"replace": "apps/docs/src/environments/environment.ts",
4347
"with": "apps/docs/src/environments/environment.prod.ts"
4448
}
4549
]
4650
}
47-
}
51+
},
52+
"defaultConfiguration": ""
4853
},
4954
"serve": {
5055
"builder": "@angular-devkit/build-angular:dev-server",
@@ -74,13 +79,6 @@
7479
"styles": ["apps/docs/src/styles.scss"],
7580
"assets": ["apps/docs/src/assets", "apps/docs/src/favicon.ico", "apps/docs/src/404.html"]
7681
}
77-
},
78-
"lint": {
79-
"builder": "@angular-devkit/build-angular:tslint",
80-
"options": {
81-
"tsConfig": ["apps/docs/tsconfig.app.json", "apps/docs/tsconfig.spec.json"],
82-
"exclude": ["**/node_modules/**"]
83-
}
8482
}
8583
},
8684
"prefix": "app"
@@ -93,15 +91,20 @@
9391
"build": {
9492
"builder": "@angular-devkit/build-angular:browser",
9593
"options": {
96-
"aot": true,
9794
"outputPath": "dist/apps/demo",
9895
"index": "apps/demo/src/index.html",
9996
"main": "apps/demo/src/main.ts",
10097
"tsConfig": "apps/demo/tsconfig.app.json",
10198
"polyfills": "apps/demo/src/polyfills.ts",
10299
"assets": ["apps/demo/src/assets", "apps/demo/src/favicon.ico", "apps/demo/src/404.html"],
103100
"styles": ["apps/demo/src/styles.css"],
104-
"scripts": []
101+
"scripts": [],
102+
"vendorChunk": true,
103+
"extractLicenses": false,
104+
"buildOptimizer": false,
105+
"sourceMap": true,
106+
"optimization": false,
107+
"namedChunks": true
105108
},
106109
"configurations": {
107110
"production": {
@@ -119,15 +122,15 @@
119122
"aot": false,
120123
"extractLicenses": true,
121124
"vendorChunk": false,
122-
"buildOptimizer": false,
123125
"fileReplacements": [
124126
{
125127
"replace": "apps/demo/src/environments/environment.ts",
126128
"with": "apps/demo/src/environments/environment.prod.ts"
127129
}
128130
]
129131
}
130-
}
132+
},
133+
"defaultConfiguration": ""
131134
},
132135
"serve": {
133136
"builder": "@angular-devkit/build-angular:dev-server",
@@ -157,13 +160,6 @@
157160
"styles": ["apps/demo/src/styles.css"],
158161
"assets": ["apps/demo/src/assets", "apps/demo/src/favicon.ico", "apps/demo/src/404.html"]
159162
}
160-
},
161-
"lint": {
162-
"builder": "@angular-devkit/build-angular:tslint",
163-
"options": {
164-
"tsConfig": ["apps/demo/tsconfig.app.json", "apps/demo/tsconfig.spec.json"],
165-
"exclude": ["**/node_modules/**"]
166-
}
167163
}
168164
},
169165
"prefix": "app"
@@ -177,7 +173,7 @@
177173
"builder": "@angular-devkit/build-angular:ng-packagr",
178174
"options": {
179175
"tsConfig": "libs/core/tsconfig.lib.json",
180-
"project": "libs/core/package.json"
176+
"project": "libs/core/ng-package.json"
181177
},
182178
"configurations": {
183179
"production": {
@@ -195,13 +191,6 @@
195191
"assets": [],
196192
"tsConfig": "libs/core/tsconfig.spec.json"
197193
}
198-
},
199-
"lint": {
200-
"builder": "@angular-devkit/build-angular:tslint",
201-
"options": {
202-
"tsConfig": ["libs/core/tsconfig.lib.json", "libs/core/tsconfig.spec.json"],
203-
"exclude": ["**/node_modules/**"]
204-
}
205194
}
206195
},
207196
"prefix": "lib"
@@ -215,7 +204,7 @@
215204
"builder": "@angular-devkit/build-angular:ng-packagr",
216205
"options": {
217206
"tsConfig": "libs/fabric/tsconfig.lib.json",
218-
"project": "libs/fabric/package.json"
207+
"project": "libs/fabric/ng-package.json"
219208
},
220209
"configurations": {
221210
"production": {
@@ -233,13 +222,6 @@
233222
"assets": [],
234223
"tsConfig": "libs/fabric/tsconfig.spec.json"
235224
}
236-
},
237-
"lint": {
238-
"builder": "@angular-devkit/build-angular:tslint",
239-
"options": {
240-
"tsConfig": ["libs/fabric/tsconfig.lib.json", "libs/fabric/tsconfig.spec.json"],
241-
"exclude": ["**/node_modules/**"]
242-
}
243225
}
244226
},
245227
"prefix": "lib"
@@ -253,7 +235,7 @@
253235
"builder": "@angular-devkit/build-angular:ng-packagr",
254236
"options": {
255237
"tsConfig": "libs/semantic-ui/tsconfig.lib.json",
256-
"project": "libs/semantic-ui/package.json"
238+
"project": "libs/semantic-ui/ng-package.json"
257239
},
258240
"configurations": {
259241
"production": {
@@ -271,13 +253,6 @@
271253
"assets": [],
272254
"tsConfig": "libs/semantic-ui/tsconfig.spec.json"
273255
}
274-
},
275-
"lint": {
276-
"builder": "@angular-devkit/build-angular:tslint",
277-
"options": {
278-
"tsConfig": ["libs/semantic-ui/tsconfig.lib.json", "libs/semantic-ui/tsconfig.spec.json"],
279-
"exclude": ["**/node_modules/**"]
280-
}
281256
}
282257
},
283258
"prefix": "lib"
@@ -291,7 +266,7 @@
291266
"builder": "@angular-devkit/build-angular:ng-packagr",
292267
"options": {
293268
"tsConfig": "libs/toolkit/tsconfig.lib.json",
294-
"project": "libs/toolkit/package.json"
269+
"project": "libs/toolkit/ng-package.json"
295270
},
296271
"configurations": {
297272
"production": {
@@ -309,21 +284,13 @@
309284
"assets": [],
310285
"tsConfig": "libs/toolkit/tsconfig.spec.json"
311286
}
312-
},
313-
"lint": {
314-
"builder": "@angular-devkit/build-angular:tslint",
315-
"options": {
316-
"tsConfig": ["libs/toolkit/tsconfig.lib.json", "libs/toolkit/tsconfig.spec.json"],
317-
"exclude": ["**/node_modules/**"]
318-
}
319287
}
320288
},
321289
"prefix": "lib"
322290
}
323291
},
324292
"defaultProject": "docs",
325293
"cli": {
326-
"warnings": {},
327-
"defaultCollection": "@nrwl/schematics"
294+
"warnings": {}
328295
}
329296
}

apps/demo/src/app/app.component.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,11 @@ <h2>Getting up and running...</h2>
7070
combo-box:
7171
<fab-combo-box></fab-combo-box>
7272
</div>
73+
74+
<div>
75+
callout:
76+
<button #calloutTarget (click)="handCalloutClicked()">{{ showCallout ? 'hide callout' : 'show callout' }}</button>
77+
<fab-callout *ngIf="showCallout" [target]="calloutTarget" (onDismiss)="showCallout = false">
78+
<div>I am a callout</div>
79+
</fab-callout>
80+
</div>

apps/demo/src/app/app.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,4 +623,10 @@ export class AppComponent {
623623
onRatingChanged({ rating }) {
624624
console.log(rating)
625625
}
626+
627+
handCalloutClicked() {
628+
if (!this.showCallout) {
629+
this.showCallout = true;
630+
}
631+
}
626632
}

apps/demo/src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { AngularReactBrowserModule } from '@angular-react/core';
22
import { NgModule } from '@angular/core';
3-
import { NxModule } from '@nrwl/nx';
3+
import { NxModule } from '@nrwl/angular';
44
import { initializeIcons } from '@fluentui/react/lib/Icons';
55
import { AppComponent } from './app.component';
66
import { CounterComponent } from './counter/counter.component';

apps/demo/src/polyfills.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,17 @@
3434
// import 'core-js/es6/weak-map';
3535
// import 'core-js/es6/set';
3636

37-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
38-
// import 'classlist.js'; // Run `npm install --save classlist.js`.
39-
4037
/** IE10 and IE11 requires the following for the Reflect API. */
4138
// import 'core-js/es6/reflect';
4239

4340
/** Evergreen browsers require these. **/
4441
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
4542
// import 'core-js/es7/reflect';
4643

47-
/**
48-
* Required to support Web Animations `@angular/platform-browser/animations`.
49-
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
50-
**/
51-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
52-
5344
/***************************************************************************************************
5445
* Zone JS is required by Angular itself.
5546
*/
56-
import 'zone.js/dist/zone'; // Included with Angular CLI.
47+
import 'zone.js'; // Included with Angular CLI.
5748

5849
/***************************************************************************************************
5950
* APPLICATION IMPORTS

apps/demo/src/test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
22

3-
import 'zone.js/dist/zone-testing';
3+
import 'zone.js/testing';
44
import { getTestBed } from '@angular/core/testing';
55
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
66

77
declare const require: any;
88

99
// First, initialize the Angular testing environment.
10-
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
10+
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
11+
teardown: { destroyAfterEach: false }
12+
});
1113
// Then we find all the tests.
1214
const context = require.context('./', true, /.spec.ts$/);
1315
// And load the modules.

apps/docs/src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2-
import { NxModule } from '@nrwl/nx';
2+
import { NxModule } from '@nrwl/angular';
33
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
44

55
import { AngularReactBrowserModule } from '@angular-react/core';

apps/docs/src/app/react-components/react-dot/react-dot.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ import {
1414
} from '@angular/core';
1515
import * as React from 'react';
1616
import { ReactWrapperComponent } from '@angular-react/core';
17+
import { AngularReact } from '@angular-react/core';
1718

19+
@AngularReact()
1820
@Component({
1921
selector: 'app-react-dot',
2022
template: `
@@ -38,7 +40,6 @@ import { ReactWrapperComponent } from '@angular-react/core';
3840
</ReactDot>
3941
`,
4042
changeDetection: ChangeDetectionStrategy.OnPush,
41-
styles: ['react-renderer'],
4243
})
4344
export class ReactDotComponent extends ReactWrapperComponent<ReactDotProps> {
4445
@ViewChild('reactNode', { static: true }) protected reactNodeRef: ElementRef;

0 commit comments

Comments
 (0)