Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ COPY ./docker/setup.sh /setup.sh
RUN chmod +x /setup.sh

# Copy the production dependencies
COPY --from=builder /usr/local/app/dist/switcher-management /usr/share/nginx/html
COPY --from=builder /usr/local/app/dist/switcher-management/browser /usr/share/nginx/html
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

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

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
26 changes: 12 additions & 14 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular/build:application",
"options": {
"outputPath": "dist/switcher-management",
"outputPath": {
"base": "dist/switcher-management"
},
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": [
"zone.js"
"zone.js",
"@angular/localize/init"
],
"tsConfig": "tsconfig.app.json",
"aot": true,
Expand All @@ -38,7 +40,8 @@
"graphql-tag",
"chart.js",
"zen-observable"
]
],
"browser": "src/main.ts"
},
"configurations": {
"production": {
Expand All @@ -54,8 +57,6 @@
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": true,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand All @@ -68,21 +69,18 @@
"maximumError": "10kb"
}
],
"serviceWorker": true,
"ngswConfigPath": "ngsw-config.json"
"serviceWorker": "ngsw-config.json"
},
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true,
"vendorChunk": true,
"buildOptimizer": false
"namedChunks": true
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"builder": "@angular/build:dev-server",
"options": {
"buildTarget": "switcher-management:build:development"
},
Expand All @@ -96,7 +94,7 @@
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"builder": "@angular/build:extract-i18n",
"options": {
"buildTarget": "switcher-management:build"
}
Expand Down
11 changes: 5 additions & 6 deletions eslint.config.js → eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// @ts-check
const eslint = require("@eslint/js");
const tseslint = require("typescript-eslint");
const angular = require("angular-eslint");
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import angular from "angular-eslint";
import { defineConfig } from 'eslint/config';

module.exports = tseslint.config(
{
export default defineConfig({
files: ["**/*.ts"],
extends: [
eslint.configs.recommended,
Expand Down
Loading