Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@ This is a Nextcloud app called `cad_viewer` that integrates the `@mlightcad/cad-
### Dependencies
- **Backend:** Use Composer. When updating dependencies, ensure compatibility with PHP 8.2 unless specifically instructed to upgrade.
- If you need to update `composer.lock` but your local environment has a different PHP version, use `--ignore-platform-reqs`.
- **Frontend:** Use NPM. Always use the `--legacy-peer-deps` flag when installing dependencies due to peer dependency conflicts in `@mlightcad` packages:
```bash
npm install --legacy-peer-deps
```
- **Frontend:** Use pnpm (version >= 10) or npm.
- When using **npm**, always use the `--legacy-peer-deps` flag due to peer dependency conflicts in `@mlightcad` packages:
```bash
npm install --legacy-peer-deps
```
- When using **pnpm**, use the standard install command:
```bash
pnpm install
```

### Testing
- **Backend Tests:** Run PHPUnit tests using:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ A native Nextcloud app providing DWG and DXF file viewing capabilities based on
| Nextcloud | 33 |
| PHP | 8.2+ |
| Node.js | 24+ (development only) |
| pnpm | 10+ (development only) |

## 📦 Installation

Expand Down Expand Up @@ -90,7 +91,7 @@ Once installed, the CAD Viewer integrates seamlessly with Nextcloud:
### Prerequisites

- Node.js 24+
- npm or yarn
- pnpm 10+
- Nextcloud 33 development environment
- PHP 8.2+

Expand Down
4 changes: 2 additions & 2 deletions docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Prerequisites
- Node.js 24+
- npm or yarn
- pnpm 10+
- Nextcloud 33 installation
- PHP 8.5

Expand Down Expand Up @@ -137,4 +137,4 @@ npm run dev -- --stats
## Resources
- [Nextcloud Development Guide](https://docs.nextcloud.com/server/latest/developer_manual/)
- [Vue 3 Documentation](https://vuejs.org/)
- [MLightCAD CAD Viewer](https://github.com/mlightcad/cad-viewer)
- [MLightCAD CAD Viewer](https://github.com/mlightcad/cad-viewer)
21 changes: 11 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"author": "CAD Viewer Contributors",
"repository": "https://github.com/ashcoft/nextcloud-cad-viewer",
"engines": {
"node": "^20 || ^22",
"npm": "^10 || ^11"
"node": ">=24",
"npm": "^10 || ^11",
"pnpm": ">=10"
},
"scripts": {
"build": "webpack --mode production",
Expand Down Expand Up @@ -39,7 +40,7 @@
"@babel/preset-typescript": "^7.23.0",
"@eslint/js": "^10.0.1",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.0.0",
"@types/node": "^24.12.4",
"@vue/compiler-sfc": "^3.5.0",
"@vue/test-utils": "^2.4.0",
"@vue/vue3-jest": "^29.2.0",
Expand Down
Loading