forked from cms/tibi-svelte-starter
Compare commits
62 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 30fe289199 | |||
| a35e2ab9f1 | |||
| d5257fa606 | |||
| d8e4f9c902 | |||
| 706ec88576 | |||
| 0d06a61c7f | |||
| 652f15830d | |||
| 65e8b7ffc8 | |||
| 25a39dfac0 | |||
| ee7ed0db1f | |||
| 05fe698af6 | |||
| 2737872396 | |||
| 7c712ee7c8 | |||
| 60bd5d21c9 | |||
| ddd236af06 | |||
| 9cf3a814e3 | |||
| de6968f3d8 | |||
| 4824effccb | |||
| d872767845 | |||
| 432d21daeb | |||
| cabaaef456 | |||
| aaf2860714 | |||
| 87aa1689f3 | |||
| fcf5490d5a | |||
| 5d08a96327 | |||
| c67f712280 | |||
| a2bd10453b | |||
| de7ddc1097 | |||
| 9188148fe7 | |||
| 516c35dcb4 | |||
| 47fdee2396 | |||
| f4b6bb17ca | |||
| 87fd3c6148 | |||
| d0c6ad4092 | |||
| eedb794251 | |||
| c1894528b7 | |||
| 09a7688e29 | |||
| 75534213e8 | |||
| fd613e5a7d | |||
| ef8d571ac5 | |||
| 4aec1bd712 | |||
| c00f5a9fb3 | |||
| 88c5147363 | |||
| 5caa62eb7e | |||
| 75a8906d4a | |||
| 0ac8817805 | |||
| ff7441f3c5 | |||
| 5843680e14 | |||
| 66d8313316 | |||
| 24d2aaaa50 | |||
| 85fd41ce58 | |||
| 9c559f7020 | |||
| bd087ae658 | |||
| f9fe8fd735 | |||
| 786fd12f34 | |||
| 95c2950193 | |||
| 0bf64b1031 | |||
| f6ac48daab | |||
| a232a0119e | |||
| 82903a8029 | |||
| 0aca310a5e | |||
| 2ee7f650db |
+191
@@ -0,0 +1,191 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
workspace:
|
||||
path: /drone/workdir
|
||||
|
||||
steps:
|
||||
- name: load dependencies
|
||||
image: node
|
||||
pull: if-not-exists
|
||||
environment:
|
||||
FORCE_COLOR: "true"
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
commands:
|
||||
- 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 __MASTER_URL__
|
||||
when:
|
||||
branch: [master]
|
||||
|
||||
- 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
|
||||
pull: if-not-exists
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
commands:
|
||||
- yarn build
|
||||
|
||||
- name: build ssr
|
||||
image: node
|
||||
pull: if-not-exists
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
commands:
|
||||
- yarn build:server
|
||||
|
||||
- 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 > dist/spa.html
|
||||
- export stamp=`date +%s`
|
||||
- echo $$stamp
|
||||
- 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: USER_PROJECT_master
|
||||
RSYNC_PASS:
|
||||
from_secret: rsync_master
|
||||
commands:
|
||||
- apk add --no-cache sshpass
|
||||
- scripts/deploy.sh ftp1.webmakers.de $${RSYNC_USER} $${RSYNC_PASS}
|
||||
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: cache
|
||||
host:
|
||||
path: /tmp/cache/drone/${DRONE_REPO}
|
||||
@@ -0,0 +1 @@
|
||||
.yarn/cache/** filter=lfs diff=lfs merge=lfs -text
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
_temp/
|
||||
node_modules/
|
||||
dist/
|
||||
build/
|
||||
build_ssr/
|
||||
stat/
|
||||
yarn-error.log
|
||||
/media/
|
||||
/test.js
|
||||
/api/templates/spa.html
|
||||
/api/hooks/lib/app.server*
|
||||
cypress/_old
|
||||
cypress/videos
|
||||
cypress/screenshots
|
||||
.~lock.*
|
||||
coverage/
|
||||
.nyc_output/
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"printWidth": 120,
|
||||
"tabWidth": 4,
|
||||
"singleQuote": false,
|
||||
"trailingComma": "es5",
|
||||
"semi": false,
|
||||
"newline-before-return": true,
|
||||
"no-duplicate-variable": [
|
||||
true,
|
||||
"check-parameters"
|
||||
],
|
||||
"no-var-keyword": true,
|
||||
"svelteSortOrder": "scripts-markup-styles",
|
||||
"svelteStrictMode": true,
|
||||
"svelteBracketNewLine": true,
|
||||
"svelteAllowShorthand": true,
|
||||
"svelteIndentScriptAndStyle": true
|
||||
}
|
||||
Vendored
+34
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"eslint.alwaysShowStatus": true,
|
||||
"tslint.autoFixOnSave": true,
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnPaste": true,
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"[markdown]": {
|
||||
"editor.wordWrap": "on",
|
||||
"editor.defaultFormatter": "vscode.markdown-language-features"
|
||||
},
|
||||
"[typescriptreact]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"liveServer.settings.root": "/dist",
|
||||
"liveServer.settings.file": "spa.html",
|
||||
"liveServer.settings.port": 5502,
|
||||
"liveServer.settings.proxy": {
|
||||
"enable": true,
|
||||
"baseUri": "/api",
|
||||
"proxyUri": "http://127.0.0.1:8080/api/v1/_/__NAMESPACE__"
|
||||
},
|
||||
"extensions.ignoreRecommendations": true,
|
||||
"files.autoSave": "off",
|
||||
"typescript.tsc.autoDetect": "off",
|
||||
"npm.autoDetect": "off",
|
||||
"debug.allowBreakpointsEverywhere": true,
|
||||
"html.autoClosingTags": false,
|
||||
"yaml.schemas": {
|
||||
"node_modules/tibi-types/schemas/api-config/config.json": "api/config.y*ml",
|
||||
"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"]
|
||||
}
|
||||
Binary file not shown.
BIN
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
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
.yarn/cache/@babel-plugin-proposal-logical-assignment-operators-npm-7.16.0-8163433ffc-7e6cd10248.zip
LFS
Vendored
BIN
Binary file not shown.
.yarn/cache/@babel-plugin-proposal-logical-assignment-operators-npm-7.16.7-c5b5395f79-c4cf18e10f.zip
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
LFS
Vendored
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user