Diffs between GitHub #8
@ -1,9 +1,14 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
extends: [
|
extends: [
|
||||||
'@nextcloud',
|
'@nextcloud',
|
||||||
|
'@vue/eslint-config-typescript/recommended',
|
||||||
|
'plugin:prettier/recommended',
|
||||||
],
|
],
|
||||||
|
parser: 'vue-eslint-parser',
|
||||||
rules: {
|
rules: {
|
||||||
'jsdoc/require-jsdoc': 'off',
|
'jsdoc/require-jsdoc': 'off',
|
||||||
'vue/first-attribute-linebreak': 'off',
|
'vue/first-attribute-linebreak': 'off',
|
||||||
|
'sort-imports': 'error',
|
||||||
|
'vue/attributes-order': ['error', { alphabetical: true }],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -30,9 +30,15 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: skjnldsv/read-package-engines-version-actions@v3
|
||||||
|
id: versions
|
||||||
|
with:
|
||||||
|
fallbackNode: '^20'
|
||||||
|
fallbackNpm: '^10'
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "^20"
|
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
- run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
- run: npm run stylelint
|
- run: npm run stylelint
|
||||||
@ -48,9 +54,15 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: curl -sSLo /usr/local/bin/composer https://getcomposer.org/download/latest-stable/composer.phar
|
- run: curl -sSLo /usr/local/bin/composer https://getcomposer.org/download/latest-stable/composer.phar
|
||||||
- run: chmod +x /usr/local/bin/composer
|
- 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
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "^20"
|
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
- run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
|
||||||
- run: make dist
|
- run: make dist
|
||||||
- uses: akkuman/gitea-release-action@v1
|
- uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
|
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
FROM nextcloud:30
|
||||||
|
|
||||||
|
ARG APP_NAME=app_template
|
||||||
|
ENV NEXTCLOUD_UPDATE=1
|
||||||
|
ENV NEXTCLOUD_ADMIN_USER=$APP_NAME
|
||||||
|
ENV NEXTCLOUD_ADMIN_PASSWORD=$APP_NAME
|
||||||
|
ENV NEXTCLOUD_INIT_HTACCESS=1
|
||||||
|
ENV SQLITE_DATABASE=$APP_NAME
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y nodejs npm sqlite3 && \
|
||||||
|
rm -f /usr/local/etc/php/conf.d/opcache-recommended.ini && \
|
||||||
|
/entrypoint.sh true
|
||||||
|
|
||||||
|
USER www-data
|
||||||
|
|
||||||
|
COPY --chown=www-data:www-data . apps/$APP_NAME
|
||||||
|
RUN cd apps/$APP_NAME && make build && cd - && \
|
||||||
|
php occ app:enable $APP_NAME && \
|
||||||
|
php occ config:system:set debug --value=true
|
||||||
|
|
||||||
|
USER root
|
10
Makefile
10
Makefile
@ -124,11 +124,11 @@ appstore:
|
|||||||
# Start a nextcloud server on Docker to kickstart developement
|
# Start a nextcloud server on Docker to kickstart developement
|
||||||
.PHONY: dev
|
.PHONY: dev
|
||||||
dev: build
|
dev: build
|
||||||
docker stop $(app_template) || true
|
docker stop $(app_name) || true
|
||||||
docker rm $(app_template) || true
|
docker rm $(app_name) || true
|
||||||
docker build -t $(app_template) .
|
docker build -t $(app_name) .
|
||||||
docker run -itd --rm --name $(app_template) -v $(CURDIR):/var/www/html/apps/app_template -p 80:80 $(app_template)
|
docker run -itd --rm --name $(app_name) -v $(CURDIR):/var/www/html/apps/$(app_name) -p 80:80 $(app_name)
|
||||||
npm run watch
|
npm run watch || docker stop $(app_name)
|
||||||
|
|
||||||
# Generate translations
|
# Generate translations
|
||||||
.PHONY: l10n
|
.PHONY: l10n
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "app_template",
|
"name": "app_template",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
|
"engines": {
|
||||||
|
"node": "^20.0.0",
|
||||||
|
"npm": "^10.0.0"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"dev": "vite --mode development build",
|
"dev": "vite --mode development build",
|
||||||
|
Loading…
Reference in New Issue
Block a user