Skip to content

Commit 57c24cc

Browse files
authored
Initial commit
0 parents  commit 57c24cc

22 files changed

+4075
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[*]
2+
charset=utf-8
3+
end_of_line=lf
4+
trim_trailing_whitespace=true
5+
insert_final_newline=true
6+
indent_style=space
7+
indent_size=4
8+
9+
[{.babelrc,.stylelintrc,.eslintrc,jest.config,*.bowerrc,*.jsb3,*.jsb2,*.json,*.yaml,*.yml}]
10+
indent_style=space
11+
indent_size=2
12+
13+
[{*.js,*.vue,*.ts,*.cjs,.swcrc}]
14+
indent_style=space
15+
indent_size=2

.github/renovate.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"extends": [
3+
"schedule:monthly",
4+
":dependencyDashboard",
5+
"config:recommended"
6+
],
7+
"prHourlyLimit": 0,
8+
"lockFileMaintenance": {
9+
"extends": [
10+
"schedule:weekly"
11+
],
12+
"automerge": true,
13+
"enabled": true
14+
},
15+
"automerge": true,
16+
"postUpdateOptions": [
17+
"npmDedupe"
18+
],
19+
"separateMajorMinor": false,
20+
"updateNotScheduled": false,
21+
"rangeStrategy": "bump"
22+
}

.github/workflows/ci.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- gh-pages
7+
- "renovate/**"
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Setup node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: "lts/*"
19+
cache: "npm"
20+
21+
- run: npm ci
22+
- run: npm run build
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# this workflow build from master branch and upload dist directory to "preview-dist" branch
2+
# remove this if you don't need it.
3+
4+
name: deploy-preview
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: "lts/*"
21+
cache: "npm"
22+
23+
- run: npm ci
24+
- run: npm run build
25+
26+
- name: Deploy
27+
uses: peaceiris/actions-gh-pages@v4
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./dist
31+
publish_branch: preview-dist
32+
commit_message: deploy ${{ github.ref }}
33+
enable_jekyll: true
34+
user_name: github-actions[bot]
35+
user_email: github-actions[bot]@users.noreply.github.com

.github/workflows/deploy.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# build latest v* tag and upload dist diectory to gh-pages branch.
2+
name: deploy
3+
4+
on:
5+
push:
6+
branches:
7+
- v*
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Setup node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: "lts/*"
19+
cache: "npm"
20+
21+
- run: npm ci
22+
- run: npm run build
23+
24+
- name: Deploy
25+
uses: peaceiris/actions-gh-pages@v4
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: ./dist
29+
enable_jekyll: true
30+
commit_message: deploy ${{ github.ref }}
31+
user_name: github-actions[bot]
32+
user_email: github-actions[bot]@users.noreply.github.com

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
.idea
3+
.vscode
4+
dist

.husky/pre-commit

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

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/

LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2+
Version 2, December 2004
3+
4+
Copyright (C) 2020-2022 Trim21 <trim21.me@gmail.com>
5+
6+
Everyone is permitted to copy and distribute verbatim or modified
7+
copies of this license document, and changing it is allowed as long
8+
as the name is changed.
9+
10+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12+
13+
0. You just DO WHAT THE FUCK YOU WANT TO.

config/empty.cjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* This is an empty javascript file for webpack to generate a development UserScript without real code.
3+
* So we could make UserScript manager load script file from local file path.
4+
* See webpack.config.dev.js for more details.
5+
*/

0 commit comments

Comments
 (0)