Skip to content

Commit 3b1047d

Browse files
committed
resolved merge conflicts
2 parents 3b7c9e4 + 1232833 commit 3b1047d

1,325 files changed

Lines changed: 150734 additions & 44807 deletions

File tree

Some content is hidden

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

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ jobs:
6262
domain: ${{ vars.SURGE_DOMAIN }}
6363
project: './build'
6464
login: ${{ secrets.SURGE_LOGIN }}
65-
token: ${{ secrets.SURGE_TOKEN }}
65+
token: ${{ secrets.SURGE_TOKEN }}

.github/workflows/pull_request_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ jobs:
5353
- name: Install Dependencies
5454
run: yarn install --frozen-lockfile
5555
- name: Run Unit Tests for Changed Files Only
56-
run: yarn run test:changed
56+
run: NODE_OPTIONS="--max-old-space-size=4096" yarn run test:changed
5757
- name: Run Lint
58-
run: yarn run lint
58+
run: yarn run lint

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: yarn install
2323

2424
- name: Run tests
25-
run: yarn test
25+
run: NODE_OPTIONS="--max-old-space-size=4096" yarn test
2626

2727
- name: Upload test results
2828
if: failure()

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
# dependencies
44
/node_modules
5-
package-lock.json
65
# testing
76
/coverage
87
*.code-snippets
@@ -31,4 +30,6 @@ yarn-error.log*
3130

3231
**\ **
3332

34-
/public/tinymce/
33+
/public/tinymce/Community/
34+
Community/
35+
public/tinymce/

.husky-disabled/pre-commit

Lines changed: 0 additions & 5 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ if [ -f .nvmrc ]; then
77
nvm use 20 2>/dev/null || nvm install 20 && nvm use 20
88
fi
99

10-
. "$(dirname "$0")/_/husky.sh"
11-
1210
echo ""
1311
echo "🛡️ Husky pre-commit hook triggered"
1412

13+
if git rev-parse -q --verify MERGE_HEAD >/dev/null 2>&1; then
14+
echo "ℹ️ Merge commit detected. Skipping lint-staged auto-fix on the merged file set."
15+
exit 0
16+
fi
17+
1518
# Block plain .css files (except .module.css and index.css)
1619
for file in $(git diff --cached --name-only --diff-filter=ACM | grep '\.css$'); do
1720
case "$file" in
@@ -42,4 +45,4 @@ if git diff --cached --name-only | grep -qE '\.(js|jsx|ts|tsx|css)$'; then
4245
fi
4346
else
4447
echo "ℹ️ No JS/TS/CSS files to lint. Skipping lint-staged."
45-
fi
48+
fi

.husky/pre-push

Lines changed: 58 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,71 @@
33
export NVM_DIR="$HOME/.nvm"
44
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
55
# Use Node 20 if available (or install if needed)
6-
if [ -f .nvmrc ]; then
6+
if command -v nvm >/dev/null 2>&1 && [ -f .nvmrc ]; then
77
nvm use 20 2>/dev/null || nvm install 20 && nvm use 20
88
fi
99

