diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..ceda91fd6 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,29 @@ +{ + "image": "ghcr.io/juliusknorr/nextcloud-dev-php82:latest", + "forwardPorts": [80], + "containerEnv": { + "NEXTCLOUD_AUTOINSTALL_APPS": "forms", + "XDEBUG_MODE": "debug" + }, + "customizations": { + "vscode": { + "extensions": [ + "felixfbecker.php-intellisense", + "octref.vetur" + ], + "settings": { + "php.suggest.basic": false, + "git.alwaysSignOff": true + } + } + }, + "workspaceMount": "source=${localWorkspaceFolder},target=/var/www/html/apps-extra/forms,type=bind", + "workspaceFolder": "/var/www/html/apps-extra/forms", + "overrideCommand": true, + "postAttachCommand": "bash ./.devcontainer/setup.sh", + "portsAttributes": { + "80": { + "label": "Webserver" + } + } +} diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh new file mode 100644 index 000000000..1ee1584f7 --- /dev/null +++ b/.devcontainer/setup.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# +# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors +# SPDX-License-Identifier: AGPL-3.0-or-later +( + cd /tmp && /usr/local/bin/bootstrap.sh apache2ctl start +) + +composer install --no-dev +npm ci +npm run dev diff --git a/REUSE.toml b/REUSE.toml index c3b20471a..249413bd9 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -18,7 +18,7 @@ SPDX-FileCopyrightText = "2019-2026 Nextcloud GmbH and Nextcloud contributors" SPDX-License-Identifier = "AGPL-3.0-or-later" [[annotations]] -path = ["composer.json", "composer.lock", "vendor-bin/*/composer.json", "vendor-bin/*/composer.lock", "package-lock.json", "package.json"] +path = [".devcontainer/devcontainer.json", "composer.json", "composer.lock", "vendor-bin/*/composer.json", "vendor-bin/*/composer.lock", "package-lock.json", "package.json"] precedence = "aggregate" SPDX-FileCopyrightText = "2019-2026 Nextcloud GmbH and Nextcloud contributors" SPDX-License-Identifier = "AGPL-3.0-or-later"