Skip to content

Commit

Permalink
feat: 更新程序
Browse files Browse the repository at this point in the history
  • Loading branch information
dxhuii committed Feb 16, 2025
1 parent d70b491 commit 08fac6d
Show file tree
Hide file tree
Showing 55 changed files with 5,501 additions and 10,720 deletions.
63 changes: 29 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,55 +4,50 @@ on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: 🔀 Checkout Git Source
uses: actions/checkout@v4

- name: 📦 Install pnpm
uses: pnpm/action-setup@v2

- name: 🚀 Use Node.js lts/*
uses: actions/setup-node@v4
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
run_install: false
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- name: 📦 Install Dependencies
run: pnpm i
- run: pnpm i -g @antfu/ni
- run: nci
- run: nr lint
- run: nr typecheck

- name: ✅ Lint
run: pnpm lint
test:
runs-on: ${{ matrix.os }}

buildWeb:
runs-on: ubuntu-latest
strategy:
matrix:
node: [lts/*]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false

steps:
- name: 🔀 Checkout Git Source
uses: actions/checkout@v4

- name: 📦 Install pnpm
uses: pnpm/action-setup@v2

- name: 🚀 Use Node.js lts/*
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
run_install: false
- name: Set node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: 📦 Install Dependencies
run: pnpm i

- name: 🚧 Set up project
run: pnpm generate

- name: 🚧 Build
run: pnpm build
node-version: ${{ matrix.node }}
cache: pnpm

- name: 💪 Typecheck
run: pnpm typecheck
- run: pnpm i -g @antfu/ni
- run: nci
- run: nr build
- run: nr test
25 changes: 14 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Release

permissions:
id-token: write
contents: write

on:
Expand All @@ -11,22 +12,24 @@ on:
jobs:
release:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [lts/*]
steps:
- name: 🔀 Checkout Git Source
uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 🚀 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: https://registry.npmjs.org/

- name: 🔖 Release
run: npx changelogithub
- run: pnpm dlx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

# # Uncomment the following lines to publish to npm on CI
#
# - run: pnpm install
# - run: pnpm publish -r --access public
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# NPM_CONFIG_PROVENANCE: true
15 changes: 11 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
node_modules
.cache
.DS_Store
.idea
*.log
*.tgz
coverage
dist
.output
.nuxt
.env
lib-cov
logs
node_modules
temp
cache
.eslintcache
4 changes: 2 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
ignore-workspace-root-check=true
shell-emulator=true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.17.0
v22.14.0
10 changes: 0 additions & 10 deletions .vscode/extensions.json

This file was deleted.

6 changes: 1 addition & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
{
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,

// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},

// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "format/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
Expand Down
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025-PRESENT Dxh.me <https://github.com/dxhuii>

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.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 内容清单
# cms

- 收集一些好用的网站和工具
文档中心

## 使用 `vitesse-nuxt3` 搭建
## License

- [vitesse-nuxt3](https://github.com/antfu/vitesse-nuxt3)
[MIT](./LICENSE) License © [Dxh.me](https://github.com/dxhuii)
13 changes: 0 additions & 13 deletions app.vue

This file was deleted.

13 changes: 0 additions & 13 deletions components/DarkToggle.vue

This file was deleted.

13 changes: 0 additions & 13 deletions components/Footer.vue

This file was deleted.

27 changes: 0 additions & 27 deletions composables/index.ts

This file was deleted.

34 changes: 0 additions & 34 deletions composables/user.ts

This file was deleted.

Loading

0 comments on commit 08fac6d

Please sign in to comment.