Skip to content

Commit d46bd25

Browse files
authored
Merge pull request #217 from maxisam/release/13.0.0
Release/13.0.0
2 parents f87d22c + 77ea8a6 commit d46bd25

File tree

15 files changed

+4398
-2725
lines changed

15 files changed

+4398
-2725
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ To make more sense with the future versioning scheme of Angular, the directive s
2222
If you need to use it on 2.x, please use version 7.x.x.
2323
If you need to use it on 4.x, please use version 8.x.x.
2424
If you need to use it on 5.x, please use version 10.x.x.
25+
If you need to use it on 9.x, please use version 13.x.x.
2526

2627
The code are pretty much the same, in 8.0.0 it uses InjectionToken which requires angular4 and above.
2728

@@ -170,10 +171,8 @@ Special thanks to [@DmitryEfimenko](https://github.com/DmitryEfimenko) for imple
170171

171172
## Build project
172173

173-
```
174-
1. npm i
175-
176-
2. npm run build
174+
```cmd
175+
npm i && npm run build
177176
```
178177

179178
To run demo code locally

angular.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
"build": {
1414
"builder": "@angular-devkit/build-angular:browser",
1515
"options": {
16+
"aot": true,
1617
"outputPath": "dist/library-host",
1718
"index": "src/index.html",
1819
"main": "src/main.ts",
1920
"polyfills": "src/polyfills.ts",
20-
"tsConfig": "src/tsconfig.app.json",
21+
"tsConfig": "tsconfig.app.json",
2122
"assets": ["src/favicon.ico", "src/assets"],
2223
"styles": [
2324
"node_modules/@clr/ui/clr-ui.min.css",
@@ -28,6 +29,12 @@
2829
},
2930
"configurations": {
3031
"production": {
32+
"budgets": [
33+
{
34+
"type": "anyComponentStyle",
35+
"maximumWarning": "6kb"
36+
}
37+
],
3138
"fileReplacements": [
3239
{
3340
"replace": "src/environments/environment.ts",
@@ -68,7 +75,7 @@
6875
"options": {
6976
"main": "src/test.ts",
7077
"polyfills": "src/polyfills.ts",
71-
"tsConfig": "src/tsconfig.spec.json",
78+
"tsConfig": "tsconfig.spec.json",
7279
"karmaConfig": "src/karma.conf.js",
7380
"styles": ["src/styles.css"],
7481
"scripts": [],
@@ -118,7 +125,8 @@
118125
},
119126
"configurations": {
120127
"production": {
121-
"project": "projects/ngx-clipboard/ng-package.prod.json"
128+
"project": "projects/ngx-clipboard/ng-package.prod.json",
129+
"tsConfig": "projects/ngx-clipboard/tsconfig.lib.prod.json"
122130
}
123131
}
124132
},
@@ -145,6 +153,7 @@
145153
},
146154
"defaultProject": "library-host",
147155
"cli": {
148-
"packageManager": "yarn"
156+
"packageManager": "yarn",
157+
"analytics": "26cce57c-232f-4bfb-ac75-bfc72a238bd7"
149158
}
150159
}
File renamed without changes.

package.json

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,35 @@
1717
},
1818
"private": true,
1919
"dependencies": {
20-
"@angular/animations": "~7.2.15",
21-
"@angular/common": "~7.2.15",
22-
"@angular/compiler": "~7.2.15",
23-
"@angular/core": "~7.2.15",
24-
"@angular/forms": "~7.2.15",
25-
"@angular/platform-browser": "~7.2.15",
26-
"@angular/platform-browser-dynamic": "~7.2.15",
27-
"@angular/router": "~7.2.15",
28-
"@clr/angular": "^0.13.6",
29-
"@clr/icons": "^0.13.6",
30-
"@clr/ui": "^0.13.6",
20+
"@angular/animations": "~9.0.1",
21+
"@angular/common": "~9.0.1",
22+
"@angular/compiler": "~9.0.0",
23+
"@angular/core": "~9.0.1",
24+
"@angular/forms": "~9.0.1",
25+
"@angular/platform-browser": "~9.0.1",
26+
"@angular/platform-browser-dynamic": "~9.0.1",
27+
"@angular/router": "~9.0.1",
28+
"@clr/angular": "^2.3.7",
29+
"@clr/icons": "^2.3.7",
30+
"@clr/ui": "^2.3.7",
3131
"core-js": "^2.5.4",
32-
"ngx-clipboard": "12.3.0",
33-
"ngx-window-token": "2.0.1",
34-
"rxjs": "~6.5.2",
35-
"tslib": "^1.9.0",
36-
"zone.js": "~0.8.26"
32+
"ngx-clipboard": "13.0.0-beta06",
33+
"ngx-window-token": "3.0.0-beta01",
34+
"rxjs": "~6.5.4",
35+
"tslib": "^1.10.0",
36+
"zone.js": "~0.10.2"
3737
},
3838
"devDependencies": {
39-
"@angular-devkit/build-angular": "~0.13.9",
40-
"@angular-devkit/build-ng-packagr": "~0.13.9",
41-
"@angular/cli": "~7.3.9",
42-
"@angular/compiler-cli": "~7.2.15",
43-
"@angular/language-service": "~7.2.15",
39+
"@angular-devkit/build-angular": "~0.900.2",
40+
"@angular-devkit/build-ng-packagr": "~0.900.2",
41+
"@angular/cli": "~9.0.2",
42+
"@angular/compiler-cli": "~9.0.1",
43+
"@angular/language-service": "~9.0.1",
4444
"@types/jasmine": "~2.8.8",
4545
"@types/jasminewd2": "~2.0.3",
46-
"@types/node": "~8.9.4",
46+
"@types/node": "^12.11.1",
4747
"@webcomponents/custom-elements": "^1.2.1",
48-
"codelyzer": "~4.5.0",
48+
"codelyzer": "^5.1.2",
4949
"cpx": "^1.5.0",
5050
"husky": "2.4.1",
5151
"jasmine-core": "~2.99.1",
@@ -56,15 +56,13 @@
5656
"karma-jasmine": "~1.1.2",
5757
"karma-jasmine-html-reporter": "^0.2.2",
5858
"lint-staged": "8.2.1",
59-
"ng-packagr": "^4.2.0",
59+
"ng-packagr": "^9.0.0",
6060
"prettier": "1.18.2",
6161
"protractor": "~5.4.0",
6262
"ts-node": "~7.0.0",
63-
"tsickle": ">=0.34.0",
64-
"tslib": "^1.9.0",
6563
"tslint": "~5.11.0",
6664
"tslint-config-prettier": "^1.18.0",
67-
"typescript": "~3.2.4"
65+
"typescript": "^3.7.5"
6866
},
6967
"husky": {
7068
"hooks": {

projects/ngx-clipboard/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ngx-clipboard",
33
"description": "angular 2 clipboard",
4-
"version": "12.3.1",
4+
"version": "13.0.0",
55
"author": {
66
"name": "Sam Lin",
77
"email": "[email protected]"
@@ -22,10 +22,10 @@
2222
"copy"
2323
],
2424
"dependencies": {
25-
"ngx-window-token": "^2.0.0"
25+
"ngx-window-token": ">= 3.0.0-beta01 || >= 3.0.0"
2626
},
2727
"peerDependencies": {
28-
"@angular/common": ">=6.0.0",
29-
"@angular/core": ">=6.0.0"
28+
"@angular/common": ">=9.0.0",
29+
"@angular/core": ">=9.0.0"
3030
}
3131
}

projects/ngx-clipboard/tsconfig.lib.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,15 @@
33
"compilerOptions": {
44
"outDir": "../../out-tsc/lib",
55
"target": "es2015",
6-
"module": "es2015",
7-
"moduleResolution": "node",
86
"declaration": true,
9-
"sourceMap": true,
107
"inlineSources": true,
11-
"emitDecoratorMetadata": true,
12-
"experimentalDecorators": true,
13-
"importHelpers": true,
148
"types": [],
15-
"lib": ["dom", "es2015"]
9+
"lib": ["dom", "es2018"]
1610
},
1711
"angularCompilerOptions": {
18-
"annotateForClosureCompiler": true,
1912
"skipTemplateCodegen": true,
2013
"strictMetadataEmit": true,
21-
"fullTemplateTypeCheck": true,
22-
"strictInjectionParameters": true,
23-
"flatModuleId": "AUTOGENERATED",
24-
"flatModuleOutFile": "AUTOGENERATED"
14+
"enableResourceInlining": true
2515
},
2616
"exclude": ["src/test.ts", "**/*.spec.ts"]
2717
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.lib.json",
3+
"angularCompilerOptions": {
4+
"enableIvy": false
5+
}
6+
}

src/polyfills.ts

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,15 @@
1111
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
1212
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
1313
*
14-
* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
14+
* Learn more in https://angular.io/guide/browser-support
1515
*/
16-
import 'core-js/es6/array';
17-
import 'core-js/es6/date';
18-
import 'core-js/es6/function';
19-
import 'core-js/es6/map';
20-
import 'core-js/es6/math';
21-
import 'core-js/es6/number';
22-
import 'core-js/es6/object';
23-
import 'core-js/es6/parse-float';
24-
import 'core-js/es6/parse-int';
2516
import 'core-js/es6/reflect';
26-
import 'core-js/es6/regexp';
27-
import 'core-js/es6/set';
28-
import 'core-js/es6/string';
29-
import 'core-js/es6/symbol';
30-
import 'core-js/es6/weak-map';
31-
3217
import 'zone.js/dist/zone';
3318

19+
/***************************************************************************************************
20+
* BROWSER POLYFILLS
21+
*/
22+
3423
/***************************************************************************************************
3524
* BROWSER POLYFILLS
3625
*/

src/tsconfig.app.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/tsconfig.spec.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)