From 7a96242407954898fc9549c9d1560d1beca1e4eb Mon Sep 17 00:00:00 2001 From: hanna-skryl Date: Sun, 28 Apr 2024 15:11:06 -0400 Subject: [PATCH] chore: configure build command --- .gitignore | 2 +- angular.json | 2 +- package.json | 2 +- {docs => src}/index.html | 0 tsconfig.json | 5 ++--- 5 files changed, 5 insertions(+), 6 deletions(-) rename {docs => src}/index.html (100%) diff --git a/.gitignore b/.gitignore index 651dbc6..131c7f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .angular -dist node_modules +docs \ No newline at end of file diff --git a/angular.json b/angular.json index 39e8375..e237cc0 100644 --- a/angular.json +++ b/angular.json @@ -27,7 +27,7 @@ }, "options": { "assets": ["src/assets", "src/assets/*"], - "index": "docs/index.html", + "index": "src/index.html", "browser": "src/main.ts", "polyfills": ["zone.js"], "inlineStyleLanguage": "scss", diff --git a/package.json b/package.json index ce9dbd4..5d2f663 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "scripts": { "ng": "ng", "start": "ng serve", - "build": "ng build" + "build": "ng build --output-path docs --base-href /multi-step-form/" }, "dependencies": { "@angular/animations": "^17.2.0", diff --git a/docs/index.html b/src/index.html similarity index 100% rename from docs/index.html rename to src/index.html diff --git a/tsconfig.json b/tsconfig.json index 678a446..d276020 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,11 +16,10 @@ "experimentalDecorators": true, "moduleResolution": "node", "importHelpers": true, - "target": "ES2015", + "target": "ES2022", "module": "ES2022", "useDefineForClassFields": false, - "lib": ["ES2022", "dom"], - "paths": [] + "lib": ["ES2022", "dom"] }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false,