https://github.com/codegetters/mini
mini something like vue、react...
https://github.com/codegetters/mini
Last synced: 9 months ago
JSON representation
mini something like vue、react...
- Host: GitHub
- URL: https://github.com/codegetters/mini
- Owner: CodeGetters
- License: mit
- Created: 2024-09-15T04:55:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-29T02:24:30.000Z (over 1 year ago)
- Last Synced: 2025-03-10T19:30:27.236Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 13.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mini
- [ ] vue3
- [x] base
- [x] reactive
- [ ] runtime-dom
- [ ] runtime-core
- [ ] react
## 运行命令后将自动进入 debug mode
来源于:.vscode/launch.json (同 vue-core)
```json
{
"version": "0.0.1",
"configurations": [
{
"type": "node", // 调试器类型
"request": "launch", // 调试器启动方式(launch:启动一个新的调试会话)
"name": "Auto Debug --same as vue-core", // 调试器名称(在调试器可见)
"autoAttachChildProcesses": true, // 自动附加到子进程(调试由主进程生成的子进程)
"skipFiles": ["/**", "**/node_modules/**"], // 指定调试时需要跳过的文件(node内部文件、node_modules)
"args": ["run", "${relativeFile}"], // 传递给程序的命令行参数
"smartStep": true, // 启动智能模式---跳过没有调试信息的代码
"console": "integratedTerminal" // 指定调试器的控制台---终端
}
]
}
```
setting.json
```json
{
// Use the project's typescript version
"typescript.tsdk": "node_modules/typescript/lib", // 指定 TS SDK 路径
"cSpell.enabledLanguageIds": ["markdown", "plaintext", "text", "yml"], // 启动 cSpell 检查
// Use prettier to format typescript, javascript and JSON files
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
```
```bash
# example for dev or build
pnpm dev
pnpm dev reactivity -p vue3
pnpm dev reactivity -p vue3 -f esm
pnpm build
pnpm build vue/base vue3/reactivity
pnpm build vue/base vue3/reactivity -f esm-bundler
```