* Use bun in package.json * Update workflows * Update more workflows * Kick ci * Fix yaml * Fix type errors * Compat with snyk * Fix jest resolutions * Add another esm package * Fix aliases and next js missing deps * Update next js embed tests * Try fix embed test config * Fix * Fix requires in e2e support * Use bun not yarn in embed bin * Revert config changes * Use bun in more scripts and use prepare-release action * Replace more yarn usages * Remove overrides from bunfig move to package json * Revert e2e support changes * Add back comment * [ci skip] comment typo * Update bun lock * Update to reference bun * Update to reference bun * Update license disclaimer * Tidy tests * Update to use bun in workflows * Change aliases * Update codemirrort selector * Tidy license generation * Remove .only * Fix yarn references * Checkout .github for release scripts * Update lockfile * Re-add package * update release bunlock * fix checkout check --------- Co-authored-by: Ryan Laurie <iethree@gmail.com>
52 lines
1.2 KiB
JavaScript
52 lines
1.2 KiB
JavaScript
import { BACKEND_PORT } from "../../../constants/backend-port.js";
|
|
|
|
const BASE_ENV = {
|
|
WATCH: process.env.HOST_APP_ENVIRONMENT === "development" ? "true" : "false",
|
|
MB_PORT: BACKEND_PORT,
|
|
CLIENT_PORT: 4400,
|
|
};
|
|
|
|
const BASE_SETUP_CONFIG = {
|
|
"app-run-command": "bun start",
|
|
"app-down-command": `kill -9 $(lsof -ti:"${BASE_ENV.CLIENT_PORT}");`,
|
|
env: BASE_ENV,
|
|
cypressEnv: {
|
|
PORT: BASE_ENV.CLIENT_PORT,
|
|
},
|
|
};
|
|
|
|
export const HOST_APP_SETUP_CONFIGS = {
|
|
"vite-6-host-app-e2e": {
|
|
...BASE_SETUP_CONFIG,
|
|
appName: "vite-6-host-app",
|
|
env: {
|
|
...BASE_ENV,
|
|
VITE_MB_PORT: BASE_ENV.MB_PORT,
|
|
},
|
|
},
|
|
"next-15-app-router-host-app-e2e": {
|
|
...BASE_SETUP_CONFIG,
|
|
appName: "next-15-app-router-host-app",
|
|
env: {
|
|
...BASE_ENV,
|
|
NEXT_PUBLIC_MB_PORT: BASE_ENV.MB_PORT,
|
|
},
|
|
},
|
|
"next-15-pages-router-host-app-e2e": {
|
|
...BASE_SETUP_CONFIG,
|
|
appName: "next-15-pages-router-host-app",
|
|
env: {
|
|
...BASE_ENV,
|
|
NEXT_PUBLIC_MB_PORT: BASE_ENV.MB_PORT,
|
|
},
|
|
},
|
|
"angular-20-host-app-e2e": {
|
|
...BASE_SETUP_CONFIG,
|
|
appName: "angular-20-host-app",
|
|
env: {
|
|
...BASE_ENV,
|
|
NG_APP_MB_PORT: BASE_ENV.MB_PORT,
|
|
},
|
|
},
|
|
};
|