Skip to content

Commit

Permalink
chore: configure formatting tool and MIT License
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo-Messi committed Aug 4, 2024
1 parent a74816c commit 8cf6533
Show file tree
Hide file tree
Showing 20 changed files with 486 additions and 189 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github: Theo-Messi
github: Theo-Messi
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ updates:
directory: '/' # Location of package manifests
schedule:
interval: 'weekly'
day: "sunday"
day: 'sunday'
timezone: 'Asia/Shanghai'
time: '09:00'
16 changes: 8 additions & 8 deletions .github/workflows/Deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ jobs:
with:
version: 9
run_install: false

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: test/.vitepress/dist
cname: tmfe.theojs.cn

- name: Set DATE environment variable
run: echo "DATE=$(TZ='Asia/Shanghai' date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV

- name: Translate job status to Chinese
id: translate-status
run: |
Expand All @@ -50,9 +50,9 @@ jobs:
*) translated_status="未知" ;;
esac
echo "translated_status=$translated_status" >> $GITHUB_ENV
- name: Notify job status
if: always() # 确保这一步始终运行,不管之前的步骤是否成功
if: always() # 确保这一步始终运行,不管之前的步骤是否成功
run: |
curl -X "POST" "${{ secrets.BARK_KEY }}" \
-H 'Content-Type: application/json; charset=utf-8' \
Expand All @@ -64,4 +64,4 @@ jobs:
"sound": "multiwayinvitation.caf",
"icon": "https://cdn.pixabay.com/photo/2022/01/30/13/33/github-6980894_1280.png",
"group": "Github Actions"
}'
}'
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist
pnpm-lock.yaml
cache
temp
.temp
21 changes: 21 additions & 0 deletions License
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Theo-Messi

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:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

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.
27 changes: 23 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,43 @@
"release": "bumpp && pnpm -r publish",
"dev": "vitepress dev test",
"build": "vitepress build test",
"preview": "vitepress preview test"
"preview": "vitepress preview test",
"prettier": "prettier . --write",
"check": "prettier . --check"
},
"devDependencies": {
"@types/node": "^22.1.0",
"@vitejs/plugin-vue": "^5.1.2",
"npm-run-all": "^4.1.5",
"sass": "^1.77.8",
"prettier": "3.3.3",
"typescript": "^5.5.4",
"vite": "^5.3.5",
"vitepress": "^1.3.1",
"vue": "^3.4.35"
"lint-staged": "^15.2.8",
"simple-git-hooks": "^2.11.1"
},
"files": [
"scss/",
"vue/"
],
"dependencies": {
"@fortawesome/fontawesome-free": "^6.6.0",
"bumpp": "^9.4.2"
"bumpp": "^9.4.2",
"vue": "^3.4.35",
"sass": "^1.77.8"
},
"prettier": {
"semi": false,
"singleQuote": true,
"printWidth": 80,
"trailingComma": "none"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": [
"prettier --write --ignore-unknown"
]
}
}
Loading

0 comments on commit 8cf6533

Please sign in to comment.