diff --git a/apps/analog-app/project.json b/apps/analog-app/project.json
index 647b06dfa..ee1fc8e12 100644
--- a/apps/analog-app/project.json
+++ b/apps/analog-app/project.json
@@ -80,8 +80,7 @@
"hmr": true
},
"production": {
- "buildTarget": "analog-app:build:production",
- "hmr": false
+ "buildTarget": "analog-app:build:production"
}
}
},
diff --git a/package.json b/package.json
index ad5f4daab..e6838ef0f 100644
--- a/package.json
+++ b/package.json
@@ -66,7 +66,7 @@
"@nrwl/linter": "15.2.1",
"@nrwl/vite": "15.2.1",
"@nrwl/workspace": "15.2.1",
- "@nx-plus/docusaurus": "14.1.0",
+ "@nx-plus/docusaurus": "15.0.0-rc.0",
"@swc/helpers": "^0.4.13",
"@types/jest": "29.1.2",
"@types/node": "18.8.4",
@@ -101,8 +101,8 @@
"ts-jest": "29.0.3",
"ts-node": "10.9.1",
"typescript": "4.8.4",
- "vite": "^3.1.7",
- "vitest": "^0.24.1",
+ "vite": "^3.2.3",
+ "vitest": "^0.25.1",
"webpack-bundle-analyzer": "^4.6.1"
}
}
diff --git a/packages/create-analog/template-angular-v15/.vscode/launch.json b/packages/create-analog/template-angular-v15/.vscode/launch.json
index 740e35a0c..57dbf761e 100644
--- a/packages/create-analog/template-angular-v15/.vscode/launch.json
+++ b/packages/create-analog/template-angular-v15/.vscode/launch.json
@@ -4,17 +4,16 @@
"configurations": [
{
"name": "ng serve",
- "type": "pwa-chrome",
+ "type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
- "url": "http://localhost:4200/"
+ "url": "http://localhost:5173/"
},
{
"name": "ng test",
"type": "chrome",
"request": "launch",
- "preLaunchTask": "npm: test",
- "url": "http://localhost:9876/debug.html"
+ "preLaunchTask": "npm: test"
}
]
}
diff --git a/packages/create-analog/template-angular-v15/README.md b/packages/create-analog/template-angular-v15/README.md
index 904f5ce7e..4422db6b7 100644
--- a/packages/create-analog/template-angular-v15/README.md
+++ b/packages/create-analog/template-angular-v15/README.md
@@ -1,6 +1,6 @@
# Analog App
-This project was generated with [Analog](https://npmjs.com/package/create-analog).
+This project was generated with [Analog](https://analogjs.org), the fullstack meta-framework for Angular.
## Setup
@@ -12,7 +12,7 @@ Run `yarn dev` for a dev server. Navigate to `http://localhost:5173/`. The appli
## Build
-Run `yarn build` to build the project. The build artifacts will be stored in the `dist/` directory.
+Run `yarn build` to build the client/server project. The client build artifacts are located in the `dist/client` directory. The server for the API build artifacts are located in the `dist/server` directory.
## Test
diff --git a/packages/create-analog/template-angular-v15/angular.json b/packages/create-analog/template-angular-v15/angular.json
index 836e33321..98d5ce2a8 100644
--- a/packages/create-analog/template-angular-v15/angular.json
+++ b/packages/create-analog/template-angular-v15/angular.json
@@ -5,12 +5,47 @@
"projects": {
"my-app": {
"projectType": "application",
- "schematics": {},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
- "targets": {}
+ "build": {
+ "builder": "@nrwl/vite:build",
+ "options": {
+ "configFile": "vite.config.ts",
+ "outputPath": "dist/client"
+ },
+ "defaultConfiguration": "production",
+ "configurations": {
+ "development": {},
+ "production": {
+ "sourcemap": false
+ }
+ }
+ },
+ "serve": {
+ "builder": "@nrwl/vite:dev-server",
+ "defaultConfiguration": "development",
+ "options": {
+ "buildTarget": "my-app:build",
+ "port": 5173
+ },
+ "configurations": {
+ "development": {
+ "buildTarget": "my-app:build:development",
+ "hmr": true
+ },
+ "production": {
+ "buildTarget": "my-app:build:production"
+ }
+ }
+ },
+ "test": {
+ "builder": "@nrwl/vite:test",
+ "options": {
+ "config": "vite.config.ts"
+ }
+ }
}
}
}
diff --git a/packages/create-analog/template-angular-v15/package.json b/packages/create-analog/template-angular-v15/package.json
index c7540688e..f3e7a15d1 100644
--- a/packages/create-analog/template-angular-v15/package.json
+++ b/packages/create-analog/template-angular-v15/package.json
@@ -6,12 +6,12 @@
"node": ">=16.0.0"
},
"scripts": {
- "dev": "vite",
+ "dev": "ng serve",
"ng": "ng",
- "start": "npm run dev",
- "build": "vite build",
- "watch": "vite build --watch",
- "test": "vitest"
+ "start": "ng serve",
+ "build": "ng build",
+ "watch": "ng build --watch",
+ "test": "ng test"
},
"dependencies": {
"@analogjs/router": "latest",
@@ -32,9 +32,10 @@
"@angular-devkit/build-angular": "^15.0.0",
"@angular/cli": "~15.0.0",
"@angular/compiler-cli": "^15.0.0",
+ "@nrwl/vite": "^15.2.0",
"jsdom": "^20.0.0",
"typescript": "~4.8.4",
- "vite": "^3.0.9",
- "vitest": "^0.22.1"
+ "vite": "^3.2.3",
+ "vitest": "^0.25.1"
}
}
diff --git a/packages/create-analog/template-angular-v15/src/index.html b/packages/create-analog/template-angular-v15/src/index.html
index 7519e0418..ff244b75d 100644
--- a/packages/create-analog/template-angular-v15/src/index.html
+++ b/packages/create-analog/template-angular-v15/src/index.html
@@ -6,10 +6,10 @@