diff --git a/apps/api/project.json b/apps/api/project.json index 4e1affb13..d9af89108 100644 --- a/apps/api/project.json +++ b/apps/api/project.json @@ -58,7 +58,8 @@ "executor": "@nx/js:node", "options": { "buildTarget": "api:build" - } + }, + "dependsOn": ["copy-assets"] }, "lint": { "executor": "@nx/eslint:lint", diff --git a/apps/client/project.json b/apps/client/project.json index 38887ca8a..010b5c8a4 100644 --- a/apps/client/project.json +++ b/apps/client/project.json @@ -218,7 +218,9 @@ "proxyConfig": "apps/client/proxy.conf.json", "ssl": true, "sslCert": "apps/client/localhost.cert", - "sslKey": "apps/client/localhost.pem" + "sslKey": "apps/client/localhost.pem", + "hmr": true, + "open": true }, "configurations": { "development-ca": { @@ -264,6 +266,7 @@ "buildTarget": "client:build:production" } }, + "defaultConfiguration": "development-en", "continuous": true }, "extract-i18n": { diff --git a/package.json b/package.json index 686065630..eaf5c79d8 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "start:client": "nx run client:copy-assets && nx run client:serve --configuration=development-en --hmr -o", "start:production": "npm run database:migrate && npm run database:seed && node main", "start:server": "nx run api:copy-assets && nx run api:serve --watch", + "dev": "nx run-many --target=serve --projects=api,client --parallel=2", "start:storybook": "nx run ui:storybook", "test": "npx dotenv-cli -e .env.example -- npx nx run-many --target=test --all --parallel=4", "test:api": "npx dotenv-cli -e .env.example -- nx test api",