Compare commits

..

3 Commits

Author SHA1 Message Date
30fe289199 index 2022-06-22 16:02:46 +02:00
a35e2ab9f1 simple remark plugin 2022-06-20 20:00:11 +02:00
d5257fa606 yarn cache 2022-06-20 10:53:32 +02:00
1939 changed files with 9051 additions and 6954 deletions

View File

@ -1 +0,0 @@
code:$apr1$AeePIAei$E9E6E6jtFFtwmtGhIEG.Y/

View File

@ -1,2 +0,0 @@
code:$apr1$AeePIAei$E9E6E6jtFFtwmtGhIEG.Y/
web:$apr1$/zc/TBtD$ZGr3RqPiULYMD0kJUup5E0

View File

@ -7,112 +7,185 @@ workspace:
steps:
- name: load dependencies
image: node:18
image: node
pull: if-not-exists
environment:
FORCE_COLOR: "true"
volumes:
- name: cache
path: /cache
commands:
- yarn install
- mkdir -p /cache/node_modules
- mkdir -p /cache/user-cache
- ln -s /cache/node_modules ./node_modules
- ln -s /cache/user-cache ~/.cache
- echo cache=/cache/npm-cache >> .npmrc
- "echo 'enableGlobalCache: false' >> .yarnrc"
- 'echo ''cacheFolder: "/cache/yarn-cache"'' >> .yarnrc'
- 'echo ''yarn-offline-mirror "/cache/npm-packages-offline-cache"'' >> .yarnrc'
- "echo 'yarn-offline-mirror-pruning: true' >> .yarnrc"
- cat .yarnrc
- yarn install --verbose --frozen-lockfile
- name: mongo
image: mongo
pull: if-not-exists
detach: true
- name: maildev
image: node
pull: if-not-exists
volumes:
- name: cache
path: /cache
commands:
- yarn run maildev --web 80 --smtp 25 -v --hide-extensions=STARTTLS
detach: true
- name: liveserver
image: node
pull: if-not-exists
volumes:
- name: cache
path: /cache
commands:
- yarn run -- live-server --no-browser --port=80 --ignore='*' --entry-file=spa.html --no-css-inject --proxy=/api:http://tibi-server:8080/api/v1/_/__NAMESPACE__ dist
detach: true
- name: tibi-server
image: registry.webmakers.de/tibi/tibi-server
pull: never
environment:
DB_DIAL: mongodb://mongo
API_PORT: 8080
MAIL_HOST: maildev:25
detach: true
- name: cypress run
image: cypress/base
pull: if-not-exists
volumes:
- name: cache
path: /cache
environment:
FORCE_COLOR: "true"
CYPRESS_BASE_URL: http://liveserver
CYPRESS_CI: "true"
CYPRESS_mongodbUri: mongodb://mongo
CYPRESS_tibiApiUrl: http://tibi-server:8080/api/v1
CYPRESS_projectApiConfig: /drone/workdir/api/config.yml
commands:
- ln -s /cache/user-cache ~/.cache
- yarn build:instanbul
- yarn cy:run
- yarn run nyc report --exclude-after-remap false
- name: modify master config
image: bash
pull: if-not-exists
commands:
- bash scripts/modify-config.sh master https://tibi-svelte-starter.code.testversion.online/
- bash scripts/modify-config.sh master __MASTER_URL__
when:
branch: [master]
# - name: modify dev config
# image: bash
# commands:
# - bash scripts/modify-config.sh dev http://tibi-svelte-starter.code.testversion.online/
# when:
# branch: [dev]
- name: modify dev config
image: bash
pull: if-not-exists
commands:
- bash scripts/modify-config.sh dev __DEV_URL__
when:
branch: [dev]
- name: build
image: node:18
image: node
pull: if-not-exists
volumes:
- name: cache
path: /cache
commands:
- yarn build
# - name: build admin
# image: node:18
# commands:
# - yarn build:admin
- name: build ssr
image: node
pull: if-not-exists
volumes:
- name: cache
path: /cache
commands:
- yarn build:server
# - name: build ssr
# image: node:18
# commands:
# - yarn build:server
# - name: build legacy
# image: node:18
# commands:
# - yarn build:legacy
- name: build legacy
image: node
pull: if-not-exists
volumes:
- name: cache
path: /cache
commands:
- yarn build:legacy
- name: modify html
image: bash
pull: if-not-exists
commands:
- bash scripts/preload-meta.sh public/spa.html
- bash scripts/preload-meta.sh public/spa.html > frontend/spa.html
- bash scripts/preload-meta.sh public/spa.html > dist/spa.html
- export stamp=`date +%s`
- echo $$stamp
- sed -i s/__TIMESTAMP__/$$stamp/g frontend/spa.html
- sed -i s/__TIMESTAMP__/$$stamp/g frontend/serviceworker.js
- cat frontend/serviceworker.js
- cp frontend/spa.html api/templates/spa.html
- cat frontend/spa.html
- cat api/templates/spa.html
# - name: deploy dev
# image: instrumentisto/rsync-ssh
# environment:
# RSYNC_USER: rkarchitekten_rsync_dev
# RSYNC_PASS:
# from_secret: rsync_dev
# commands:
# - apk add --no-cache sshpass
# - scripts/deploy.sh ftp1.webmakers.de $${RSYNC_USER} $${RSYNC_PASS}
# when:
# branch: [dev]
# event: [push]
- name: copy api config to staging
image: instrumentisto/rsync-ssh
volumes:
- name: data
path: /data
commands:
- rsync -av api /data/
when:
branch: [dev]
event: [push]
- name: review in staging
image: docker/compose:1.22.0
commands:
- docker-compose -p ${DRONE_BRANCH}-${DRONE_REPO_NAME}-${DRONE_REPO_OWNER} up -d --build --remove-orphans
volumes:
- name: docker
path: /var/run/docker.sock
when:
branch: [dev]
event: [push]
- sed -i s/__TIMESTAMP__/$$stamp/g dist/spa.html
- sed -i s/__TIMESTAMP__/$$stamp/g dist/serviceworker.js
- cat dist/serviceworker.js
- cp dist/spa.html api/templates/spa.html
- cat dist/spa.html
- name: deploy master
image: instrumentisto/rsync-ssh
pull: if-not-exists
environment:
RSYNC_USER: rkarchitekten_rsync_master
RSYNC_USER: USER_PROJECT_master
RSYNC_PASS:
from_secret: rsync_master
commands:
- apk add --no-cache sshpass curl
- apk add --no-cache sshpass
- scripts/deploy.sh ftp1.webmakers.de $${RSYNC_USER} $${RSYNC_PASS}
- curl -X POST "https://tibi-svelte-starter.code.testversion.online//api/ssr?token=__SSR_TOKEN__&clear=1"
when:
branch: [master]
event: [push]
########
- name: deploy dev
image: instrumentisto/rsync-ssh
pull: if-not-exists
environment:
RSYNC_USER: USER_PROJECT_dev
RSYNC_PASS:
from_secret: rsync_dev
commands:
- apk add --no-cache sshpass
- scripts/deploy.sh ftp1.webmakers.de $${RSYNC_USER} $${RSYNC_PASS}
when:
branch: [dev]
event: [push]
- name: prepare notify
image: cypress/base
pull: if-not-exists
commands:
- find cypress -type f -wholename "cypress/videos/*" -or -wholename "cypress/screenshots/*" | tar -cvf cypress-media.tar -T -
when:
status:
- failure
- name: notify
image: drillster/drone-email
pull: if-not-exists
settings:
from: noreply@ci.gitbase.de
host: smtp.basehosts.de
attachment: cypress-media.tar
when:
status:
- failure
volumes:
- name: data
- name: cache
host:
path: /data/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_BRANCH}
- name: docker
host:
path: /var/run/docker.sock
path: /tmp/cache/drone/${DRONE_REPO}

