Skip to content

Commit 05df0ca

Browse files
committed
chore: 初始化 Monorepo
1 parent 8b5b516 commit 05df0ca

9 files changed

+124
-0
lines changed

Diff for: .commitlintrc.cjs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* commitlint.config
3+
* @ref http://commitlint.js.org/
4+
* @type {import('@commitlint/types').UserConfig}
5+
*/
6+
module.exports = {
7+
extends: ['@commitlint/config-conventional'],
8+
};

Diff for: .editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 2
9+
indent_style = space
10+
max_line_length = 120
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true

Diff for: .gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto
2+

Diff for: .gitignore

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Macos
2+
.DS_Store
3+
4+
# Windows
5+
$RECYCLE.BIN/
6+
Desktop.ini
7+
ehthumbs.db
8+
Thumbs.db
9+
10+
# Node
11+
node_modules
12+
13+
# local env files
14+
.env.local
15+
.env.*.local
16+
17+
# Log files
18+
/logs
19+
*.log
20+
*.log.*
21+
22+
# Editor directories and files
23+
.idea
24+
.vscode
25+
!.vscode/extensions.json
26+
.history
27+
28+
# dist and cache
29+
/dist
30+
/dist-*
31+
/dist_*
32+
.cache
33+
34+
# testing
35+
/coverage
36+

Diff for: .lintstagedrc.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"*.{cjs,json}": "prettier --write",
3+
".github/*": "prettier --write"
4+
}

Diff for: .npmrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
engine-strict=true
2+
#registry=https://registry.npmmirror.com
3+
registry=https://registry.npmjs.org
4+
link-workspace-packages=true

Diff for: .nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

Diff for: package.json

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"name": "monorepo",
3+
"version": "0.0.0",
4+
"private": true,
5+
"description": "A Vite plugin for running file system routing application. Support React/Vue3",
6+
"scripts": {
7+
"prepare": "husky install",
8+
"lint": "pnpm --filter='vite-plugin-*' run lint",
9+
"test": "pnpm --filter='vite-plugin-*' run test",
10+
"test:coverage": "pnpm --filter='vite-plugin-*' run test:coverage",
11+
"build": "pnpm --filter='vite-plugin-*' run build",
12+
"release": "lerna version --yes && git push --follow-tags"
13+
},
14+
"engines": {
15+
"node": "20"
16+
},
17+
"packageManager": "[email protected]+sha512.38dc6fba8dba35b39340b9700112c2fe1e12f10b17134715a4aa98ccf7bb035e76fd981cf0bb384dfa98f8d6af5481c2bef2f4266a24bfa20c34eb7147ce0b5e",
18+
"sideEffects": false,
19+
"workspaces": [
20+
"packages/*"
21+
],
22+
"typesVersions": {},
23+
"keywords": [
24+
"cloudcome",
25+
"ydr.me",
26+
"vite",
27+
"plugin",
28+
"vite-plugin",
29+
"next.js",
30+
"react",
31+
"vue",
32+
"file-system-router",
33+
"router",
34+
"app"
35+
],
36+
"author": "云淡然 <[email protected]> (https://ydr.me)",
37+
"maintainers": [],
38+
"homepage": "https://github.com/FrontEndDev-org/vite-plugin-react-app",
39+
"repository": {
40+
"type": "git",
41+
"url": "git+https://github.com/FrontEndDev-org/vite-plugin-react-app.git"
42+
},
43+
"license": "MIT",
44+
"devDependencies": {
45+
"@commitlint/cli": "^18.6.1",
46+
"@commitlint/config-conventional": "^18.6.3",
47+
"@commitlint/types": "^18.6.1",
48+
"@types/node": "20",
49+
"husky": "^8.0.3",
50+
"prettier": "^3.3.3"
51+
},
52+
"dependencies": {
53+
"lint-staged": "^15.2.7"
54+
}
55+
}

Diff for: pnpm-workspace.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packages:
2+
- 'packages/*'

0 commit comments

Comments
 (0)