Skip to content

Commit 9e8a7b4

Browse files
feat: add framework-agnostic debug snapshot contracts, strict JSON hydration, and filesystem persistence. (#1)
1 parent c76208a commit 9e8a7b4

59 files changed

Lines changed: 5900 additions & 6 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.editorconfig‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
indent_style = space
10+
indent_size = 4
11+
trim_trailing_whitespace = true
12+
13+
[*.js]
14+
indent_size = 2
15+
16+
[*.scss]
17+
indent_size = 2
18+
19+
[*.css]
20+
indent_size = 2
21+
22+
[package.json]
23+
indent_size = 2
24+
25+
[package-lock.json]
26+
indent_size = 2
27+
28+
[*.md]
29+
indent_size = 2
30+
trim_trailing_whitespace = false
31+
32+
[*.php]
33+
ij_php_space_before_short_closure_left_parenthesis = false
34+
ij_php_space_after_type_cast = true
35+
36+
[*.yaml]
37+
indent_size = 2
38+
39+
[*.yml]
40+
indent_size = 2
41+
42+
[*.xml.dist]
43+
indent_size = 2
44+
45+
[LICENSE*]
46+
indent_style = unset
47+
indent_size = unset

‎.gitattributes‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Autodetect text files
2+
* text=auto eol=lf
3+
4+
# ...Unless the name matches the following overriding patterns
5+
6+
# Definitively text files
7+
*.php text
8+
*.css text
9+
*.js text
10+
*.txt text
11+
*.md text
12+
*.xml text
13+
*.json text
14+
*.bat text
15+
*.sql text
16+
*.yml text
17+
18+
# Ensure those won't be messed up with
19+
*.png binary
20+
*.jpg binary
21+
*.gif binary
22+
*.ttf binary
23+
24+
# Exclude files from the archive
25+
/.editorconfig export-ignore
26+
/.gitattributes export-ignore
27+
/.github export-ignore
28+
/.gitignore export-ignore
29+
/.styleci.yml export-ignore
30+
/codeception.yml export-ignore
31+
/composer-require-checker.json export-ignore
32+
/docs export-ignore
33+
/ecs.php export-ignore
34+
/infection.json* export-ignore
35+
/phpstan*.neon* export-ignore
36+
/phpunit.xml.dist export-ignore
37+
/rector.php export-ignore
38+
/runtime export-ignore
39+
/tests export-ignore
40+
41+
# Avoid merge conflicts in CHANGELOG
42+
# https://about.gitlab.com/2015/02/10/gitlab-reduced-merge-conflicts-by-90-percent-with-changelog-placeholders/
43+
/CHANGELOG.md merge=union

‎.github/dependabot.yml‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
version: 2
3+
updates:
4+
# Maintain dependencies for GitHub Actions
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "daily"
9+
cooldown:
10+
default-days: 7
11+
groups:
12+
github-actions:
13+
patterns: ["*"]
14+
15+
# Maintain dependencies for Composer
16+
- package-ecosystem: "composer"
17+
directory: "/"
18+
schedule:
19+
interval: "daily"
20+
cooldown:
21+
default-days: 7
22+
groups:
23+
composer:
24+
patterns: ["*"]
25+
versioning-strategy: increase-if-necessary
26+
27+
# Maintain dependencies for npm
28+
- package-ecosystem: "npm"
29+
directory: "/"
30+
schedule:
31+
interval: "daily"
32+
cooldown:
33+
default-days: 7
34+
groups:
35+
npm:
36+
patterns: ["*"]

‎.github/linters/.codespellrc‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[codespell]
2+
skip = ./.git,.claude/*,.codex/*,.config/gh/*,.github/agents/*,.github/copilot-instructions.md,.github/copilot/*,.github/instructions/*,.github/prompts/*,.github/skills/*,.vscode/*,*/composer.json,*/composer.lock,*/dist/*,*/node_modules/*,*/package-lock.json,*/tests/*,code_coverage/*,CHANGELOG.md,UPGRADE.md,runtime/*,scaffold-lock.json,vendor/*
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"Exclude": [
3+
"\\.min\\.css$",
4+
"\\.min\\.js$",
5+
"^\\.claude/",
6+
"^\\.codex/",
7+
"^\\.config/gh/",
8+
"^\\.github/agents/",
9+
"^\\.github/copilot-instructions\\.md$",
10+
"^\\.github/copilot/",
11+
"^\\.github/instructions/",
12+
"^\\.github/prompts/",
13+
"^\\.github/skills/",
14+
"^\\.vscode/",
15+
"^code_coverage/",
16+
"^composer\\.lock$",
17+
"^runtime/",
18+
"^tests/runtime/",
19+
"^vendor/",
20+
"phpstan-baseline\\.neon$",
21+
"scaffold-lock\\.json$"
22+
]
23+
}

‎.github/linters/.gitleaks.toml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
title = "gitleaks config"
2+
3+
[extend]
4+
useDefault = true

‎.github/linters/.markdown-lint.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
MD007:
3+
indent: 2
4+
MD013: false
5+
MD033: false

‎.github/workflows/build.yml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
on:
3+
pull_request: &ignore-paths
4+
paths-ignore:
5+
- ".gitattributes"
6+
- ".gitignore"
7+
- "CHANGELOG.md"
8+
- "docs/**"
9+
- "README.md"
10+
11+
push: *ignore-paths
12+
13+
name: build
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
phpunit:
20+
uses: yii2-framework/actions/.github/workflows/phpunit.yml@670b6444a11798dc2b38f2563dbbcef063dfc0ab # v2.0.1
21+
secrets:
22+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
23+
with:
24+
concurrency-group: phpunit-${{ github.workflow }}-${{ github.ref }}
25+
extensions: mbstring
26+
php-version: '["8.3","8.4","8.5"]'
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
on:
3+
pull_request: &ignore-paths
4+
paths-ignore:
5+
- ".gitattributes"
6+
- ".gitignore"
7+
- "CHANGELOG.md"
8+
- "docs/**"
9+
- "README.md"
10+
11+
push: *ignore-paths
12+
13+
name: Composer require checker
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
composer-require-checker:
20+
uses: yii2-framework/actions/.github/workflows/composer-require-checker.yml@670b6444a11798dc2b38f2563dbbcef063dfc0ab # v2.0.1

‎.github/workflows/ecs.yml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
on:
3+
pull_request: &ignore-paths
4+
paths-ignore:
5+
- ".gitattributes"
6+
- ".gitignore"
7+
- "CHANGELOG.md"
8+
- "docs/**"
9+
- "README.md"
10+
11+
push: *ignore-paths
12+
13+
name: ecs
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
easy-coding-standard:
20+
uses: yii2-framework/actions/.github/workflows/ecs.yml@670b6444a11798dc2b38f2563dbbcef063dfc0ab # v2.0.1

0 commit comments

Comments
 (0)