Skip to content

Commit d17047e

Browse files
committed
refactor: refactor code project folder.
1 parent 3cfa534 commit d17047e

37 files changed

+940
-1403
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
99
liberapay: # Replace with a single Liberapay username
1010
issuehunt: # Replace with a single IssueHunt username
1111
otechie: # Replace with a single Otechie username
12-
custom: https://jaywcjlove.github.io/sponsor.html # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
12+
custom: # https://jaywcjlove.github.io/sponsor.html # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,31 @@ jobs:
2323
- run: npm run bundle:min
2424
- run: npm run coverage
2525
- run: npm run type-check
26-
- run: cp -rp coverage build
26+
- run: cp -rp coverage www/build
2727

2828
- name: Generate Contributors Images
2929
uses: jaywcjlove/github-action-contributors@main
3030
with:
3131
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
32-
output: build/CONTRIBUTORS.svg
32+
output: www/build/CONTRIBUTORS.svg
3333
avatarSize: 42
3434

3535
- name: Create Coverage Badges
3636
uses: jaywcjlove/coverage-badges-cli@main
3737
with:
38-
output: build/badges.svg
38+
output: www/build/badges.svg
3939

4040
- name: Deploy
4141
uses: peaceiris/actions-gh-pages@v3
4242
with:
4343
github_token: ${{ secrets.GITHUB_TOKEN }}
44-
publish_dir: ./build
44+
publish_dir: ./www/build
4545

4646
- name: Create Tag
4747
id: create_tag
4848
uses: jaywcjlove/create-tag-action@main
4949
with:
50-
package-path: ./package.json
50+
package-path: ./core/package.json
5151

5252
- name: Generate Changelog
5353
id: changelog

.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ ports:
33
onOpen: open-preview
44
tasks:
55
- init: npm install
6-
command: npm run hoist && npm run build && npm run start
6+
command: npm run build && npm run start

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged

.kktrc.ts

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

.lintstagedrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"*.{js,jsx,ts,tsx,html,less,md,json}": [
3+
"prettier --write"
4+
]
5+
}

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package.json
2+
coverage
3+
dist
4+
build
5+
cjs
6+
esm

.prettierrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all",
4+
"printWidth": 120,
5+
"overrides": [
6+
{
7+
"files": ".prettierrc",
8+
"options": { "parser": "json" }
9+
},
10+
{
11+
"files": ".lintstagedrc",
12+
"options": { "parser": "json" }
13+
}
14+
]
15+
}

0 commit comments

Comments
 (0)