mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-04 14:19:13 -04:00
Restructure windows build
This commit is contained in:
parent
b0a93ccddb
commit
b6c261e88b
4 changed files with 11 additions and 16 deletions
7
.github/workflows/windows.yml
vendored
7
.github/workflows/windows.yml
vendored
|
@ -154,11 +154,12 @@ jobs:
|
|||
name: Run Etherpad
|
||||
working-directory: etherpad/src
|
||||
run: |
|
||||
pnpm install cypress
|
||||
.\node_modules\.bin\cypress.cmd install --force
|
||||
pnpm install playwright
|
||||
pnpm exec playwright install --with-deps
|
||||
pnpm run prod &
|
||||
curl --connect-timeout 10 --max-time 20 --retry 5 --retry-delay 10 --retry-max-time 60 --retry-connrefused http://127.0.0.1:9001/p/test
|
||||
pnpm exec cypress run --config-file ./tests/frontend/cypress/cypress.config.js
|
||||
pnpm exec playwright install chromium --with-deps
|
||||
pnpm run test-ui --project=chromium
|
||||
# On release, upload windows zip to GitHub release tab
|
||||
-
|
||||
name: Rename to etherpad-lite-win.zip
|
||||
|
|
|
@ -50,21 +50,13 @@ rm -rf src/node_modules || true
|
|||
#$(try cd ./bin/installDeps.sh)
|
||||
|
||||
# Install admin frontend
|
||||
cd admin
|
||||
try pnpm install
|
||||
try pnpm run build
|
||||
cd ..
|
||||
|
||||
|
||||
|
||||
try pnpm run build:etherpad
|
||||
|
||||
# Nuke the admin folder as it is not needed anymore :D
|
||||
rm -rf admin
|
||||
|
||||
export NODE_ENV=production
|
||||
try pnpm install --production
|
||||
|
||||
|
||||
rm -rf oidc
|
||||
rm -rf src/node_modules
|
||||
|
||||
log "copy the windows settings template..."
|
||||
try cp settings.json.template settings.json
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
"plugins": "pnpm --filter bin run plugins",
|
||||
"install-plugins": "pnpm --filter bin run plugins i",
|
||||
"remove-plugins": "pnpm --filter bin run remove-plugins",
|
||||
"list-plugins": "pnpm --filter bin run list-plugins"
|
||||
"list-plugins": "pnpm --filter bin run list-plugins",
|
||||
"build:etherpad": "pnpm --filter admin run build-copy && pnpm --filter ui run build-copy"
|
||||
},
|
||||
"dependencies": {
|
||||
"ep_etherpad-lite": "workspace:./src"
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc && vite build",
|
||||
"preview": "vite preview"
|
||||
"preview": "vite preview",
|
||||
"build-copy": "tsc && vite build --outDir ../src/static/oidc --emptyOutDir"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ep_etherpad-lite": "workspace:../src",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue