mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-14 10:34:06 +02:00
## Move editor under `frontend/editor/`
Pure restructure: `frontend/` becomes the workspace, `frontend/editor/`
holds
the PDF editor. 1775 file renames + 40 wiring edits. No logic changes.
### Why
`frontend/` is currently the editor — its `src/`, `public/`,
`src-tauri/`,
config files all sit at the root. Promoting `frontend/` to a
workspace and putting the editor in a sibling folder leaves room for
future
apps to drop in alongside it, sharing one `package.json` /
`node_modules` /
lint config / Storybook.
### What moves
frontend/
├── editor/ ← NEW: everything editor-specific
│ ├── src/ ← was frontend/src/
│ ├── public/ ← was frontend/public/
│ ├── src-tauri/ ← was frontend/src-tauri/
│ ├── index.html, vite.config.ts, vitest.config.ts, playwright.config.ts
│ ├── tsconfig*.json, tailwind.config.js, postcss.config.js
│ ├── scripts/
│ ├── .env, .env.desktop, .env.saas
│ └── DeveloperGuide.md
├── package.json, package-lock.json, node_modules/ ← workspace install
├── eslint.config.mjs, .prettierrc, .prettierignore ← shared tooling
├── .gitignore
└── README.md
### Wiring edits (40 files)
- `.taskfiles/frontend.yml`, `desktop.yml`, `e2e.yml`
- `build.gradle`, `app/core/build.gradle`
- `eslint.config.mjs`, `frontend/package.json`, `.gitignore`,
`.prettierignore`
- `docker/frontend/Dockerfile`
- 8 `.github/workflows/*.yml`, plus `.github/dependabot.yml`,
`.github/config/.files.yaml`, `.github/labeler-config-srvaroa.yml`
- `scripts/translations/**`
- Docs: `AGENTS.md`, `CLAUDE.md`, `ADDING_TOOLS.md`,
`DeveloperGuide.md`,
`WINDOWS_SIGNING.md`, `devGuide/HowToAddNewLanguage.md`,
`frontend/README.md`,
`frontend/editor/DeveloperGuide.md`
Plus 3 renamed + edited: `editor/vite.config.ts` (env path +
node_modules
walk-up), `editor/scripts/setup-env.mts` (renamed from `.ts` for
`import.meta.url`), `editor/scripts/build-provisioner.mjs` (resolve
src-tauri
relative to script).
### Verification
| Check | Result |
|---|---|
| `task frontend:typecheck:all` (6 variants) | exit 0 |
| `task frontend:lint` (eslint + dpdm) | exit 0 |
| `task frontend:format:check` | exit 0 |
| `task frontend:test` | 657 tests pass, 50 files |
| `task frontend:build:{core,proprietary,saas,desktop,prototypes}` | all
green |
| `task desktop:build` | full Tauri pipeline →
`Stirling-PDF_2.11.0_x64_en-US.msi` |
| `playwright test --list --project=stubbed` | 172 tests discovered |
`task desktop:build` exercises the heaviest path — Rust + WiX + MSI
bundle
against the moved `editor/src-tauri/`. If anything in the restructure
was
wrong it wouldn't have built.
### Test plan
- [ ] `frontend-validation.yml` green
- [ ] `e2e-stubbed.yml` green
- [ ] `tauri-build.yml` green on at least one platform
- [ ] `check_toml.yml` runs on a translation-touching PR
---------
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
103 lines
3.1 KiB
YAML
103 lines
3.1 KiB
YAML
build: &build
|
|
- build.gradle
|
|
- app/(common|core|proprietary)/build.gradle
|
|
|
|
openapi: &openapi
|
|
- *build
|
|
- app/(common|core|proprietary)/src/main/java/**
|
|
|
|
docker-base: &docker-base
|
|
- docker/base/Dockerfile
|
|
|
|
docker: &docker
|
|
- docker/embedded/Dockerfile
|
|
- docker/embedded/Dockerfile.fat
|
|
- docker/embedded/Dockerfile.ultra-lite
|
|
- ".github/workflows/build.yml"
|
|
- ".github/workflows/push-docker.yml"
|
|
- scripts/init.sh
|
|
- scripts/init-without-ocr.sh
|
|
- exampleYmlFiles/**
|
|
- *docker-base
|
|
|
|
project: &project
|
|
- app/(common|core|proprietary)/src/(main|test)/java/**
|
|
- *build
|
|
- "app/(common|core|proprietary)/src/(main|test)/resources/**/!(messages_*.properties|*.md)*"
|
|
- exampleYmlFiles/**
|
|
- gradle/**
|
|
- libs/**
|
|
- "testing/**/!(requirements*.txt|requirements*.in)*"
|
|
- *docker
|
|
- *docker-base
|
|
- gradle.properties
|
|
- gradlew
|
|
- gradlew.bat
|
|
- launch4jConfig.xml
|
|
- settings.gradle
|
|
- frontend/**
|
|
- docker/**
|
|
- scripts/RestartHelper.java
|
|
|
|
frontend: &frontend
|
|
- frontend/**
|
|
- .github/workflows/testdriver.yml
|
|
- testing/**
|
|
- docker/**
|
|
- scripts/translations/*.py
|
|
- .taskfiles/desktop.yml
|
|
- scripts/convert_cff_to_ttf.py
|
|
- scripts/harvest_type3_fonts.py
|
|
- scripts/ignore_translation.toml
|
|
- scripts/index_type3_catalogue.py
|
|
- scripts/summarize_type3_signatures.py
|
|
- scripts/type3_to_cff.py
|
|
- scripts/update_type3_library.py
|
|
|
|
# Files that affect the Tauri desktop bundle. Gate the multi-OS Tauri build
|
|
# job on changes to any of these.
|
|
tauri: &tauri
|
|
- frontend/editor/src-tauri/**
|
|
- frontend/editor/src/desktop/**
|
|
- frontend/editor/tsconfig.desktop.vite.json
|
|
- frontend/package.json
|
|
- frontend/package-lock.json
|
|
- frontend/editor/vite.config.ts
|
|
- .github/workflows/tauri-build.yml
|
|
|
|
# Files that affect the AI engine (Python tool models, fixers, tests). Gate
|
|
# the engine validation job on changes to engine sources or to the Java
|
|
# tool surfaces it generates models from.
|
|
engine: &engine
|
|
- engine/**
|
|
- app/(common|core|proprietary)/src/main/java/**
|
|
- .github/workflows/ai-engine.yml
|
|
|
|
licenses-frontend: &licenses-frontend
|
|
- ".github/workflows/frontend-backend-licenses-update.yml"
|
|
- "frontend/package.json"
|
|
- "frontend/package-lock.json"
|
|
- "frontend/editor/scripts/generate-licenses.js"
|
|
|
|
licenses-backend: &licenses-backend
|
|
- ".github/workflows/frontend-backend-licenses-update.yml"
|
|
- *build
|
|
|
|
# Files that can affect premium / enterprise behaviour. Gate the enterprise
|
|
# Playwright job on changes to any of these on PRs.
|
|
proprietary: &proprietary
|
|
- app/proprietary/**
|
|
- frontend/editor/src/proprietary/**
|
|
- frontend/editor/src/core/tests/enterprise/**
|
|
- testing/compose/docker-compose-keycloak-oauth.yml
|
|
- testing/compose/docker-compose-keycloak-saml.yml
|
|
- testing/compose/keycloak-realm-oauth.json
|
|
- testing/compose/keycloak-realm-saml.json
|
|
- testing/compose/start-oauth-test.sh
|
|
- testing/compose/start-saml-test.sh
|
|
- testing/compose/validate-oauth-test.sh
|
|
- testing/compose/validate-saml-test.sh
|
|
- configs/settings.yml.template
|
|
- build.gradle
|
|
- app/proprietary/build.gradle
|
|
- .github/workflows/build-enterprise.yml |