From 7d93d1530657c4265f5e8a8391f986b67890f89f Mon Sep 17 00:00:00 2001 From: ruffsl Date: Tue, 6 Jun 2023 14:11:39 +0000 Subject: [PATCH 1/4] Add Dev Container config using typescript image with angular CLI and extensions installed --- .devcontainer/devcontainer.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..0fe3cbc --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,24 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node +{ + "name": "Angular Gzweb", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/typescript-node:0-20", + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "ng build", + // "postCreateCommand": "npm install", + // Features to add to the dev container. More info: https://containers.dev/features. + "features": { + "ghcr.io/devcontainers-contrib/features/angular-cli:2": { + "version": "latest" + } + }, + // Configure tool-specific properties. + "customizations": { + "vscode": { + "extensions": [ + "Angular.ng-template" + ] + } + } +} From 1059598d9804a0f61df494d1384068e3c1c74de4 Mon Sep 17 00:00:00 2001 From: ruffsl Date: Tue, 6 Jun 2023 14:13:08 +0000 Subject: [PATCH 2/4] Bump up production budget size to fix build time error using ng --- angular.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angular.json b/angular.json index 2e34beb..edf3fa9 100644 --- a/angular.json +++ b/angular.json @@ -41,7 +41,7 @@ { "type": "initial", "maximumWarning": "500kb", - "maximumError": "1mb" + "maximumError": "2mb" }, { "type": "anyComponentStyle", From 385dbcfd4670fb3b8c241ff7fbbd4082f7c82fbe Mon Sep 17 00:00:00 2001 From: ruffsl Date: Tue, 6 Jun 2023 14:13:42 +0000 Subject: [PATCH 3/4] Clean up Dev Container config --- .devcontainer/devcontainer.json | 1 - 1 file changed, 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 0fe3cbc..69f460f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -6,7 +6,6 @@ "image": "mcr.microsoft.com/devcontainers/typescript-node:0-20", // Use 'postCreateCommand' to run commands after the container is created. "postCreateCommand": "ng build", - // "postCreateCommand": "npm install", // Features to add to the dev container. More info: https://containers.dev/features. "features": { "ghcr.io/devcontainers-contrib/features/angular-cli:2": { From 2c270bc38421124fa9aab7a8bd5aa24fd3e66416 Mon Sep 17 00:00:00 2001 From: ruffsl Date: Tue, 6 Jun 2023 14:16:25 +0000 Subject: [PATCH 4/4] Add typescript extention --- .devcontainer/devcontainer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 69f460f..b423944 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -16,7 +16,8 @@ "customizations": { "vscode": { "extensions": [ - "Angular.ng-template" + "Angular.ng-template", + "ms-vscode.vscode-typescript-next" ] } }