Skip to content

Commit d437f64

Browse files
Merge pull request #6 from awesome-release/update-to-v16
Update to v16 and node 18
2 parents 06d2969 + d2a45d7 commit d437f64

31 files changed

Lines changed: 7845 additions & 13481 deletions

.npmrc

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

angular/.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false

angular/.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
.history/*
30+
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
34+
/connect.lock
35+
/coverage
36+
/libpeerconnection.log
37+
testem.log
38+
/typings
39+
40+
# System files
41+
.DS_Store
42+
Thumbs.db

angular/.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3+
"recommendations": ["angular.ng-template"]
4+
}

angular/.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "ng serve",
7+
"type": "chrome",
8+
"request": "launch",
9+
"preLaunchTask": "npm: start",
10+
"url": "http://localhost:4200/"
11+
},
12+
{
13+
"name": "ng test",
14+
"type": "chrome",
15+
"request": "launch",
16+
"preLaunchTask": "npm: test",
17+
"url": "http://localhost:9876/debug.html"
18+
}
19+
]
20+
}

angular/.vscode/tasks.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3+
"version": "2.0.0",
4+
"tasks": [
5+
{
6+
"type": "npm",
7+
"script": "start",
8+
"isBackground": true,
9+
"problemMatcher": {
10+
"owner": "typescript",
11+
"pattern": "$tsc",
12+
"background": {
13+
"activeOnStart": true,
14+
"beginsPattern": {
15+
"regexp": "(.*?)"
16+
},
17+
"endsPattern": {
18+
"regexp": "bundle generation complete"
19+
}
20+
}
21+
}
22+
},
23+
{
24+
"type": "npm",
25+
"script": "test",
26+
"isBackground": true,
27+
"problemMatcher": {
28+
"owner": "typescript",
29+
"pattern": "$tsc",
30+
"background": {
31+
"activeOnStart": true,
32+
"beginsPattern": {
33+
"regexp": "(.*?)"
34+
},
35+
"endsPattern": {
36+
"regexp": "bundle generation complete"
37+
}
38+
}
39+
}
40+
}
41+
]
42+
}

angular/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
FROM node:16
1+
FROM node:18
22

33
RUN mkdir /project
44
WORKDIR /project
55

6+
RUN npm install -g npm@latest
7+
RUN npm install --location=global @angular/cli
8+
69
COPY . .
710

8-
RUN npm install --location=global @angular/cli
9-
RUN yarn install
10-
CMD ["ng", "serve", "--disableHostCheck", "true", "--host", "0.0.0.0"]
11+
RUN npm install
12+
CMD ["ng", "serve", "--disable-host-check", "true", "--host", "0.0.0.0"]

angular/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
# Angular
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.23.
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.1.8.
44

55
## Development server
66

7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
7+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
88

99
## Code scaffolding
1010

1111
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
1212

1313
## Build
1414

15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
15+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
1616

1717
## Running unit tests
1818

1919
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
2020

2121
## Running end-to-end tests
2222

23-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
23+
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
2424

2525
## Further help
2626

27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.

angular/angular.json

Lines changed: 31 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
"outputPath": "dist/angular",
1717
"index": "src/index.html",
1818
"main": "src/main.ts",
19-
"polyfills": "src/polyfills.ts",
19+
"polyfills": [
20+
"zone.js"
21+
],
2022
"tsConfig": "tsconfig.app.json",
21-
"aot": true,
2223
"assets": [
2324
"src/favicon.ico",
2425
"src/assets"
@@ -30,45 +31,42 @@
3031
},
3132
"configurations": {
3233
"production": {
33-
"fileReplacements": [
34-
{
35-
"replace": "src/environments/environment.ts",
36-
"with": "src/environments/environment.prod.ts"
37-
}
38-
],
39-
"optimization": true,
40-
"outputHashing": "all",
41-
"sourceMap": false,
42-
"extractCss": true,
43-
"namedChunks": false,
44-
"extractLicenses": true,
45-
"vendorChunk": false,
46-
"buildOptimizer": true,
4734
"budgets": [
4835
{
4936
"type": "initial",
50-
"maximumWarning": "2mb",
51-
"maximumError": "5mb"
37+
"maximumWarning": "500kb",
38+
"maximumError": "1mb"
5239
},
5340
{
5441
"type": "anyComponentStyle",
55-
"maximumWarning": "6kb",
56-
"maximumError": "10kb"
42+
"maximumWarning": "2kb",
43+
"maximumError": "4kb"
5744
}
58-
]
45+
],
46+
"outputHashing": "all"
47+
},
48+
"development": {
49+
"buildOptimizer": false,
50+
"optimization": false,
51+
"vendorChunk": true,
52+
"extractLicenses": false,
53+
"sourceMap": true,
54+
"namedChunks": true
5955
}
60-
}
56+
},
57+
"defaultConfiguration": "production"
6158
},
6259
"serve": {
6360
"builder": "@angular-devkit/build-angular:dev-server",
64-
"options": {
65-
"browserTarget": "angular:build"
66-
},
6761
"configurations": {
6862
"production": {
6963
"browserTarget": "angular:build:production"
64+
},
65+
"development": {
66+
"browserTarget": "angular:build:development"
7067
}
71-
}
68+
},
69+
"defaultConfiguration": "development"
7270
},
7371
"extract-i18n": {
7472
"builder": "@angular-devkit/build-angular:extract-i18n",
@@ -79,10 +77,11 @@
7977
"test": {
8078
"builder": "@angular-devkit/build-angular:karma",
8179
"options": {
82-
"main": "src/test.ts",
83-
"polyfills": "src/polyfills.ts",
80+
"polyfills": [
81+
"zone.js",
82+
"zone.js/testing"
83+
],
8484
"tsConfig": "tsconfig.spec.json",
85-
"karmaConfig": "karma.conf.js",
8685
"assets": [
8786
"src/favicon.ico",
8887
"src/assets"
@@ -92,33 +91,8 @@
9291
],
9392
"scripts": []
9493
}
95-
},
96-
"lint": {
97-
"builder": "@angular-devkit/build-angular:tslint",
98-
"options": {
99-
"tsConfig": [
100-
"tsconfig.app.json",
101-
"tsconfig.spec.json",
102-
"e2e/tsconfig.json"
103-
],
104-
"exclude": [
105-
"**/node_modules/**"
106-
]
107-
}
108-
},
109-
"e2e": {
110-
"builder": "@angular-devkit/build-angular:protractor",
111-
"options": {
112-
"protractorConfig": "e2e/protractor.conf.js",
113-
"devServerTarget": "angular:serve"
114-
},
115-
"configurations": {
116-
"production": {
117-
"devServerTarget": "angular:serve:production"
118-
}
119-
}
12094
}
12195
}
122-
}},
123-
"defaultProject": "angular"
124-
}
96+
}
97+
}
98+
}

angular/browserslist

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

0 commit comments

Comments
 (0)