Registers @nx/vitest's inference plugin so every package with a
vitest.config.ts gets a real, cached "test" target read directly from
its own config - not just the 15/24 packages that happened to already
declare a "test:unit" npm script (Phase 0's target).
- @nx/vite was the wrong package for this (it only infers
build/serve/preview/typecheck targets, never test) - replaced with
@nx/vitest.
- The plugin's default file glob (**/{vite,vitest}.config.*) also
matches vite.config.common.ts (a plain compiler-options module, not
a Vite config) and the root vite.config.ts (the app bundler, not a
test config); loading either as a test config throws and aborts the
whole project graph. Excluded both, plus vite.cern.config.ts for the
same reason.
- defaultBase: "master" - bare `nx affected` defaults to comparing
against a branch named "main"; ocis's default branch is "master",
so without this every affected/dry-run invocation errored with
"ambiguous argument 'main': unknown revision".
- analytics: false - written by the nx CLI itself the first time it
ran interactively; disabling Nx's own usage telemetry, no Nx Cloud
token/URL configured anywhere (matches Phase 0's "local cache only"
decision).
Deliberately NOT changed: the root "test:unit" script. `nx run-many -t
test` runs each project as its own vitest process, writing coverage to
{workspaceRoot}/coverage/{projectRoot} per project - not the single
aggregated lcov report `pnpm test:unit --coverage` produces today.
Nothing currently consumes that aggregate (no codecov config, no
upload step in web-tests.yml), but flipping the script would still be
a real behavior change with no aggregation story yet, so left it
alone. `nx affected -t test` / `nx run-many -t test` are additional
commands, not a replacement, until that's worth solving.
Verified: nx run-many -t test succeeds for all 16 vitest projects
(matches individual project counts from earlier verification exactly);
nx run <project>:test caches correctly (1/1 hit on rerun); nx show
projects --affected --files=... still resolves to the exact same 2
projects as before (web-app-search, web-app-files) - the new plugin
doesn't change affected-detection accuracy; nx affected -t test
--uncommitted correctly scopes to just the 2 dependent projects on an
isolated single-file edit once defaultBase is set.
Also set testMode: "run" on the plugin. Without it, `nx run
<project>:test` uses vitest's default watch mode locally (only
auto-switches to run-once in CI), leaving the terminal waiting for
input (press q to exit) - not what you want from a one-shot command.
ownCloud Web
ownCloud Web is the next-generation frontend for ownCloud Infinite Scale, built as a single-page application with Vue.js and TypeScript. It provides a modern, accessible and themeable user interface for managing files, sharing, real-time collaboration and administration -- designed to be extensible through a plugin-based architecture that allows third-party developers to build custom apps and extensions.
Getting Started
Set up a local development environment for ownCloud Web:
Prerequisites
- Node.js (LTS recommended)
- pnpm
- Docker Compose (for backend)
For the complete development setup, see the setup guide.
Structure
The web/packages directory contains the core modules:
- client -- Generated TypeScript client for the oCIS Graph API
- container -- Static assets and base files
- extension-sdk -- Utilities for developing custom extensions
- pkg -- Shared logic used across the codebase
- runtime -- Authentication, routing, theming and application handling
Built-in apps (also in web/packages):
- files -- Core file sync-and-share functionality
- admin-settings -- User, group and space administration
- activities -- Activity stream
- app-store -- Browse and install extensions
- epub-reader -- Ebook file viewer
- external -- WOPI-based document editing (Collabora, ONLYOFFICE)
- pdf-viewer -- PDF file viewer
- preview -- Audio, video and image previewer
- text-editor -- Plain text editor