Feat/bundle js (#6511)

* Added minify

* Added POC for browser

* Moved first js files to ts

* Fixed caret positioning

* Added support for plugins

* Fixed get undefined.

* Removed require of socketio, l10n, html10n and error reporter

* Added minify

* Added POC for browser

* Moved first js files to ts

* Fixed caret positioning

* Added support for plugins

* Fixed get undefined.

* Removed require of socketio, l10n, html10n and error reporter

* Fixed popup not showing

* Fixed timeslider

* Reworked paths

* Fixed loading

* Don't generate sources map in production mode

* Non working hmr

* Added live reloading.

* Fixed timeslider when hot reloading

* Removed eval

* Fixed.

* Fixed env

* Fixed frontend tests.

* Added minifying via lightningcss

* Added minify via esbuild

* Fixed diagnostic url

* Removed lightningcss

* Fixed types

* Fixed alias

* Fixed loadtest

* Fixed

* Fixed loading ep_font_color3

* Restructure windows build

* Fixed windows build

* Fixed pnpm lock

---------

Co-authored-by: SamTv12345 <samtv12345@samtv12345.com>
This commit is contained in:
SamTV12345 2024-07-18 08:51:30 +02:00 committed by GitHub
parent 33b388b14c
commit d6d636955c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
53 changed files with 2764 additions and 1763 deletions

View file

@ -68,7 +68,7 @@ jobs:
# rules.
-
name: Install all dependencies and symlink for ep_etherpad-lite
run: bin/installDeps.sh
run: pnpm i
#-
# name: Install etherpad plugins
# run: rm -Rf node_modules/ep_align/static/tests/*
@ -92,7 +92,6 @@ jobs:
- name: Build admin frontend
working-directory: admin
run: |
pnpm install
pnpm run build
# name: Run the frontend admin tests
# shell: bash
@ -124,7 +123,7 @@ jobs:
- name: Run the frontend admin tests
shell: bash
run: |
pnpm run dev &
pnpm run prod &
connected=false
can_connect() {
curl -sSfo /dev/null http://localhost:9001/ || return 1

View file

@ -59,7 +59,7 @@ jobs:
- name: Run the frontend tests
shell: bash
run: |
pnpm run dev &
pnpm run prod &
connected=false
can_connect() {
curl -sSfo /dev/null http://localhost:9001/ || return 1
@ -122,7 +122,7 @@ jobs:
- name: Run the frontend tests
shell: bash
run: |
pnpm run dev &
pnpm run prod &
connected=false
can_connect() {
curl -sSfo /dev/null http://localhost:9001/ || return 1
@ -192,7 +192,7 @@ jobs:
- name: Run the frontend tests
shell: bash
run: |
pnpm run dev &
pnpm run prod &
connected=false
can_connect() {
curl -sSfo /dev/null http://localhost:9001/ || return 1

View file

@ -154,11 +154,12 @@ jobs:
name: Run Etherpad
working-directory: etherpad/src
run: |
pnpm install cypress
.\node_modules\.bin\cypress.cmd install --force
pnpm i
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