Skip to content

Commit cb928c4

Browse files
chore: first commit
0 parents  commit cb928c4

28 files changed

+6622
-0
lines changed

.commitlintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"]
3+
}

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
groups:
12+
actions:
13+
patterns:
14+
- "*"

.github/workflows/deploy.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy to GitHub Pages
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
permissions:
8+
contents: write # for checkout
9+
10+
jobs:
11+
deploy:
12+
name: Deploy
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout 🛎
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Setup Node.js 🚀
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
25+
- name: Install dependencies 📦
26+
run: npm install
27+
28+
- name: Build 🏗
29+
run: npm run build
30+
31+
- name: Deploy 🚀
32+
uses: JamesIves/github-pages-deploy-action@v4
33+
with:
34+
branch: gh-pages
35+
commit-message: 'chore(deploy): deploy to GitHub Pages'
36+
folder: dist

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# MacOS files
2+
.DS_Store
3+
4+
# packages
5+
node_modules
6+
7+
# build files
8+
dist
9+
10+
# Test artifacts
11+
coverage
12+
13+
# Environment variables
14+
.env
15+
.env.*
16+
17+
# Logs
18+
*buildinfo
19+
20+
# Configuration
21+
.npmrc
22+
.vscode

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no-install commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run pre-commit

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.github
2+
CHANGELOG.md
3+
README.md
4+
dist

.prettierrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 120,
3+
"semi": false,
4+
"singleQuote": true,
5+
"tabWidth": 2,
6+
"trailingComma": "none"
7+
}

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2024 Zong-Wei Lu
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

eslint.config.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import eslint from '@eslint/js'
2+
import { defineConfigWithVueTs } from '@vue/eslint-config-typescript'
3+
import pluginVue from 'eslint-plugin-vue'
4+
import tseslint, { parser } from 'typescript-eslint'
5+
import vueParser from 'vue-eslint-parser'
6+
7+
export default [
8+
{ ignores: ['dist'] },
9+
eslint.configs.recommended,
10+
...defineConfigWithVueTs(),
11+
...pluginVue.configs['flat/recommended'],
12+
...tseslint.config(...tseslint.configs.recommended, {
13+
languageOptions: {
14+
parser: vueParser,
15+
parserOptions: { parser }
16+
},
17+
rules: {
18+
'no-undef': 'off',
19+
'vue/multi-word-component-names': 'off'
20+
}
21+
})
22+
]

0 commit comments

Comments
 (0)