@oyolincc/create 0.0.0-dev-20260513110237
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +5 -0
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +49 -0
- package/templates/monorepo/.changeset/README.md +8 -0
- package/templates/monorepo/.changeset/config.json +11 -0
- package/templates/monorepo/.vite-hooks/pre-commit +1 -0
- package/templates/monorepo/.vscode/settings.json +22 -0
- package/templates/monorepo/_editorconfig +31 -0
- package/templates/monorepo/_gitattributes +39 -0
- package/templates/monorepo/_gitignore +22 -0
package/dist/index.d.mts
ADDED
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["export const a = 3\n"],"mappings":";AAAA,MAAa,IAAI"}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@oyolincc/create",
|
|
3
|
+
"version": "0.0.0-dev-20260513110237",
|
|
4
|
+
"description": "Development configuration for the repository",
|
|
5
|
+
"homepage": "https://github.com/oyolincc/lib#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/oyolincc/lib/issues"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"author": "Author Name <author.name@mail.com>",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/oyolincc/lib.git",
|
|
14
|
+
"directory": "libs/create"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"templates"
|
|
19
|
+
],
|
|
20
|
+
"type": "module",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": "./dist/index.mjs",
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "vp pack",
|
|
30
|
+
"dev": "vp pack --watch",
|
|
31
|
+
"test": "vp test",
|
|
32
|
+
"check": "vp check",
|
|
33
|
+
"prepublishOnly": "vp run build"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@oyolincc/dev-config": "workspace:*",
|
|
37
|
+
"@types/node": "catalog:",
|
|
38
|
+
"@typescript/native-preview": "catalog:",
|
|
39
|
+
"typescript": "catalog:",
|
|
40
|
+
"vite-plus": "catalog:"
|
|
41
|
+
},
|
|
42
|
+
"createConfig": {
|
|
43
|
+
"templates": [
|
|
44
|
+
{
|
|
45
|
+
"template": "./templates/monorepo"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Changesets
|
|
2
|
+
|
|
3
|
+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
|
|
4
|
+
with multi-package repos, or single-package repos to help you version and publish your code. You can
|
|
5
|
+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
|
|
6
|
+
|
|
7
|
+
We have a quick list of common questions to get you started engaging with this project in
|
|
8
|
+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://unpkg.com/@changesets/config@3.1.4/schema.json",
|
|
3
|
+
"changelog": "@changesets/cli/changelog",
|
|
4
|
+
"commit": false,
|
|
5
|
+
"fixed": [],
|
|
6
|
+
"linked": [],
|
|
7
|
+
"access": "restricted",
|
|
8
|
+
"baseBranch": "main",
|
|
9
|
+
"updateInternalDependencies": "patch",
|
|
10
|
+
"ignore": []
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
vp staged
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"npm.scriptRunner": "vp",
|
|
3
|
+
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
4
|
+
"[javascript]": {
|
|
5
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
6
|
+
},
|
|
7
|
+
"[javascriptreact]": {
|
|
8
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
9
|
+
},
|
|
10
|
+
"[typescript]": {
|
|
11
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
12
|
+
},
|
|
13
|
+
"[typescriptreact]": {
|
|
14
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
15
|
+
},
|
|
16
|
+
"oxc.fmt.configPath": "./vite.config.ts",
|
|
17
|
+
"editor.formatOnSave": true,
|
|
18
|
+
"editor.formatOnSaveMode": "file",
|
|
19
|
+
"editor.codeActionsOnSave": {
|
|
20
|
+
"source.fixAll.oxc": "explicit"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# EditorConfig is awesome: https://editorconfig.org
|
|
2
|
+
|
|
3
|
+
# 根配置文件,表示这是一个顶级配置文件
|
|
4
|
+
root = true
|
|
5
|
+
|
|
6
|
+
# 默认设置,适用于所有文件
|
|
7
|
+
[*]
|
|
8
|
+
charset = utf-8 # 设置字符集为 UTF-8
|
|
9
|
+
end_of_line = lf # 设置行结束符为 LF (适用于 Unix/Linux/macOS)
|
|
10
|
+
insert_final_newline = true # 文件末尾插入一个空行
|
|
11
|
+
trim_trailing_whitespace = true # 删除行尾的多余空格
|
|
12
|
+
indent_style = space # 使用空格缩进
|
|
13
|
+
indent_size = 2 # 每个缩进级别使用 2 个空格
|
|
14
|
+
tab_width = 2 # tab 键等于 2 个空格宽度
|
|
15
|
+
|
|
16
|
+
# 针对 JavaScript 文件的设置
|
|
17
|
+
[*.js]
|
|
18
|
+
indent_size = 2 # JavaScript 中使用 2 个空格缩进
|
|
19
|
+
|
|
20
|
+
# 针对 TypeScript 文件的设置
|
|
21
|
+
[*.ts]
|
|
22
|
+
indent_size = 2 # TypeScript 中使用 2 个空格缩进
|
|
23
|
+
|
|
24
|
+
# 针对 JSON 文件的设置
|
|
25
|
+
[*.json]
|
|
26
|
+
indent_style = space # 使用空格缩进
|
|
27
|
+
indent_size = 2 # 每个缩进级别使用 2 个空格
|
|
28
|
+
|
|
29
|
+
# 针对 Markdown 文件的设置
|
|
30
|
+
[*.md]
|
|
31
|
+
trim_trailing_whitespace = false # Markdown 文件末尾不删除空白
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# 自动决定文件是文本还是二进制
|
|
2
|
+
* text=auto
|
|
3
|
+
|
|
4
|
+
# 或者,更推荐的,保持工作区也是LF,避免转换麻烦,让编辑器处理显示
|
|
5
|
+
*.js text eol=lf
|
|
6
|
+
*.mjs text eol=lf
|
|
7
|
+
*.cjs text eol=lf
|
|
8
|
+
*.jsx text eol=lf
|
|
9
|
+
*.ts text eol=lf
|
|
10
|
+
*.tsx text eol=lf
|
|
11
|
+
*.html text eol=lf
|
|
12
|
+
*.css text eol=lf
|
|
13
|
+
*.scss text eol=lf
|
|
14
|
+
*.json text eol=lf
|
|
15
|
+
*.vue text eol=lf
|
|
16
|
+
*.md text eol=lf
|
|
17
|
+
*.hbs text eol=lf
|
|
18
|
+
|
|
19
|
+
# 对于必须保持LF的文件 (如shell脚本)
|
|
20
|
+
*.sh text eol=lf
|
|
21
|
+
|
|
22
|
+
# 对于必须保持CRLF的文件 (如windows批处理脚本)
|
|
23
|
+
*.bat text eol=crlf
|
|
24
|
+
|
|
25
|
+
# 对于二进制文件,明确指定,防止Git错误处理
|
|
26
|
+
*.png binary
|
|
27
|
+
*.jpg binary
|
|
28
|
+
*.jpeg binary
|
|
29
|
+
*.gif binary
|
|
30
|
+
*.ico binary
|
|
31
|
+
*.svg binary
|
|
32
|
+
*.woff binary
|
|
33
|
+
*.woff2 binary
|
|
34
|
+
*.eot binary
|
|
35
|
+
*.ttf binary
|
|
36
|
+
*.otf binary
|
|
37
|
+
*.pdf binary
|
|
38
|
+
*.zip binary
|
|
39
|
+
*.gz binary
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Logs
|
|
2
|
+
logs
|
|
3
|
+
*.log
|
|
4
|
+
npm-debug.log*
|
|
5
|
+
yarn-debug.log*
|
|
6
|
+
yarn-error.log*
|
|
7
|
+
pnpm-debug.log*
|
|
8
|
+
lerna-debug.log*
|
|
9
|
+
|
|
10
|
+
node_modules
|
|
11
|
+
dist
|
|
12
|
+
dist-ssr
|
|
13
|
+
*.local
|
|
14
|
+
|
|
15
|
+
# Editor directories and files
|
|
16
|
+
.idea
|
|
17
|
+
.DS_Store
|
|
18
|
+
*.suo
|
|
19
|
+
*.ntvs*
|
|
20
|
+
*.njsproj
|
|
21
|
+
*.sln
|
|
22
|
+
*.sw?
|