Skip to content

Commit a02795c

Browse files
committed
chore: 主目录迁移
1 parent b725e07 commit a02795c

20 files changed

+168
-980
lines changed
File renamed without changes.
File renamed without changes.

Diff for: lint-staged.config.mjs

+4
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ export default {
66
'*.{js,mjs,cjs,ts,mts,jsx,tsx}': [
77
'eslint --fix',
88
],
9+
910
'*.vue': [
1011
'eslint --fix',
1112
],
13+
1214
'*.{css,scss}': [
1315
'stylelint --fix --allow-empty-input',
1416
],
17+
1518
'!(package-lock).json': [
1619
'prettier --write',
1720
],
21+
1822
'!(pnpm-lock).{yml,yaml}': [
1923
'prettier --write',
2024
],

Diff for: package.json

+50-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "monorepo",
2+
"name": "unplugin-react-pages",
33
"version": "0.0.0",
44
"private": true,
55
"packageManager": "[email protected]+sha512.38dc6fba8dba35b39340b9700112c2fe1e12f10b17134715a4aa98ccf7bb035e76fd981cf0bb384dfa98f8d6af5481c2bef2f4266a24bfa20c34eb7147ce0b5e",
@@ -14,51 +14,90 @@
1414
"keywords": [
1515
"cloudcome",
1616
"ydr.me",
17-
"vite",
1817
"plugin",
19-
"vite-plugin",
18+
"unplugin",
19+
"vite",
20+
"webpack",
21+
"rollup",
2022
"next.js",
2123
"react",
2224
"vue",
2325
"file-system-router",
26+
"file-system-routing",
2427
"router",
25-
"app"
28+
"react-router",
29+
"pages"
2630
],
31+
"sideEffects": false,
32+
"exports": {
33+
".": {
34+
"types": "./dist/index.d.ts",
35+
"import": "./dist/index.mjs",
36+
"require": "./dist/index.cjs"
37+
},
38+
"./package.json": "./package.json",
39+
"./client": "./client.d.ts"
40+
},
41+
"main": "./dist/index.cjs",
42+
"module": "./dist/index.mjs",
43+
"types": "./dist/index.d.ts",
44+
"typesVersions": {},
45+
"files": [
46+
"client.d.ts",
47+
"dist"
48+
],
49+
"engines": {
50+
"node": "18 || 20"
51+
},
2752
"scripts": {
2853
"prepare": "husky",
2954
"lint": "eslint .",
3055
"lint:fix": "eslint . --fix",
31-
"test": "pnpm --filter='unplugin-*' run test",
32-
"test:coverage": "pnpm --filter='unplugin-*' run test:coverage",
33-
"build": "pnpm --filter='unplugin-*' run build",
34-
"pre-commit": "pnpm --filter='unplugin-*' run lint:type"
56+
"lint:type": "tsc --noEmit",
57+
"test": "vitest run",
58+
"test:coverage": "vitest run --coverage",
59+
"build": "NODE_ENV=production vite build",
60+
"pre-commit": "echo 0",
61+
"pre-commit1": "pnpm run lint:type"
3562
},
3663
"workspaces": [
37-
"packages/*"
64+
"docs"
3865
],
3966
"maintainers": [],
4067
"dependencies": {
41-
"lint-staged": "^15.2.7"
68+
"glob": "^11.0.0",
69+
"lodash-es": "^4.17.21",
70+
"unplugin": "^1.12.0"
4271
},
4372
"devDependencies": {
4473
"@antfu/eslint-config": "^2.23.2",
4574
"@commitlint/cli": "^19.3.0",
4675
"@commitlint/config-conventional": "^19.2.2",
4776
"@commitlint/types": "^19.0.3",
77+
"@types/lodash-es": "^4.17.12",
4878
"@types/node": "20",
79+
"@types/react": "^18.3.3",
4980
"@unocss/eslint-plugin": "^0.61.6",
81+
"@vitest/coverage-v8": "^2.0.4",
5082
"eslint": "^9.8.0",
5183
"eslint-import-resolver-typescript": "^3.6.1",
5284
"eslint-plugin-import-x": "^3.1.0",
5385
"husky": "^9.1.3",
86+
"lint-staged": "^15.2.7",
5487
"prettier": "^3.3.3",
88+
"react": "^18.3.1",
89+
"react-router-dom": "^6.25.1",
5590
"stylelint": "^16.7.0",
5691
"stylelint-config-css-modules": "^4.4.0",
5792
"stylelint-config-html": "^1.1.0",
5893
"stylelint-config-recommended": "^14.0.1",
5994
"stylelint-config-recommended-scss": "^14.1.0",
6095
"stylelint-prettier": "^5.0.2",
6196
"typescript": "^5.5.4",
62-
"unocss": "^0.61.6"
97+
"unocss": "^0.61.6",
98+
"vite": "^5.3.5",
99+
"vite-plugin-dts": "^3.9.1",
100+
"vite-plugin-externalize-deps": "^0.8.0",
101+
"vitest": "^2.0.4"
63102
}
64103
}

Diff for: packages/unplugin-react-pages/package.json renamed to packages/unplugin-react-pages/package-22.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@
3939
"module": "./dist/index.mjs",
4040
"types": "./dist/index.d.ts",
4141
"typesVersions": {},
42-
"files": [
43-
"client.d.ts",
44-
"dist"
45-
],
42+
"files": ["client.d.ts", "dist"],
4643
"engines": {
4744
"node": "18 || 20"
4845
},
@@ -60,7 +57,8 @@
6057
},
6158
"dependencies": {
6259
"glob": "^11.0.0",
63-
"lodash-es": "^4.17.21"
60+
"lodash-es": "^4.17.21",
61+
"unplugin": "^1.12.0"
6462
},
6563
"devDependencies": {
6664
"@types/lodash-es": "^4.17.12",

Diff for: packages/unplugin-react-pages/src/const.ts

-3
This file was deleted.

Diff for: packages/unplugin-react-pages/src/core/FSRouter.ts

-217
This file was deleted.

0 commit comments

Comments
 (0)