Skip to content

Commit 25bfa4a

Browse files
authored
Merge pull request #91 from mates-inc/modernize
refactor: modernize
2 parents 8287312 + ca6aaeb commit 25bfa4a

62 files changed

Lines changed: 2326 additions & 3275 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -9,45 +9,17 @@ jobs:
99
test:
1010
runs-on: ubuntu-latest
1111

12-
strategy:
13-
matrix:
14-
node-version: [22.15.0]
15-
1612
steps:
1713
- uses: actions/checkout@v4
1814

19-
- name: Setup Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v4
21-
with:
22-
node-version: ${{ matrix.node-version }}
23-
24-
- name: Setup pnpm
25-
uses: pnpm/action-setup@v3
26-
with:
27-
version: 10
28-
run_install: false
29-
30-
- name: Get pnpm store directory
31-
shell: bash
32-
run: |
33-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
34-
35-
- name: Cache pnpm dependencies
36-
uses: actions/cache@v4
15+
- name: Setup Vite+
16+
uses: voidzero-dev/setup-vp@v1
3717
with:
38-
path: ${{ env.STORE_PATH }}
39-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
40-
restore-keys: |
41-
${{ runner.os }}-pnpm-store-
18+
node-version: "24.14.0"
19+
cache: true
4220

4321
- name: Install dependencies
44-
run: pnpm install
45-
46-
- name: Lint
47-
run: pnpm run lint
48-
49-
- name: Build
50-
run: pnpm run build
22+
run: vp install --frozen-lockfile
5123

52-
- name: Run example tests
53-
run: pnpm run test
24+
- name: Run CI task
25+
run: vp run ci

.node-version

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

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["VoidZero.vite-plus-extension-pack"]
3+
}

.vscode/settings.json

Lines changed: 10 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3,57 +3,19 @@
33
"citty",
44
"defu",
55
"nuxi",
6+
"oxfmt",
7+
"oxlint",
68
"postbuild",
79
"schemasset",
8-
"tsdown"
10+
"tsgo",
11+
"viteplus"
912
],
10-
// Disable the default formatter, use eslint instead
11-
"prettier.enable": false,
12-
"editor.formatOnSave": false,
13-
14-
// Auto fix
13+
"editor.defaultFormatter": "oxc.oxc-vscode",
14+
"oxc.fmt.configPath": "./vite.config.ts",
15+
"editor.formatOnSave": true,
16+
"editor.formatOnSaveMode": "file",
1517
"editor.codeActionsOnSave": {
16-
"source.fixAll.eslint": "explicit",
18+
"source.fixAll.oxc": "explicit",
1719
"source.organizeImports": "never"
18-
},
19-
20-
// Silent the stylistic rules in you IDE, but still auto fix them
21-
"eslint.rules.customizations": [
22-
{ "rule": "style/*", "severity": "off", "fixable": true },
23-
{ "rule": "format/*", "severity": "off", "fixable": true },
24-
{ "rule": "*-indent", "severity": "off", "fixable": true },
25-
{ "rule": "*-spacing", "severity": "off", "fixable": true },
26-
{ "rule": "*-spaces", "severity": "off", "fixable": true },
27-
{ "rule": "*-order", "severity": "off", "fixable": true },
28-
{ "rule": "*-dangle", "severity": "off", "fixable": true },
29-
{ "rule": "*-newline", "severity": "off", "fixable": true },
30-
{ "rule": "*quotes", "severity": "off", "fixable": true },
31-
{ "rule": "*semi", "severity": "off", "fixable": true }
32-
],
33-
34-
// Enable eslint for all supported languages
35-
"eslint.validate": [
36-
"javascript",
37-
"javascriptreact",
38-
"typescript",
39-
"typescriptreact",
40-
"vue",
41-
"html",
42-
"markdown",
43-
"json",
44-
"json5",
45-
"jsonc",
46-
"yaml",
47-
"toml",
48-
"xml",
49-
"gql",
50-
"graphql",
51-
"astro",
52-
"svelte",
53-
"css",
54-
"less",
55-
"scss",
56-
"pcss",
57-
"postcss"
58-
]
20+
}
5921
}

CHANGELOG.md

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

0 commit comments

Comments
 (0)