Skip to content

Commit 834a194

Browse files
committed
feat: local dev structure changes
1 parent 89f27a4 commit 834a194

28 files changed

+1081
-181
lines changed

.dive-ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
3+
rules:
4+
# If the efficiency is measured below X%, mark as failed.
5+
# Expressed as a ratio between 0-1.
6+
lowestEfficiency: 0.95
7+
8+
# If the amount of wasted space is at least X or larger than X, mark as failed.
9+
# Expressed in B, KB, MB, and GB.
10+
highestWastedBytes: 20MB
11+
12+
# If the amount of wasted space makes up for X% or more of the image, mark as failed.
13+
# Note: the base image layer is NOT included in the total image size.
14+
# Expressed as a ratio between 0-1; fails if the threshold is met or crossed.
15+
highestUserWastedPercent: 0.20
16+
17+
...

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ indent_size = 2
1313

1414
[*.yaml.j2]
1515
indent_size = 2
16+
17+
[Makefile]
18+
indent_style = tab
File renamed without changes.

.github/.commitlint.config.mjs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// More info: https://github.com/wayofdev/npm-shareable-configs/blob/master/packages/commitlint-config/src/index.js
2+
const automaticCommitPattern = /^chore\(release\):.*\[skip ci]/
3+
4+
export default {
5+
extends: ['@commitlint/config-conventional'],
6+
/*
7+
This resolves a linting conflict between commitlint's body-max-line-length
8+
due to @semantic-release/git putting release notes in the commit body
9+
https://github.com/semantic-release/git/issues/331
10+
*/
11+
ignores: [(commitMessage) => automaticCommitPattern.test(commitMessage)],
12+
rules: {
13+
'body-leading-blank': [1, 'always'],
14+
'body-max-line-length': [2, 'always', 120],
15+
'footer-leading-blank': [1, 'always'],
16+
'footer-max-line-length': [2, 'always', 120],
17+
'header-max-length': [2, 'always', 100],
18+
'scope-case': [2, 'always', 'lower-case'],
19+
'subject-case': [2, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']],
20+
'subject-empty': [2, 'never'],
21+
'subject-full-stop': [2, 'never', '.'],
22+
'type-case': [2, 'always', 'lower-case'],
23+
'type-empty': [2, 'never'],
24+
'type-enum': [
25+
2,
26+
'always',
27+
[
28+
'feat', // New feature
29+
'fix', // Bug fix
30+
'perf', // Performance improvement
31+
'docs', // Documentation changes
32+
'style', // Code style update (formatting, missing semi colons, etc)
33+
'deps', // Dependency updates
34+
'refactor', // Code refactoring
35+
'ci', // Continuous integration changes
36+
'test', // Adding missing tests
37+
'revert', // Revert to a previous commit
38+
'build', // Changes that affect the build system
39+
'chore', // Other changes that don't modify src or test files
40+
'security', // Security improvements
41+
],
42+
],
43+
},
44+
}

.github/.cz.config.js

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
// @see https://cz-git.qbb.sh/config/#configure-template
2+
module.exports = {
3+
alias: { fd: 'docs: fix typos' },
4+
messages: {
5+
type: 'Select the type of change that you\'re committing:',
6+
scope: 'Denote the SCOPE of this change (optional):',
7+
customScope: 'Denote the SCOPE of this change:',
8+
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
9+
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
10+
breaking: 'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',
11+
footerPrefixesSelect: 'Select the ISSUES type of changeList by this change (optional):',
12+
customFooterPrefix: 'Input ISSUES prefix:',
13+
footer: 'List any ISSUES by this change. E.g.: #31, #34:\n',
14+
generatingByAI: 'Generating your AI commit subject...',
15+
generatedSelectByAI: 'Select suitable subject by AI generated:',
16+
confirmCommit: 'Are you sure you want to proceed with the commit above?'
17+
},
18+
types: [
19+
{ value: 'feat', name: 'feat: A new feature', emoji: ':sparkles:' },
20+
{ value: 'fix', name: 'fix: A bug fix', emoji: ':bug:' },
21+
{ value: 'perf', name: 'perf: A code change that improves performance', emoji: ':zap:' },
22+
{ value: 'docs', name: 'docs: Documentation only changes', emoji: ':memo:' },
23+
{ value: 'style', name: 'style: Changes that do not affect the meaning of the code', emoji: ':lipstick:' },
24+
{ value: 'deps', name: 'deps: A dependency update', emoji: ':package:' },
25+
{ value: 'refactor', name: 'refactor: A code change that neither fixes a bug nor adds a feature', emoji: ':recycle:' },
26+
{ value: 'ci', name: 'ci: Changes to our CI configuration files and scripts', emoji: ':ferris_wheel:' },
27+
{ value: 'test', name: 'test: Adding missing tests or correcting existing tests', emoji: ':white_check_mark:' },
28+
{ value: 'revert', name: 'revert: Reverts a previous commit', emoji: ':rewind:' },
29+
{ value: 'build', name: 'build: Changes that affect the build system or external dependencies', emoji: ':package:' },
30+
{ value: 'chore', name: 'chore: Other changes that don\'t modify src or test files', emoji: ':hammer:' },
31+
{ value: 'security', name: 'security: A code change that fixes a security issue', emoji: ':lock:' }
32+
],
33+
useEmoji: false,
34+
emojiAlign: 'center',
35+
useAI: false,
36+
aiNumber: 1,
37+
themeColorCode: '',
38+
scopes: [],
39+
allowCustomScopes: true,
40+
allowEmptyScopes: true,
41+
customScopesAlign: 'bottom',
42+
customScopesAlias: 'custom',
43+
emptyScopesAlias: 'empty',
44+
upperCaseSubject: false,
45+
markBreakingChangeMode: false,
46+
allowBreakingChanges: ['feat', 'fix'],
47+
breaklineNumber: 100,
48+
breaklineChar: '|',
49+
skipQuestions: [],
50+
issuePrefixes: [{ value: 'closed', name: 'closed: ISSUES has been processed' }],
51+
customIssuePrefixAlign: 'top',
52+
emptyIssuePrefixAlias: 'skip',
53+
customIssuePrefixAlias: 'custom',
54+
allowCustomIssuePrefix: true,
55+
allowEmptyIssuePrefix: true,
56+
confirmColorize: true,
57+
maxHeaderLength: Infinity,
58+
maxSubjectLength: Infinity,
59+
minSubjectLength: 0,
60+
scopeOverrides: undefined,
61+
defaultBody: '',
62+
defaultIssues: '',
63+
defaultScope: '',
64+
defaultSubject: ''
65+
}

.github/.hadolint.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
3+
trustedRegistries:
4+
- docker.io
5+
- "*.gcr.io"
6+
7+
...

.github/.markdownlint.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json",
3+
"line-length": false,
4+
"no-inline-html": false,
5+
"first-line-h1": false,
6+
"no-duplicate-heading": false
7+
}

