Skip to content

Commit 7437207

Browse files
committed
chore: migrated to new build system and eslint defineConfing
1 parent 8592f36 commit 7437207

File tree

8 files changed

+7387
-12612
lines changed

8 files changed

+7387
-12612
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ COPY ./docker/setup.sh /setup.sh
2626
RUN chmod +x /setup.sh
2727

2828
# Copy the production dependencies
29-
COPY --from=builder /usr/local/app/dist/switcher-management /usr/share/nginx/html
29+
COPY --from=builder /usr/local/app/dist/switcher-management/browser /usr/share/nginx/html

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019-present Rogerio F. da Cunha (petruki) and Contributors
3+
Copyright (c) 2019-present Roger Floriano (petruki) and Contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

angular.json

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111
"prefix": "app",
1212
"architect": {
1313
"build": {
14-
"builder": "@angular-devkit/build-angular:browser",
14+
"builder": "@angular/build:application",
1515
"options": {
16-
"outputPath": "dist/switcher-management",
16+
"outputPath": {
17+
"base": "dist/switcher-management"
18+
},
1719
"index": "src/index.html",
18-
"main": "src/main.ts",
1920
"polyfills": [
20-
"zone.js"
21+
"zone.js",
22+
"@angular/localize/init"
2123
],
2224
"tsConfig": "tsconfig.app.json",
2325
"aot": true,
@@ -38,7 +40,8 @@
3840
"graphql-tag",
3941
"chart.js",
4042
"zen-observable"
41-
]
43+
],
44+
"browser": "src/main.ts"
4245
},
4346
"configurations": {
4447
"production": {
@@ -54,8 +57,6 @@
5457
"sourceMap": false,
5558
"namedChunks": false,
5659
"extractLicenses": true,
57-
"vendorChunk": true,
58-
"buildOptimizer": true,
5960
"budgets": [
6061
{
6162
"type": "initial",
@@ -68,21 +69,18 @@
6869
"maximumError": "10kb"
6970
}
7071
],
71-
"serviceWorker": true,
72-
"ngswConfigPath": "ngsw-config.json"
72+
"serviceWorker": "ngsw-config.json"
7373
},
7474
"development": {
7575
"optimization": false,
7676
"extractLicenses": false,
7777
"sourceMap": true,
78-
"namedChunks": true,
79-
"vendorChunk": true,
80-
"buildOptimizer": false
78+
"namedChunks": true
8179
}
8280
}
8381
},
8482
"serve": {
85-
"builder": "@angular-devkit/build-angular:dev-server",
83+
"builder": "@angular/build:dev-server",
8684
"options": {
8785
"buildTarget": "switcher-management:build:development"
8886
},
@@ -96,7 +94,7 @@
9694
}
9795
},
9896
"extract-i18n": {
99-
"builder": "@angular-devkit/build-angular:extract-i18n",
97+
"builder": "@angular/build:extract-i18n",
10098
"options": {
10199
"buildTarget": "switcher-management:build"
102100
}

eslint.config.js renamed to eslint.config.mjs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
// @ts-check
2-
const eslint = require("@eslint/js");
3-
const tseslint = require("typescript-eslint");
4-
const angular = require("angular-eslint");
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
import angular from "angular-eslint";
4+
import { defineConfig } from 'eslint/config';
55

6-
module.exports = tseslint.config(
7-
{
6+
export default defineConfig({
87
files: ["**/*.ts"],
98
extends: [
109
eslint.configs.recommended,

0 commit comments

Comments
 (0)