diff --git a/.gitignore b/.gitignore index cc7b141..98ff030 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,7 @@ testem.log # System files .DS_Store Thumbs.db + + +.nx/cache +.nx/workspace-data \ No newline at end of file diff --git a/angular.json b/angular.json index 8f1ac30..61235ec 100644 --- a/angular.json +++ b/angular.json @@ -6,66 +6,45 @@ "angular-vite-6": { "projectType": "application", "schematics": {}, - "root": "", + "root": ".", "sourceRoot": "src", "prefix": "app", "architect": { "build": { - "builder": "@angular-devkit/build-angular:application", + "builder": "@analogjs/platform:vite", "options": { - "outputPath": "dist/angular-vite-6", - "index": "src/index.html", - "browser": "src/main.ts", - "polyfills": [ - "zone.js" - ], - "tsConfig": "tsconfig.app.json", - "assets": [ - { - "glob": "**/*", - "input": "public" - } - ], - "styles": [ - "src/styles.css" - ], - "scripts": [] + "configFile": "vite.config.ts", + "main": "src/main.ts", + "outputPath": "dist/client", + "tsConfig": "tsconfig.app.json" }, + "defaultConfiguration": "production", "configurations": { - "production": { - "budgets": [ - { - "type": "initial", - "maximumWarning": "500kB", - "maximumError": "1MB" - }, - { - "type": "anyComponentStyle", - "maximumWarning": "4kB", - "maximumError": "8kB" - } - ], - "outputHashing": "all" - }, "development": { - "optimization": false, - "extractLicenses": false, - "sourceMap": true + "mode": "development" + }, + "production": { + "sourcemap": false, + "mode": "production" } - }, - "defaultConfiguration": "production" + } }, "serve": { - "builder": "@angular-devkit/build-angular:dev-server", + "builder": "@analogjs/platform:vite-dev-server", + "defaultConfiguration": "development", + "options": { + "buildTarget": "angular-vite-6:build", + "port": 4200 + }, "configurations": { + "development": { + "buildTarget": "angular-vite-6:build:development", + "hmr": true + }, "production": { "buildTarget": "angular-vite-6:build:production" - }, - "development": { - "buildTarget": "angular-vite-6:build:development" } - }, - "defaultConfiguration": "development" + } }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n" diff --git a/src/index.html b/index.html similarity index 66% rename from src/index.html rename to index.html index a38bfe2..7c86267 100644 --- a/src/index.html +++ b/index.html @@ -5,9 +5,9 @@