Skip to content

Commit a2720dc

Browse files
committed
[add] GitHub repository settings & PR badge configuration
[optimize] some UI details [optimize] upgrade to KoAJAX 1, PNPM 9, Husky 9 & other latest Upstream packages
1 parent b181b09 commit a2720dc

14 files changed

+5272
-4249
lines changed

Diff for: .github/pr-badge.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This file is used by https://pullrequestbadge.com/
2+
3+
- icon: visualstudio
4+
label: 'GitHub.dev'
5+
message: 'PR-$prNumber'
6+
color: 'blue'
7+
url: 'https://github.dev/$owner/$repo/pull/$prNumber'
8+
9+
- icon: github
10+
label: 'GitHub codespaces'
11+
message: 'PR-$prNumber'
12+
color: 'black'
13+
url: 'https://codespaces.new/$owner/$repo/pull/$prNumber'
14+
15+
- icon: git
16+
label: 'GitPod.io'
17+
message: 'PR-$prNumber'
18+
color: 'orange'
19+
url: 'https://gitpod.io/?autostart=true#https://github.com/$owner/$repo/pull/$prNumber'

Diff for: .github/settings.yml

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
2+
3+
repository:
4+
allow_merge_commit: false
5+
6+
delete_branch_on_merge: true
7+
8+
enable_vulnerability_alerts: true
9+
10+
labels:
11+
- name: bug
12+
color: '#d73a4a'
13+
description: Something isn't working
14+
15+
- name: documentation
16+
color: '#0075ca'
17+
description: Improvements or additions to documentation
18+
19+
- name: duplicate
20+
color: '#cfd3d7'
21+
description: This issue or pull request already exists
22+
23+
- name: enhancement
24+
color: '#a2eeef'
25+
description: Some improvements
26+
27+
- name: feature
28+
color: '#16b33f'
29+
description: New feature or request
30+
31+
- name: good first issue
32+
color: '#7057ff'
33+
description: Good for newcomers
34+
35+
- name: help wanted
36+
color: '#008672'
37+
description: Extra attention is needed
38+
39+
- name: invalid
40+
color: '#e4e669'
41+
description: This doesn't seem right
42+
43+
- name: question
44+
color: '#d876e3'
45+
description: Further information is requested
46+
47+
- name: wontfix
48+
color: '#ffffff'
49+
description: This will not be worked on
50+
51+
branches:
52+
- name: master
53+
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
54+
protection:
55+
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
56+
required_pull_request_reviews:
57+
# The number of approvals required. (1-6)
58+
required_approving_review_count: 1
59+
# Dismiss approved reviews automatically when a new commit is pushed.
60+
dismiss_stale_reviews: true
61+
# Blocks merge until code owners have reviewed.
62+
require_code_owner_reviews: true
63+
# Specify which users and teams can dismiss pull request reviews.
64+
# Pass an empty dismissal_restrictions object to disable.
65+
# User and team dismissal_restrictions are only available for organization-owned repositories.
66+
# Omit this parameter for personal repositories.
67+
dismissal_restrictions:
68+
# users: []
69+
# teams: []
70+
# Required. Require status checks to pass before merging. Set to null to disable
71+
required_status_checks:
72+
# Required. Require branches to be up to date before merging.
73+
strict: true
74+
# Required. The list of status checks to require in order to merge into this branch
75+
contexts: []
76+
# Required. Enforce all configured restrictions for administrators.
77+
# Set to true to enforce required status checks for repository administrators.
78+
# Set to null to disable.
79+
enforce_admins: true
80+
# Prevent merge commits from being pushed to matching branches
81+
required_linear_history: true
82+
# Required. Restrict who can push to this branch.
83+
# Team and user restrictions are only available for organization-owned repositories.
84+
# Set to null to disable.
85+
restrictions: null

Diff for: .github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- uses: pnpm/action-setup@v2
1717
with:
18-
version: 8
18+
version: 9
1919
- uses: actions/setup-node@v3
2020
with:
2121
node-version: 18

Diff for: .github/workflows/push.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- uses: pnpm/action-setup@v2
1717
with:
18-
version: 8
18+
version: 9
1919
- uses: actions/setup-node@v3
2020
with:
2121
node-version: 18

Diff for: .husky/pre-commit

-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
3-
. "$(dirname "$0")/_/husky.sh"
4-
51
npm test

Diff for: .husky/pre-push

-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
3-
. "$(dirname "$0")/_/husky.sh"
4-
51
npm run build

Diff for: package.json

+21-21
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "UNLICENSED",
99
"author": "JSCIG",
1010
"scripts": {
11-
"prepare": "husky install",
11+
"prepare": "husky",
1212
"clean": "rm -rf .parcel-cache/ dist/",
1313
"build": "npm run pack-dist && npm run pack-sw",
1414
"pack-dist": "npm run clean && parcel build source/index.html --public-url .",
@@ -17,30 +17,30 @@
1717
"test": "lint-staged"
1818
},
1919
"dependencies": {
20-
"boot-cell": "^2.0.0-beta.7",
20+
"boot-cell": "^2.0.0-beta.29",
2121
"browser-unhandled-rejection": "^1.0.2",
22-
"cell-router": "^3.0.0-rc.5",
22+
"cell-router": "^3.0.0-rc.7",
2323
"classnames": "^2.5.1",
24-
"dom-renderer": "^2.0.6",
25-
"koajax": "^0.9.6",
26-
"mobx": "^6.12.0",
27-
"web-cell": "^3.0.0-rc.8",
28-
"web-utility": "^4.1.3"
24+
"dom-renderer": "^2.1.8",
25+
"koajax": "^1.1.2",
26+
"mobx": "^6.12.4",
27+
"web-cell": "^3.0.0-rc.16",
28+
"web-utility": "^4.4.0"
2929
},
3030
"devDependencies": {
31-
"@parcel/config-default": "~2.11.0",
32-
"@parcel/packager-raw-url": "~2.11.0",
33-
"@parcel/transformer-less": "2.11.0",
34-
"@parcel/transformer-typescript-tsc": "~2.11.0",
35-
"@parcel/transformer-webmanifest": "~2.11.0",
36-
"@types/node": "^18.19.8",
37-
"husky": "^8.0.3",
38-
"lint-staged": "^15.2.0",
39-
"parcel": "~2.11.0",
40-
"postcss": "^8.4.33",
31+
"@parcel/config-default": "~2.12.0",
32+
"@parcel/packager-raw-url": "~2.12.0",
33+
"@parcel/transformer-less": "2.12.0",
34+
"@parcel/transformer-typescript-tsc": "~2.12.0",
35+
"@parcel/transformer-webmanifest": "~2.12.0",
36+
"@types/node": "^18.19.36",
37+
"husky": "^9.0.11",
38+
"lint-staged": "^15.2.7",
39+
"parcel": "~2.12.0",
40+
"postcss": "^8.4.38",
4141
"postcss-modules": "^4.3.1",
42-
"prettier": "^3.2.4",
43-
"typescript": "~5.3.3",
44-
"workbox-cli": "^7.0.0"
42+
"prettier": "^3.3.2",
43+
"typescript": "~5.4.5",
44+
"workbox-cli": "^7.1.0"
4545
}
4646
}

0 commit comments

Comments
 (0)