diff --git a/.gitea/workflows/app_template.yml b/.gitea/workflows/app_template.yml index eaf9a41..515569d 100644 --- a/.gitea/workflows/app_template.yml +++ b/.gitea/workflows/app_template.yml @@ -26,24 +26,6 @@ jobs: - run: composer run cs:check - run: composer run phpstan - nodejs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: skjnldsv/read-package-engines-version-actions@v3 - id: versions - with: - fallbackNode: '^20' - fallbackNpm: '^10' - - uses: actions/setup-node@v4 - with: - node-version: ${{ steps.versions.outputs.nodeVersion }} - - run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}' - - run: npm ci - - run: npm run lint - - run: npm run stylelint - - run: npm run build - release: if: gitea.ref_type == 'tag' runs-on: ubuntu-latest @@ -54,15 +36,6 @@ jobs: - uses: actions/checkout@v4 - run: curl -sSLo /usr/local/bin/composer https://getcomposer.org/download/latest-stable/composer.phar - run: chmod +x /usr/local/bin/composer - - uses: skjnldsv/read-package-engines-version-actions@v3 - id: versions - with: - fallbackNode: '^20' - fallbackNpm: '^10' - - uses: actions/setup-node@v4 - with: - node-version: ${{ steps.versions.outputs.nodeVersion }} - - run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}' - run: make dist - uses: akkuman/gitea-release-action@v1 with: diff --git a/Dockerfile b/Dockerfile index 7c90e49..61b1cac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ ENV NEXTCLOUD_INIT_HTACCESS=1 ENV SQLITE_DATABASE=$APP_NAME RUN apt-get update && \ - apt-get install -y nodejs npm sqlite3 && \ + apt-get install -y sqlite3 && \ rm -f /usr/local/etc/php/conf.d/opcache-recommended.ini && \ /entrypoint.sh true diff --git a/Makefile b/Makefile index 6972d9f..1303d6e 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,6 @@ appstore: $(app_name)/appinfo \ $(app_name)/img \ $(app_name)/lib \ - $(app_name)/templates \ $(app_name)/vendor \ $(app_name)/CHANGELOG.md @@ -84,18 +83,3 @@ dev: build docker rm $(app_name) || true docker build -t $(app_name) . docker run -itd --rm --name $(app_name) -v $(CURDIR):/var/www/html/apps/$(app_name) -p 80:80 $(app_name) - npm run watch || docker stop $(app_name) - -# Generate translations -.PHONY: l10n -l10n: - docker run --rm \ - -v $(CURDIR):/app \ - --entrypoint php \ - nextcloudci/translations \ - /translationtool.phar create-pot-files - docker run --rm \ - -v $(CURDIR):/app \ - --entrypoint php \ - nextcloudci/translations \ - /translationtool.phar convert-po-files diff --git a/templates/index.php b/templates/index.php deleted file mode 100644 index b46ca04..0000000 --- a/templates/index.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php - -declare(strict_types=1); - -use OCA\OpdsCatalog\AppInfo\Application; -use OCP\Util; - -Util::addScript(Application::APP_ID, Application::APP_ID.'-main'); -Util::addStyle(Application::APP_ID, Application::APP_ID.'-main'); - -?> - -<div id="app_template"></div>