From 0e94cfaefbe43da0022cb85d0e5510cb74e5f54f Mon Sep 17 00:00:00 2001 From: OCram85 Date: Wed, 14 Feb 2024 14:08:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20initial=20setup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc | 10 ++++++++ .vscode/dictionaries/project-words.txt | 2 ++ .vscode/settings.json | 19 +++------------ .woodpecker/lint.yml | 19 +++++++++++++++ .woodpecker/renovate.yml | 32 ++++++++++++++++++++++++++ config.js | 18 +++++++++++++++ default.json | 12 ++++++++++ renovate.json | 4 ++++ 8 files changed, 100 insertions(+), 16 deletions(-) create mode 100644 .prettierrc create mode 100644 .woodpecker/lint.yml create mode 100644 .woodpecker/renovate.yml create mode 100644 config.js create mode 100644 default.json create mode 100644 renovate.json diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..f47cb6c --- /dev/null +++ b/.prettierrc @@ -0,0 +1,10 @@ +{ + "arrowParens": "always", + "bracketSpacing": true, + "editorconfig": true, + "printWidth": 116, + "semi": false, + "singleQuote": true, + "trailingComma": "all", + "vueIndentScriptAndStyle": true +} diff --git a/.vscode/dictionaries/project-words.txt b/.vscode/dictionaries/project-words.txt index 0601a09..d02e74a 100644 --- a/.vscode/dictionaries/project-words.txt +++ b/.vscode/dictionaries/project-words.txt @@ -1 +1,3 @@ +autodiscover +automerge tbd diff --git a/.vscode/settings.json b/.vscode/settings.json index ed6e551..b1f7bb1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,20 +9,6 @@ "editor.rulers": [ 116 ], - // powershell general - "powershell.startAutomatically": true, - "powershell.enableProfileLoading": true, - "powershell.scriptAnalysis.enable": true, - // powershell code Formatting - "powershell.codeFormatting.openBraceOnSameLine": true, - "powershell.codeFormatting.newLineAfterOpenBrace": true, - "powershell.codeFormatting.newLineAfterCloseBrace": true, - "powershell.codeFormatting.whitespaceBeforeOpenBrace": true, - "powershell.codeFormatting.whitespaceBeforeOpenParen": true, - "powershell.codeFormatting.whitespaceAroundOperator": true, - "powershell.codeFormatting.whitespaceAfterSeparator": true, - "powershell.codeFormatting.ignoreOneLineBlock": true, - "powershell.codeFormatting.alignPropertyValuePairs": true, // cSpell settings for custom dictionary "cSpell.enabled": true, "cSpell.caseSensitive": false, @@ -58,7 +44,7 @@ "yaml", "yml" ], - "cSpell.language": "en-US,de-DE", + "cSpell.language": "en-US", "cSpell.customDictionaries": { "project-words": { "name": "project-words", @@ -67,5 +53,6 @@ "addWords": true }, "custom": true - } + }, + "editor.defaultFormatter": "esbenp.prettier-vscode" } diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml new file mode 100644 index 0000000..039a297 --- /dev/null +++ b/.woodpecker/lint.yml @@ -0,0 +1,19 @@ +when: + event: + - push + - manual + +matrix: + RENOVATE_CONFIG_FILE: + - config.js + - default.json + - renovate.json + +steps: + lint: + image: renovate/renovate:37 + pull: true + commands: + - renovate-config-validator + environment: + LOG_LEVEL: debug diff --git a/.woodpecker/renovate.yml b/.woodpecker/renovate.yml new file mode 100644 index 0000000..a6ad057 --- /dev/null +++ b/.woodpecker/renovate.yml @@ -0,0 +1,32 @@ +when: + event: + - cron + - push + - manual + +depends_on: + - lint + +steps: + renovate-dry: + image: renovate/renovate:37 + secrets: [renovate_token, github_com_token] + pull: true + environment: + RENOVATE_CONFIG_FILE: config.js + LOG_LEVEL: debug + RENOVATE_DRY_RUN: full + when: + - event: push + + renovate: + image: renovate/renovate:37 + secrets: [renovate_token, github_com_token] + pull: true + environment: + RENOVATE_CONFIG_FILE: config.js + LOG_LEVEL: info + when: + - event: cron + cron: renovate + - event: manual diff --git a/config.js b/config.js new file mode 100644 index 0000000..9822134 --- /dev/null +++ b/config.js @@ -0,0 +1,18 @@ +module.exports = { + platform: 'gitea', + endpoint: 'https://gitea.ocram85.com', + gitAuthor: 'renovate-bot ', + autodiscover: true, + prHourlyLimit: 10, + automerge: false, + major: { + automerge: false, + }, + automergeType: 'pr', + automergeStrategy: 'squash', + labels: ['renovate'], + dependencyDashboardLabels: ['renovate'], + githubTokenWarn: false, + semanticCommits: 'enabled', + autodiscoverFilter: ['OCram85/*', 'CodeServer/*', 'renovate-bot/*'], +} diff --git a/default.json b/default.json new file mode 100644 index 0000000..31d67f9 --- /dev/null +++ b/default.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:recommended"], + "dependencyDashboard": true, + "enabledManagers": ["dockerfile", "docker-compose", "woodpecker", "bun", "npm", "nodenv"], + "packageRules": [ + { + "matchDatasources": ["docker"], + "registryUrls": ["https://mirror.ocram85.com"] + } + ] +} diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..ec27ce2 --- /dev/null +++ b/renovate.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["local>renovate-bot/config"] +}