Skip to content

Commit 8e6ee00

Browse files
authored
refactor: rattail + vite+ (#1956)
* feat: wip * feat: wip * chore: remove @varlet/icons from devDependencies and update tsconfig for varlet-cli * chore: update Node.js version to 22.x in CI and deployment workflows * chore: update pnpm workspace and add Vite config files for multiple packages - Removed tsup from the pnpm workspace catalog. - Added Vite configuration files for the following packages: - varlet-import-resolver - varlet-preset-tailwindcss - varlet-preset-unocss - varlet-shared - varlet-touch-emulator (with specific entry and global name) - varlet-use - varlet-vite-plugins (with dts option enabled) * chore: update dependencies and clean patterns in Vite config - Bump TypeScript to 5.6.3 and update various package versions in pnpm-workspace.yaml. - Change Vite and Vitest to use scoped packages. - Update '@types/node' and '@vitest/coverage-istanbul' to newer versions. - Enhance clean patterns in Vite config to include additional directories and files for better cleanup. * chore: remove vitest from dependencies in varlet-cli package.json and update pnpm-lock.yaml * feat: wip * feat: wip * feat: migrate configuration to Vite and update project settings * feat: update gen command to handle tsconfig.json renaming and remove obsolete files * feat: update documentation and configuration for Varlet component library toolchain * feat: update documentation and remove obsolete files in Varlet CLI toolchain
1 parent c53f0dc commit 8e6ee00

374 files changed

Lines changed: 6633 additions & 6466 deletions

File tree

Some content is hidden

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

.editorconfig

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

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- name: Install pnpm
1313
run: npm i -g --force corepack && corepack enable
1414

15-
- name: Set node version to 20
15+
- name: Set node version to 22
1616
uses: actions/setup-node@v3
1717
with:
18-
node-version: '20.19.5'
18+
node-version: '22.x'
1919
cache: 'pnpm'
2020

2121
- name: Install dependencies

.github/workflows/deploy-playground.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
- name: Install pnpm
1515
run: npm i -g --force corepack && corepack enable
1616

17-
- name: Set node version to 20
17+
- name: Set node version to 22
1818
uses: actions/setup-node@v3
1919
with:
20-
node-version: '20.19.5'
20+
node-version: '22.x'
2121
cache: 'pnpm'
2222

2323
- name: Install dependencies

.github/workflows/deploy-site.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
- name: Install pnpm
1515
run: npm i -g --force corepack && corepack enable
1616

17-
- name: Set node version to 20
17+
- name: Set node version to 22
1818
uses: actions/setup-node@v3
1919
with:
20-
node-version: '20.19.5'
20+
node-version: '22.x'
2121
cache: 'pnpm'
2222

2323
- name: Install dependencies

.github/workflows/pkg-pr-new.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set node
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: lts/*
26+
node-version: 22.x
2727
cache: pnpm
2828

2929
- name: Bootstrap

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ node_modules
22

33
.varlet
44
.idea
5-
.vscode
65
.history
76
*.log
87
.DS_Store
@@ -59,4 +58,6 @@ packages/varlet-preset-tailwindcss/lib
5958

6059
packages/varlet-touch-emulator/iife.js
6160

62-
.eslintcache
61+
.eslintcache
62+
63+
.vite-hooks

.prettierignore

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

.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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"eslint.enable": false,
3+
"prettier.enable": false,
4+
"editor.defaultFormatter": "oxc.oxc-vscode"
5+
}

MIGRATION_RATTAIL2_VITEPLUS.md

Lines changed: 940 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)