18 Commits

Author SHA1 Message Date
Erik Michelson 5b0f3a1c55 chore(format): migrate from prettier to oxfmt
oxfmt is a project from the OXC toolchain, similar to OXLint.
It is based on the Rust-built 'oxidation compiler' and has
increased performance compared to Prettier which is built
in plain JS.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-14 19:46:27 +01:00
Erik Michelson a880864b2c chore(lint): replace ESLint with OXLint for performance
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-01-14 19:46:27 +01:00
Erik Michelson 9b61174731 fix(docker): docker builds should build @hedgedoc/database as well
It's almost a wonder that everything worked previously, at least in
our already built dev environments. Fresh environments had no clue
that the database package needs to be build, because our turbo.json
had irritating (circular) dependencies on ^build, and the package.json
of the backend didn't even contain the database package as a dependency.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-11-20 15:44:30 +01:00
Erik Michelson 5ddebfe6cb misc(turbo): pass through node_env and debug variables
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-11-06 00:55:21 +01:00
Erik Michelson 58a4a01fac refactor(database): run knex migrations on startup
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-11-06 00:55:21 +01:00
Erik Michelson 15f6e12bee fix(ci): cache cypress binary correctly
It seems cypress installs its own binary under a different path than
the path where it later looks for it for running the tests. This
change adds proper versioned caching for the binary to avoid re-
downloads and configures the binary path accordingly.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-04-20 19:55:35 +02:00
Erik Michelson 420c711155 fix(turborepo): passthrough HD_* env vars by config option
REUSE Compliance Check / reuse (push) Has been cancelled
Docker / build-and-push (backend) (push) Has been cancelled
Docker / build-and-push (frontend) (push) Has been cancelled
E2E Tests / backend-sqlite (push) Has been cancelled
E2E Tests / backend-mariadb (push) Has been cancelled
E2E Tests / backend-postgres (push) Has been cancelled
E2E Tests / Build test build of frontend (push) Has been cancelled
Lint and check format / Lint files and check formatting (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Static Analysis / Njsscan code scanning (push) Has been cancelled
Static Analysis / CodeQL analysis (javascript) (push) Has been cancelled
Run tests & build / Test and build with NodeJS 20 (push) Has been cancelled
E2E Tests / frontend-cypress (1) (push) Has been cancelled
E2E Tests / frontend-cypress (2) (push) Has been cancelled
E2E Tests / frontend-cypress (3) (push) Has been cancelled
It seems there's a bug in turborepo which results in turbo
not passing through arbitrary environment variables despite
--env-mode=loose being set. This config option resolves the
problem by passing through all HedgeDoc environment
variables prefixed by `HD_`. This somewhat also enhances
stability and reproducability of builds since other env
vars wouldn't interfere anymore.
The additional variable CADDY_HOST is required to make
overriding the listening port in our Caddyfile work.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-02-14 20:59:05 +01:00
Philip Molares 09641c14f6 fix: migrate turbo.json
turbo v2 changed the turbo.json file somewhat. This PR address this.
See: https://turbo.build/repo/docs/crafting-your-repository/upgrading

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2024-08-31 12:53:53 +02:00
Tilman Vatteroth 9bef045e12 fix(turbo): deduplicate test task config and add coverage directory
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-09-09 09:40:06 +02:00
Tilman Vatteroth 4cb332622a feat(frontend): add build script
The build script prepares the package for a production build, builds the app, places every all needed files in a dist directory and cleans it.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-27 12:42:40 +02:00
Tilman Vatteroth ffe48f2fd2 fix(markdown-it-plugins): migrate imported files
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-26 15:30:30 +02:00
Tilman Vatteroth 1d90013344 fix(html-to-react): migrate imported files
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-08-26 15:07:49 +02:00
Philip Molares 366515e760 ci: add workflow to lint documentation
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2023-07-09 20:07:07 +02:00
Tilman Vatteroth 14f291f780 chore(turbo): add dependency tasks test
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-07-08 13:13:55 +02:00
Tilman Vatteroth 4e497089f2 feat: add turbo task for "start"
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-07-06 10:44:48 +02:00
Tilman Vatteroth 5443510a79 feat: add turbo task for test without coverage
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-20 11:44:38 +02:00
Tilman Vatteroth 6f81c5efff fix(turbo): ignore webpack cache
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-03-31 12:38:47 +02:00
Erik Michelson 305b6f5910 misc: add turbo monorepo util
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Co-authored-by: David Mehren <git@herrmehren.de>
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: David Mehren <git@herrmehren.de>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-02-07 21:38:40 +01:00