10-
. "$(dirname "$0")/_/husky.sh"
10+
if git rev-parse --abbrev-ref @{upstream} >/dev/null 2>&1; then
11+
changed_files=$(git diff --name-only --diff-filter=d @{upstream}...HEAD)
12+
else
13+
echo "ℹ️ No upstream branch set. Skipping pre-push checks."
14+
exit 0
15+
fi
16+
17+
# Skip checks if any outgoing commit is a merge commit
18+
if git log @{upstream}..HEAD --merges --oneline | grep -q .; then
19+
echo "ℹ️ Outgoing commits include a merge commit. Skipping lint/test checks."
20+
exit 0
21+
fi
22+
23+
if [ -z "$changed_files" ]; then
24+
echo "ℹ️ No outgoing changes to validate. Skipping pre-push checks."
25+
exit 0
26+
fi
27+
28+
# Skip checks if any outgoing commit is a merge commit
29+
if git log @{upstream}..HEAD --merges --oneline | grep -q .; then
30+
echo "ℹ️ Outgoing commits include a merge commit. Skipping lint/test checks."
31+
exit 0
32+
fi
33+
34+
if ! printf '%s\n' "$changed_files" | grep -qvE '^\.husky/'; then
35+
echo "ℹ️ Only Husky hook changes detected. Skipping full test and lint checks."
36+
exit 0
37+
fi
38+
39+
existing_files=$(printf '%s\n' "$changed_files" | while IFS= read -r f; do
40+
[ -n "$f" ] && [ -e "$f" ] && printf '%s\n' "$f"
41+
done)
42+
43+
js_files=$(printf '%s\n' "$existing_files" | grep -E '\.(js|jsx|ts|tsx)$' || true)
44+
style_files=$(printf '%s\n' "$existing_files" | grep -E '\.(css|scss|sass)$' || true)
45+
46+
test_status=0
47+
lint_status=0
48+
style_status=0
1149
12-
echo "🧪 Running tests before push..."
13-
npm run test -- --bail=1
14-
test_status=$?
50+
if [ -n "$js_files" ]; then
51+
echo "🧪 Running related tests before push..."
52+
echo "$js_files" | tr ' ' '\n' | xargs npx vitest related --run
53+
test_status=$?
54+
55+
echo "🧹 Running ESLint on changed files before push..."
56+
echo "$js_files" | tr ' ' '\n' | xargs npx eslint
57+
lint_status=$?
58+
fi
59+
60+
if [ -n "$style_files" ]; then
61+
echo "🎨 Running Stylelint on changed files before push..."
62+
echo "$style_files" | tr ' ' '\n' | xargs npx stylelint
63+
style_status=$?
64+
fi
1565
16-
echo "🧹 Running lint before push..."
17-
npm run lint
18-
lint_status=$?
1966
2067
# Block push if either fails
21-
if [ $test_status -ne 0 ] || [ $lint_status -ne 0 ]; then
22-
echo "❌ Push blocked: Lint or test failed."
68+
if [ $test_status -ne 0 ] || [ $lint_status -ne 0 ] || [ $style_status -ne 0 ]; then
69+
echo "❌ Push blocked: changed-file validation failed."
2370
exit 1
2471
fi
2572
26-
echo "✅ All checks passed. Proceeding with push..."
73+
echo "✅ All checks passed. Proceeding with push..."

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
*.png
22
*.svg
33
src/actions/**
4-
src/App.css
54
src/config.json
65

76
src/languages/**

.stylelintrc

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
1-
{
2-
"ignoreFiles": [
3-
"build/**/*.css",
4-
"public/**/*.css",
5-
"node_modules/**/*.css"
6-
],
7-
"rules": {
8-
"no-duplicate-selectors": true
9-
}
1+
{
2+
"extends": ["stylelint-config-standard"],
3+
"ignoreFiles": [
4+
"build/**/*.css",
5+
"public/**/*.css",
6+
"node_modules/**/*.css"
7+
],
8+
"rules": {
9+
"no-duplicate-selectors": [true, {
10+
"disallowInList": false
11+
}],
12+
"selector-pseudo-class-no-unknown": [
13+
true,
14+
{ "ignorePseudoClasses": ["global", "local"] }
15+
],
16+
"selector-class-pattern": null,
17+
"selector-id-pattern": null
18+
},
19+
"overrides": [
20+
{
21+
"files": ["**/*.module.css"],
22+
"rules": {
23+
"no-duplicate-selectors": null
24+
}
25+
}
26+
]
1027
}

.yarnrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Avoid stale persisted package tarballs in CI/Netlify.
2+
cache-folder "/tmp/hgn-yarn-cache"

0 commit comments

Comments
 (0)