diff --git a/.gitignore b/.gitignore index 0197d8a..a93371d 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,6 @@ node_modules/ #////////////////////////// # VSCode #////////////////////////// -.vscode/ #////////////////////////// # WebStorm diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..f5bda9c --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,12 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "chrome", + "request": "launch", + "name": "Cocos Creator Launch Chrome against localhost", + "url": "http://localhost:7456", + "webRoot": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..bde8348 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "json.validate.enable": false, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, + "prettier.singleQuote": true, + "prettier.semi": false, + "prettier.tabWidth": 2, + "prettier.trailingComma": "es5", + "prettier.bracketSameLine": true, + "prettier.printWidth": 150 +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..f3e72d7 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,18 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Cocos Creator compile", + "command": "curl", + "args": [ + "http://localhost:7456/asset-db/refresh" + ], + "type": "shell", + "isBackground": true, + "group": "build", + "presentation": { + "reveal": "always" + } + } + ] +} \ No newline at end of file