Skip to content

Commit c77115f

Browse files
author
R. Kaleta
authored
Merge pull request #12 from ref-humbold/angular-15
Angular 15
2 parents 0a3500c + b5765c0 commit c77115f

13 files changed

+4701
-4105
lines changed

.eslintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242
"error",
4343
{ "accessibility": "explicit", "overrides": { "constructors": "no-public" } }
4444
],
45-
"@typescript-eslint/explicit-module-boundary-types": ["warn"],
45+
"@typescript-eslint/explicit-module-boundary-types": [
46+
"warn",
47+
{ "allowArgumentsExplicitlyTypedAsAny": true }
48+
],
4649
"@typescript-eslint/no-empty-function": "off",
4750
"@typescript-eslint/no-inferrable-types": "warn",
4851
"@typescript-eslint/prefer-readonly": "warn",

.vscode/launch.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "localhost Firefox",
9+
"type": "firefox",
10+
"request": "launch",
11+
"reAttach": true,
12+
"url": "http://localhost:4200",
13+
"webRoot": "${workspaceFolder}"
14+
},
15+
{
16+
"name": "localhost Chrome",
17+
"type": "chrome",
18+
"request": "launch",
19+
"url": "http://localhost:4200",
20+
"webRoot": "${workspaceFolder}"
21+
}
22+
]
23+
}

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,22 @@ ZenSaper is a small single-player game written in Angular framework. The player
1616

1717
## How to build Docker image?
1818

19+
For development image use `Dockerfile.dev`:
20+
```
21+
docker build -f Dockerfile.dev -t zen-saper:dev .
22+
```
23+
24+
For production image use `Dockerfile`:
25+
```
26+
docker build -f Dockerfile -t zen-saper:prod .
27+
```
28+
1929
## How to run in Docker?
2030

31+
```
32+
docker run zen-saper:[tag]
33+
```
34+
2135
-----
2236

2337
## Angular information

angular.json

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@
1818
"main": "src/main.ts",
1919
"polyfills": "src/polyfills.ts",
2020
"tsConfig": "tsconfig.app.json",
21-
"assets": [
22-
"src/favicon.ico",
23-
"src/assets"
24-
],
25-
"styles": [
26-
"src/styles.css"
27-
],
21+
"assets": ["src/favicon.ico", "src/assets"],
22+
"styles": ["src/styles.css"],
2823
"scripts": [],
2924
"vendorChunk": true,
3025
"extractLicenses": false,
@@ -87,23 +82,15 @@
8782
"polyfills": "src/polyfills.ts",
8883
"tsConfig": "tsconfig.spec.json",
8984
"karmaConfig": "karma.conf.js",
90-
"assets": [
91-
"src/favicon.ico",
92-
"src/assets"
93-
],
94-
"styles": [
95-
"src/styles.css"
96-
],
85+
"assets": ["src/favicon.ico", "src/assets"],
86+
"styles": ["src/styles.css"],
9787
"scripts": []
9888
}
9989
},
10090
"lint": {
10191
"builder": "@angular-eslint/builder:lint",
10292
"options": {
103-
"lintFilePatterns": [
104-
"src/**/*.ts",
105-
"src/**/*.html"
106-
]
93+
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
10794
}
10895
},
10996
"e2e": {
@@ -121,8 +108,15 @@
121108
}
122109
}
123110
},
124-
"defaultProject": "ZenSaper",
125111
"cli": {
126-
"defaultCollection": "@angular-eslint/schematics"
112+
"schematicCollections": ["@angular-eslint/schematics"]
113+
},
114+
"schematics": {
115+
"@angular-eslint/schematics:application": {
116+
"setParserOptionsProject": true
117+
},
118+
"@angular-eslint/schematics:library": {
119+
"setParserOptionsProject": true
120+
}
127121
}
128122
}

0 commit comments

Comments
 (0)