https://github.com/bingoogolapple/cc-dxg-2d
基于 Cocos Creator 开发的智能版大西瓜小芝麻
https://github.com/bingoogolapple/cc-dxg-2d
cocos-creator
Last synced: 8 months ago
JSON representation
基于 Cocos Creator 开发的智能版大西瓜小芝麻
- Host: GitHub
- URL: https://github.com/bingoogolapple/cc-dxg-2d
- Owner: bingoogolapple
- Created: 2021-02-18T19:27:53.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-10T17:08:33.000Z (11 months ago)
- Last Synced: 2025-01-04T19:42:34.883Z (10 months ago)
- Topics: cocos-creator
- Language: TypeScript
- Homepage:
- Size: 2.54 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 合成大坑
## 自动编译并刷新
- 全局安装 nodemon
```shell
npm i -g nodemon
```
- 监听到 assets/script 目录中的 js 和 ts 文件变化后自动重新编译并刷新浏览器
```shell
nodemon --watch assets/script --ext "js ts" --exec "curl http://localhost:7456/update-db"
```
- 也可以配置到 tasks.json 中。command + shift + B,然后选择 autorefresh
```json
{
"version": "2.0.0",
"tasks": [
{
"label": "autorefresh",
"type": "shell",
"command": "nodemon",
"args": [
"--watch",
"assets/script",
"--ext",
"js ts",
"--exec",
"curl http://localhost:7456/update-db"
],
"isBackground": true,
"group": "build",
"presentation": {
"reveal": "always"
},
"problemMatcher": []
}
]
}
```
- 也可以配置到 launch.json 中
```json
{
"version": "1.4.0",
"configurations": [
{
"name": "Creator Debug: Launch Chrome",
"type": "chrome",
"request": "launch",
"url": "http://localhost:7456",
"sourceMaps": true,
"userDataDir": "${workspaceFolder}/.vscode/chrome",
"diagnosticLogging": false,
"pathMapping": {
"/preview-scripts/assets": "${workspaceFolder}/temp/quick-scripts/dst/assets",
"/": "${workspaceFolder}"
}
},
{
"name": "autorefresh",
"request": "launch",
"type": "node",
"runtimeExecutable": "nodemon",
"args": [
"--watch",
"assets/script",
"--ext",
"js ts",
"--exec",
"curl http://localhost:7456/update-db"
],
"console": "integratedTerminal",
"protocol": "inspector"
}
]
}
```
## 作者联系方式
| 个人主页 | 邮箱 |
| ------------- | ------------ |
| bingoogolapple.cn | bingoogolapple@gmail.com |
| 个人微信号 | 微信群 | 公众号 |
| ------------ | ------------ | ------------ |
|
|
|
|
| 个人 QQ 号 | QQ 群 |
| ------------ | ------------ |
|
|
|
## 打赏支持作者
如果您觉得 BGA 系列开源库或工具软件帮您节省了大量的开发时间,可以扫描下方的二维码打赏支持。您的支持将鼓励我继续创作,打赏后还可以加我微信免费开通一年 [上帝小助手浏览器扩展/插件开发平台](https://github.com/bingoogolapple/bga-god-assistant-config) 的会员服务
| 微信 | QQ | 支付宝 |
| ------------- | ------------- | ------------- |
|
|
|
|
## 作者项目推荐
* 欢迎您使用我开发的第一个独立开发软件产品 [上帝小助手浏览器扩展/插件开发平台](https://github.com/bingoogolapple/bga-god-assistant-config)