Skip to content

Commit 1fe752d

Browse files
feat: add angular 16 support(#1258)
--------- Co-authored-by: Dmitriy Shekhovtsov valorkin <valorkin@gmail.com>
1 parent 6dbb644 commit 1fe752d

23 files changed

Lines changed: 14205 additions & 25415 deletions

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.json

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,61 @@
44
"**/*"
55
],
66
"plugins": [
7-
"@nrwl/nx"
7+
"@nx"
88
],
99
"overrides": [
1010
{
11-
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
11+
"files": [
12+
"*.ts",
13+
"*.tsx",
14+
"*.js",
15+
"*.jsx"
16+
],
1217
"rules": {
13-
"@nrwl/nx/enforce-module-boundaries": [
18+
"@nx/enforce-module-boundaries": [
1419
"error",
1520
{
1621
"enforceBuildableLibDependency": true,
1722
"allow": [],
1823
"depConstraints": [
19-
{ "sourceTag": "*", "onlyDependOnLibsWithTags": ["*"] }
24+
{
25+
"sourceTag": "*",
26+
"onlyDependOnLibsWithTags": [
27+
"*"
28+
]
29+
}
2030
]
2131
}
2232
]
2333
}
2434
},
2535
{
26-
"files": ["*.ts", "*.tsx"],
27-
"extends": ["plugin:@nrwl/nx/typescript"],
28-
"parserOptions": { "project": "./tsconfig.*?.json" },
36+
"files": [
37+
"*.ts",
38+
"*.tsx"
39+
],
40+
"extends": [
41+
"plugin:@nx/typescript"
42+
],
43+
"parserOptions": {
44+
"project": "./tsconfig.*?.json"
45+
},
2946
"rules": {
3047
"semi": "off",
31-
"@typescript-eslint/semi": ["error"],
48+
"@typescript-eslint/semi": [
49+
"error"
50+
],
3251
"@typescript-eslint/ban-ts-comment": "off"
3352
}
3453
},
3554
{
36-
"files": ["*.js", "*.jsx"],
37-
"extends": ["plugin:@nrwl/nx/javascript"],
55+
"files": [
56+
"*.js",
57+
"*.jsx"
58+
],
59+
"extends": [
60+
"plugin:@nx/javascript"
61+
],
3862
"rules": {}
3963
}
4064
]

.github/workflows/on-push-or-pull.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
runs-on: ubuntu-latest
3737
needs: one_run
3838
steps:
39-
- uses: actions/checkout@v2.3.4
40-
- uses: actions/cache@v2.1.4
39+
- uses: actions/checkout@v3
40+
- uses: actions/cache@v3
4141
id: cache
4242
with:
4343
path: ${{ env.CACHE_NODE_MODULES_PATH }}
@@ -50,12 +50,12 @@ jobs:
5050
needs: install
5151
runs-on: ubuntu-latest
5252
steps:
53-
- uses: actions/checkout@v2.3.4
54-
- uses: actions/cache@v2.1.4
53+
- uses: actions/checkout@v3
54+
- uses: actions/cache@v3
5555
with:
5656
path: ${{ env.CACHE_NODE_MODULES_PATH }}
5757
key: node_modules-${{ hashFiles('**/package-lock.json') }}
58-
- uses: actions/cache@v2.1.4
58+
- uses: actions/cache@v3
5959
with:
6060
path: ${{ env.CACHE_DIST_PATH }}
6161
key: dist-${{ github.run_id }}
@@ -66,8 +66,8 @@ jobs:
6666
runs-on: ubuntu-latest
6767
needs: build
6868
steps:
69-
- uses: actions/checkout@v2
70-
- uses: actions/cache@v2
69+
- uses: actions/checkout@v3
70+
- uses: actions/cache@v3
7171
with:
7272
path: ${{ env.CACHE_NODE_MODULES_PATH }}
7373
key: node_modules-${{ hashFiles('**/package-lock.json') }}
@@ -83,8 +83,8 @@ jobs:
8383
runs-on: ubuntu-latest
8484
needs: install
8585
steps:
86-
- uses: actions/checkout@v2
87-
- uses: actions/cache@v2
86+
- uses: actions/checkout@v3
87+
- uses: actions/cache@v3
8888
with:
8989
path: ${{ env.CACHE_NODE_MODULES_PATH }}
9090
key: node_modules-${{ hashFiles('**/package-lock.json') }}
@@ -97,8 +97,8 @@ jobs:
9797
outputs:
9898
output_url: ${{ steps.firebase_hosting_preview.outputs.details_url }}
9999
steps:
100-
- uses: actions/checkout@v2
101-
- uses: actions/cache@v2
100+
- uses: actions/checkout@v3
101+
- uses: actions/cache@v3
102102
with:
103103
path: ${{ env.CACHE_DIST_PATH }}
104104
key: dist-${{ github.run_id }}

.travis.yml

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

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ Easy to use Angular2 directives for files upload ([demo](http://valor-software.g
33

44
[![Angular 2 Style Guide](https://mgechev.github.io/angular2-style-guide/images/badge.svg)](https://github.com/mgechev/angular2-style-guide)
55
[![Build Status](https://travis-ci.org/valor-software/ng2-file-upload.svg?branch=development)](https://travis-ci.org/valor-software/ng2-file-upload)
6-
[![Dependency Status](https://david-dm.org/valor-software/ng2-file-upload.svg)](https://david-dm.org/valor-software/ng2-file-upload)
76

87
## Quick start
98

109
1. A recommended way to install ***ng2-file-upload*** is through [npm](https://www.npmjs.com/search?q=ng2-file-upload) package manager using the following command:
1110

12-
`npm i ng2-file-upload --save`
11+
`npm i ng2-file-upload`
1312

1413
Alternatively, you can [download it in a ZIP file](https://github.com/valor-software/ng2-file-upload/archive/master.zip).
1514

@@ -18,7 +17,7 @@ Easy to use Angular2 directives for files upload ([demo](http://valor-software.g
1817

1918
3. More information regarding using of ***ng2-file-upload*** is located in
2019
[demo](http://valor-software.github.io/ng2-file-upload/) and [demo sources](https://github.com/valor-software/ng2-file-upload/tree/master/demo).
21-
20+
2221
## Using ***ng2-file-upload*** in a project
2322

2423
1. Install as shown in the above section.

angular.json

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

apps/demo/.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"*.ts"
1212
],
1313
"extends": [
14-
"plugin:@nrwl/nx/angular",
14+
"plugin:@nx/angular",
1515
"plugin:@angular-eslint/template/process-inline-templates"
1616
],
1717
"rules": {}
@@ -21,7 +21,7 @@
2121
"*.html"
2222
],
2323
"extends": [
24-
"plugin:@nrwl/nx/angular-template"
24+
"plugin:@nx/angular-template"
2525
],
2626
"rules": {}
2727
}

apps/demo/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"dependsOn": [
2828
{
2929
"target": "build",
30-
"projects": "dependencies"
30+
"dependencies": true
3131
}
3232
],
3333
"configurations": {
@@ -62,7 +62,7 @@
6262
}
6363
},
6464
"lint": {
65-
"executor": "@nrwl/linter:eslint",
65+
"executor": "@nx/linter:eslint",
6666
"options": {
6767
"lintFilePatterns": [
6868
"apps/demo/**/*.ts"

apps/demo/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import '../../../scripts/polyfills.ts';
1+
import './polyfills';
22

33
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
44
import { enableProdMode } from '@angular/core';

apps/demo/src/polyfills.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/***************************************************************************************************
2+
* Zone JS is required by default for Angular itself.
3+
*/
4+
import 'zone.js'; // Included with Angular CLI.
5+
6+
/***************************************************************************************************
7+
* APPLICATION IMPORTS
8+
*/
9+
10+
(window as any)['global'] = window;

0 commit comments

Comments
 (0)