From 65f7acd28662d7f64d598d371ffdc12fed57ccc2 Mon Sep 17 00:00:00 2001 From: Serhii Pylypchuk Date: Sat, 12 Jul 2025 22:06:55 +0400 Subject: [PATCH 1/2] Add settings to start project in GitHub codespaces --- .devcontainer/devcontainer.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..6cd7882 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,9 @@ +{ + "updateContentCommand": "yarn", + "postAttachCommand": "yarn start", + "customizations": { + "codespaces": { + "openFiles": ["src/app/app.component.ts"] + } + } +} From 058eb27f98d17abe8a33ff160957121db20d9dff Mon Sep 17 00:00:00 2001 From: Serhii Pylypchuk Date: Sat, 12 Jul 2025 22:55:46 +0400 Subject: [PATCH 2/2] Add extra fixes for codaspace --- angular.json | 28 +++++++--------------------- tsconfig.json | 2 +- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/angular.json b/angular.json index 816796f..8b98c84 100644 --- a/angular.json +++ b/angular.json @@ -13,20 +13,14 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { + "allowedCommonJsDependencies": ["@dhx/trial-suite"], "outputPath": "dist/sandbox", "index": "src/index.html", "main": "src/main.ts", - "polyfills": [ - "zone.js" - ], + "polyfills": ["zone.js"], "tsConfig": "tsconfig.app.json", - "assets": [ - "src/favicon.ico", - "src/assets" - ], - "styles": [ - "src/styles.css" - ], + "assets": ["src/favicon.ico", "src/assets"], + "styles": ["src/styles.css"], "scripts": [] }, "configurations": { @@ -77,18 +71,10 @@ "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "polyfills": [ - "zone.js", - "zone.js/testing" - ], + "polyfills": ["zone.js", "zone.js/testing"], "tsConfig": "tsconfig.spec.json", - "assets": [ - "src/favicon.ico", - "src/assets" - ], - "styles": [ - "src/styles.css" - ], + "assets": ["src/favicon.ico", "src/assets"], + "styles": ["src/styles.css"], "scripts": [] } } diff --git a/tsconfig.json b/tsconfig.json index 17e7824..1301bf2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,3 +1,4 @@ +/* To learn more about this file see: https://angular.io/config/tsconfig. */ { "compileOnSave": false, "compilerOptions": { @@ -20,7 +21,6 @@ "useDefineForClassFields": false, "lib": ["ES2022", "dom"] }, - "include": ["@dhx/trial-spreadsheet"], "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, "strictInjectionParameters": true,