6
.env
View File

@ -1,6 +0,0 @@
PROJECT_NAME=tibi-svelte-starter
TIBI_PREFIX=tibi
TIBI_NAMESPACE=__NAMESPACE__
# code-server user
UID=100
GID=101

3
.gitignore vendored
View File

@ -1,6 +1,6 @@
_temp/
node_modules/
frontend/
dist/
build/
build_ssr/
stat/
@ -15,4 +15,3 @@ cypress/screenshots
.~lock.*
coverage/
.nyc_output/
/tmp/

15
.vscode/launch.json vendored
View File

@ -1,15 +0,0 @@
{
// Verwendet IntelliSense zum Ermitteln möglicher Attribute.
// Zeigen Sie auf vorhandene Attribute, um die zugehörigen Beschreibungen anzuzeigen.
// Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-msedge",
"request": "launch",
"name": "Launch Edge against localhost",
"url": "http://localhost:5501/",
"webRoot": "${workspaceFolder}/dist"
}
]
}

36
.vscode/settings.json vendored
View File

@ -30,39 +30,5 @@
"node_modules/tibi-types/schemas/api-config/collection.json": "api/collections/*.y*ml",
"node_modules/tibi-types/schemas/api-config/field.json": "api/collections/fields/*.y*ml"
},
"yaml.customTags": ["!include scalar"],
"filewatcher.commands": [
{
"match": "/api/.*(\\.ya?ml|js|env)$",
"isAsync": false,
"cmd": "docker compose -p tibi-svelte-starter-local restart tibiserver",
"event": "onFileChange"
}
],
"i18n-ally.localesPaths": [],
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#296221",
"activityBar.background": "#296221",
"activityBar.foreground": "#ffffff",
"activityBar.inactiveForeground": "#ffffff99",
"activityBarBadge.background": "#2fce11",
"activityBarBadge.foreground": "#15202b",
"commandCenter.border": "#00000099",
"editorGroup.border": "#296221",
"panel.border": "#296221",
"sash.hoverBorder": "#296221",
"sideBar.border": "#296221",
"statusBar.background": "#58585a",
"statusBar.border": "#58585a",
"statusBar.foreground": "#ffffff",
"statusBarItem.hoverBackground": "#296221",
"statusBarItem.remoteBackground": "#58585a",
"statusBarItem.remoteForeground": "#ffffff",
"tab.activeBorder": "#296221",
"titleBar.activeBackground": "#58585a",
"titleBar.activeForeground": "#ffffff",
"titleBar.border": "#58585a",
"titleBar.inactiveBackground": "#58585a99",
"titleBar.inactiveForeground": "#ffffff99"
}
"yaml.customTags": ["!include scalar"]
}

BIN
.yarn/cache/@ampproject-remapping-npm-2.1.2-d1536e36d6-e023f92cdd.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@babel-cli-npm-7.17.6-5326707a5b-362c9baf14.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@babel-code-frame-npm-7.16.0-13dafb7fe1-8961d0302e.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@babel-code-frame-npm-7.16.7-093eb9e124-db2f7faa31.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@babel-compat-data-npm-7.16.4-9128f11195-4949ce54ea.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@babel-compat-data-npm-7.16.8-4a2b385eea-10da2dac5e.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@babel-compat-data-npm-7.17.7-cb4c3e4df9-bf13476676.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@babel-core-npm-7.16.0-5612f0ce31-a140f669da.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@babel-core-npm-7.17.9-a17b8c8593-2d301e4561.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@babel-generator-npm-7.16.0-3f22faa87e-9ff53e0db7.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@babel-generator-npm-7.16.8-f9d7f9b832-83af38b347.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@babel-generator-npm-7.17.9-314134f0b2-afbdd4afbf.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More