.github/.release-please-config.json

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,37 +42,32 @@
4242
{
4343
"type": "test",
4444
"section": "Tests",
45-
"hidden": false
46-
},
47-
{
48-
"type": "ci",
49-
"section": "Continuous Integration",
50-
"hidden": false
51-
},
52-
{
53-
"type": "chore",
54-
"section": "Miscellaneous",
5545
"hidden": true
5646
},
5747
{
58-
"type": "revert",
59-
"section": "Reverts",
48+
"type": "build",
49+
"section": "Build System",
6050
"hidden": true
6151
},
6252
{
63-
"type": "build",
64-
"section": "Build System",
53+
"type": "ci",
54+
"section": "Continuous Integration",
6555
"hidden": true
6656
},
6757
{
68-
"type": "security",
69-
"section": "Security",
58+
"type": "chore",
59+
"section": "Miscellaneous",
7060
"hidden": true
7161
},
7262
{
7363
"type": "style",
7464
"section": "Styles",
7565
"hidden": true
66+
},
67+
{
68+
"type": "revert",
69+
"section": "Reverts",
70+
"hidden": true
7671
}
7772
]
7873
}

.github/.yamllint.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
3+
extends: default
4+
5+
rules:
6+
braces:
7+
# Defaults
8+
# min-spaces-inside: 0
9+
# max-spaces-inside: 0
10+
11+
# Keep 0 min-spaces to not error on empty {} collection definitions
12+
min-spaces-inside: 0
13+
14+
# Allow one space inside braces to improve code readability
15+
max-spaces-inside: 1
16+
17+
brackets:
18+
# Defaults
19+
# min-spaces-inside: 0
20+
# max-spaces-inside: 0
21+
22+
# Keep 0 min-spaces to not error on empty [] collection definitions
23+
min-spaces-inside: 0
24+
25+
# Allow one space inside braces to improve code readability
26+
max-spaces-inside: 1
27+
28+
colons:
29+
# Defaults
30+
# min-spaces-before: 0
31+
# max-spaces-after: 1
32+
33+
# Allow multiple spaces after a colon to allow indentation of YAML
34+
# dictionary values
35+
max-spaces-after: -1
36+
37+
commas:
38+
# Defaults
39+
# max-spaces-after: 1
40+
41+
# Allow multiple spaces after a comma to allow indentation of YAML
42+
# dictionary values
43+
max-spaces-after: -1
44+
45+
comments:
46+
require-starting-space: true
47+
min-spaces-from-content: 1
48+
49+
comments-indentation: false
50+
51+
line-length: disable
52+
53+
octal-values:
54+
forbid-implicit-octal: true
55+
forbid-explicit-octal: true
56+
57+
...

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
2+
3+
* @lotyp

.github/CODE_OF_CONDUCT.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ representative at an online or offline event.
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6262
reported to the community leaders responsible for enforcement at
63-
the@wayof.dev.
63+
<the@wayof.dev>.
6464
All complaints will be reviewed and investigated promptly and fairly.
6565

6666
All community leaders are obligated to respect the privacy and security of the
@@ -116,13 +116,13 @@ the community.
116116

117117
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118118
version 2.0, available at
119-
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
119+
<https://www.contributor-covenant.org/version/2/0/code_of_conduct.html>.
120120

121121
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122122
enforcement ladder](https://github.com/mozilla/diversity).
123123

124124
[homepage]: https://www.contributor-covenant.org
125125

126126
For answers to common questions about this code of conduct, see the FAQ at
127-
https://www.contributor-covenant.org/faq. Translations are available at
128-
https://www.contributor-covenant.org/translations.
127+
<https://www.contributor-covenant.org/faq>. Translations are available at
128+
<https://www.contributor-covenant.org/translations>.

0 commit comments

Comments
 (0)