From d2a300fa4e4132e38d2e7b78775569d9eb193cbd Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Thu, 8 Feb 2024 10:16:08 +0100 Subject: [PATCH] fix: update docs --- .github/CONTRIBUTING.md | 15 ++++++++++++++- package.json | 4 ++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index a24e3e9..82a3fb4 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -2,12 +2,25 @@ 1. clone repository 2. Run `npm install` -3. Run `npm run build` (this is required for a fresh start) +3. Run `npm run build` (this is required for a fresh start) We need frontend and backend server to be started for this application. Frontend server compiles assets, while backend server communicates with CodeceptJS and processes HTTP and WebSocket requests. HTTP is used to send commands from client to CodeceptJS, and websockets are used to send notifications from CodeceptJS to application. +Note: if you error when building the app, just set this `NODE_OPTIONS=--openssl-legacy-provider` in your terminal + +``` +> @codeceptjs/ui@0.7.3 build +> vue-cli-service build + + +⠹ Building for production...Error: error:0308010C:digital envelope routines::unsupported + at new Hash (node:internal/crypto/hash:69:19) + at Object.createHash (node:crypto:133:10) +``` + + Both servers must be executed for development: ### Launch application in Electron mode: diff --git a/package.json b/package.json index 2bf07cb..4e873f2 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "version": "0.7.3", "license": "MIT", "scripts": { - "serve": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve", - "build": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build", + "serve": "vue-cli-service serve", + "build": "vue-cli-service build", "lint": "vue-cli-service lint --fix && vue-cli-service lint lib/** --fix", "app": "node bin/codecept-ui.js --app -c node_modules/@codeceptjs/examples", "backend": "node bin/codecept-ui.js -c node_modules/@codeceptjs/examples/codecept.conf.js",