diff --git a/.wing/launch.json b/.wing/launch.json new file mode 100644 index 0000000..6e24493 --- /dev/null +++ b/.wing/launch.json @@ -0,0 +1,30 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Wing 内置播放器调试", + "type": "chrome", + "request": "launch", + "file": "index.html", + //"url": "http://mysite.com/index.html", + "runtimeExecutable": "${execPath}", + "sourceMaps": true, + "webRoot": "${workspaceRoot}", + "preLaunchTask":"build", + "port":5688 + }, + { + "name": "使用本机 Chrome 调试", + "type": "chrome", + "request": "launch", + "file": "index.html", + //"url": "http://mysite.com/index.html", + "runtimeExecutable": "", + "sourceMaps": true, + "webRoot": "${workspaceRoot}", + "preLaunchTask":"build", + "userDataDir":"${tmpdir}", + "port":5688 + } + ] +} \ No newline at end of file diff --git a/.wing/tasks.json b/.wing/tasks.json new file mode 100644 index 0000000..efae716 --- /dev/null +++ b/.wing/tasks.json @@ -0,0 +1,33 @@ +{ + "version": "0.1.0", + "command": "egret", + "isShellCommand": true, + "tasks": [ + { + "taskName": "build", + "showOutput": "always", + "args": [ + "build", + "-sourcemap" + ], + "problemMatcher": "$tsc" + }, + { + "taskName": "clean", + "showOutput": "always", + "args": [ + "build", + "-e" + ], + "problemMatcher": "$tsc" + }, + { + "taskName": "publish", + "showOutput": "always", + "args": [ + "publish" + ], + "problemMatcher": "$tsc" + } + ] +} \ No newline at end of file diff --git a/helloworld/.DS_Store b/helloworld/.DS_Store new file mode 100644 index 0000000..25b38d7 Binary files /dev/null and b/helloworld/.DS_Store differ diff --git a/helloworld/.wing/launch.json b/helloworld/.wing/launch.json new file mode 100644 index 0000000..536bb0b --- /dev/null +++ b/helloworld/.wing/launch.json @@ -0,0 +1,29 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Launch Wing Player", + "type": "chrome", + "request": "launch", + "file": "index.html", + "runtimeExecutable": "${execPath}", + "useBuildInServer": true, + "sourceMaps": true, + "webRoot": "${workspaceRoot}", + "preLaunchTask":"build", + "port":5317 + }, + { + "name": "Launch Chrome", + "type": "chrome", + "request": "launch", + "file": "index.html", + "useBuildInServer": true, + "sourceMaps": true, + "webRoot": "${workspaceRoot}", + "preLaunchTask":"build", + "userDataDir":"${tmpdir}", + "port":5317 + } + ] +} \ No newline at end of file diff --git a/helloworld/.wing/settings.json b/helloworld/.wing/settings.json new file mode 100644 index 0000000..372e43c --- /dev/null +++ b/helloworld/.wing/settings.json @@ -0,0 +1,6 @@ +{ + "search.exclude": { + "**/bin-debug": true, + "**/bin-release": true + } +} \ No newline at end of file diff --git a/helloworld/.wing/tasks.json b/helloworld/.wing/tasks.json new file mode 100644 index 0000000..521f0c8 --- /dev/null +++ b/helloworld/.wing/tasks.json @@ -0,0 +1,34 @@ +{ + "version": "0.1.0", + "command": "egret", + "isShellCommand": true, + "suppressTaskName": true, + "tasks": [ + { + "taskName": "build", + "showOutput": "always", + "args": [ + "build", + "-sourcemap" + ], + "problemMatcher": "$tsc" + }, + { + "taskName": "clean", + "showOutput": "always", + "args": [ + "build", + "-e" + ], + "problemMatcher": "$tsc" + }, + { + "taskName": "publish", + "showOutput": "always", + "args": [ + "publish" + ], + "problemMatcher": "$tsc" + } + ] +} \ No newline at end of file diff --git a/bin-debug/LoadingUI.js b/helloworld/bin-debug/LoadingUI.js similarity index 100% rename from bin-debug/LoadingUI.js rename to helloworld/bin-debug/LoadingUI.js diff --git a/bin-debug/LoadingUI.js.map b/helloworld/bin-debug/LoadingUI.js.map similarity index 100% rename from bin-debug/LoadingUI.js.map rename to helloworld/bin-debug/LoadingUI.js.map diff --git a/bin-debug/Main.js b/helloworld/bin-debug/Main.js similarity index 100% rename from bin-debug/Main.js rename to helloworld/bin-debug/Main.js diff --git a/bin-debug/Main.js.map b/helloworld/bin-debug/Main.js.map similarity index 100% rename from bin-debug/Main.js.map rename to helloworld/bin-debug/Main.js.map diff --git a/bin-debug/Platform.js b/helloworld/bin-debug/Platform.js similarity index 100% rename from bin-debug/Platform.js rename to helloworld/bin-debug/Platform.js diff --git a/bin-debug/Platform.js.map b/helloworld/bin-debug/Platform.js.map similarity index 100% rename from bin-debug/Platform.js.map rename to helloworld/bin-debug/Platform.js.map diff --git a/egretProperties.json b/helloworld/egretProperties.json similarity index 100% rename from egretProperties.json rename to helloworld/egretProperties.json diff --git a/favicon.ico b/helloworld/favicon.ico similarity index 100% rename from favicon.ico rename to helloworld/favicon.ico diff --git a/index.html b/helloworld/index.html similarity index 100% rename from index.html rename to helloworld/index.html diff --git a/libs/modules/assetsmanager/assetsmanager.d.ts b/helloworld/libs/modules/assetsmanager/assetsmanager.d.ts similarity index 100% rename from libs/modules/assetsmanager/assetsmanager.d.ts rename to helloworld/libs/modules/assetsmanager/assetsmanager.d.ts diff --git a/libs/modules/assetsmanager/assetsmanager.js b/helloworld/libs/modules/assetsmanager/assetsmanager.js similarity index 100% rename from libs/modules/assetsmanager/assetsmanager.js rename to helloworld/libs/modules/assetsmanager/assetsmanager.js diff --git a/libs/modules/assetsmanager/assetsmanager.min.js b/helloworld/libs/modules/assetsmanager/assetsmanager.min.js similarity index 100% rename from libs/modules/assetsmanager/assetsmanager.min.js rename to helloworld/libs/modules/assetsmanager/assetsmanager.min.js diff --git a/libs/modules/egret/egret.d.ts b/helloworld/libs/modules/egret/egret.d.ts similarity index 100% rename from libs/modules/egret/egret.d.ts rename to helloworld/libs/modules/egret/egret.d.ts diff --git a/libs/modules/egret/egret.js b/helloworld/libs/modules/egret/egret.js similarity index 100% rename from libs/modules/egret/egret.js rename to helloworld/libs/modules/egret/egret.js diff --git a/libs/modules/egret/egret.min.js b/helloworld/libs/modules/egret/egret.min.js similarity index 100% rename from libs/modules/egret/egret.min.js rename to helloworld/libs/modules/egret/egret.min.js diff --git a/libs/modules/egret/egret.web.js b/helloworld/libs/modules/egret/egret.web.js similarity index 100% rename from libs/modules/egret/egret.web.js rename to helloworld/libs/modules/egret/egret.web.js diff --git a/libs/modules/egret/egret.web.min.js b/helloworld/libs/modules/egret/egret.web.min.js similarity index 100% rename from libs/modules/egret/egret.web.min.js rename to helloworld/libs/modules/egret/egret.web.min.js diff --git a/libs/modules/game/game.d.ts b/helloworld/libs/modules/game/game.d.ts similarity index 100% rename from libs/modules/game/game.d.ts rename to helloworld/libs/modules/game/game.d.ts diff --git a/libs/modules/game/game.js b/helloworld/libs/modules/game/game.js similarity index 100% rename from libs/modules/game/game.js rename to helloworld/libs/modules/game/game.js diff --git a/libs/modules/game/game.min.js b/helloworld/libs/modules/game/game.min.js similarity index 100% rename from libs/modules/game/game.min.js rename to helloworld/libs/modules/game/game.min.js diff --git a/libs/modules/physics/physics.d.ts b/helloworld/libs/modules/physics/physics.d.ts similarity index 100% rename from libs/modules/physics/physics.d.ts rename to helloworld/libs/modules/physics/physics.d.ts diff --git a/libs/modules/physics/physics.js b/helloworld/libs/modules/physics/physics.js similarity index 100% rename from libs/modules/physics/physics.js rename to helloworld/libs/modules/physics/physics.js diff --git a/libs/modules/physics/physics.min.js b/helloworld/libs/modules/physics/physics.min.js similarity index 100% rename from libs/modules/physics/physics.min.js rename to helloworld/libs/modules/physics/physics.min.js diff --git a/libs/modules/promise/promise.js b/helloworld/libs/modules/promise/promise.js similarity index 100% rename from libs/modules/promise/promise.js rename to helloworld/libs/modules/promise/promise.js diff --git a/libs/modules/promise/promise.min.js b/helloworld/libs/modules/promise/promise.min.js similarity index 100% rename from libs/modules/promise/promise.min.js rename to helloworld/libs/modules/promise/promise.min.js diff --git a/libs/modules/tween/tween.d.ts b/helloworld/libs/modules/tween/tween.d.ts similarity index 100% rename from libs/modules/tween/tween.d.ts rename to helloworld/libs/modules/tween/tween.d.ts diff --git a/libs/modules/tween/tween.js b/helloworld/libs/modules/tween/tween.js similarity index 100% rename from libs/modules/tween/tween.js rename to helloworld/libs/modules/tween/tween.js diff --git a/libs/modules/tween/tween.min.js b/helloworld/libs/modules/tween/tween.min.js similarity index 100% rename from libs/modules/tween/tween.min.js rename to helloworld/libs/modules/tween/tween.min.js diff --git a/manifest.json b/helloworld/manifest.json similarity index 100% rename from manifest.json rename to helloworld/manifest.json diff --git a/resource/assets/bg.jpg b/helloworld/resource/assets/bg.jpg similarity index 100% rename from resource/assets/bg.jpg rename to helloworld/resource/assets/bg.jpg diff --git a/resource/assets/break.mp3 b/helloworld/resource/assets/break.mp3 similarity index 100% rename from resource/assets/break.mp3 rename to helloworld/resource/assets/break.mp3 diff --git a/resource/assets/circle.png b/helloworld/resource/assets/circle.png similarity index 100% rename from resource/assets/circle.png rename to helloworld/resource/assets/circle.png diff --git a/resource/assets/egret_icon.png b/helloworld/resource/assets/egret_icon.png similarity index 100% rename from resource/assets/egret_icon.png rename to helloworld/resource/assets/egret_icon.png diff --git a/resource/assets/hit.mp3 b/helloworld/resource/assets/hit.mp3 similarity index 100% rename from resource/assets/hit.mp3 rename to helloworld/resource/assets/hit.mp3 diff --git a/resource/assets/rect.png b/helloworld/resource/assets/rect.png similarity index 100% rename from resource/assets/rect.png rename to helloworld/resource/assets/rect.png diff --git a/resource/config/description.json b/helloworld/resource/config/description.json similarity index 100% rename from resource/config/description.json rename to helloworld/resource/config/description.json diff --git a/resource/default.res.json b/helloworld/resource/default.res.json similarity index 100% rename from resource/default.res.json rename to helloworld/resource/default.res.json diff --git a/scripts/api.d.ts b/helloworld/scripts/api.d.ts similarity index 100% rename from scripts/api.d.ts rename to helloworld/scripts/api.d.ts diff --git a/scripts/bricks/bricks.ts b/helloworld/scripts/bricks/bricks.ts similarity index 100% rename from scripts/bricks/bricks.ts rename to helloworld/scripts/bricks/bricks.ts diff --git a/scripts/config.android.ts b/helloworld/scripts/config.android.ts similarity index 100% rename from scripts/config.android.ts rename to helloworld/scripts/config.android.ts diff --git a/scripts/config.bricks.ts b/helloworld/scripts/config.bricks.ts similarity index 100% rename from scripts/config.bricks.ts rename to helloworld/scripts/config.bricks.ts diff --git a/scripts/config.ios.ts b/helloworld/scripts/config.ios.ts similarity index 100% rename from scripts/config.ios.ts rename to helloworld/scripts/config.ios.ts diff --git a/scripts/config.ts b/helloworld/scripts/config.ts similarity index 100% rename from scripts/config.ts rename to helloworld/scripts/config.ts diff --git a/scripts/config.wxgame.ts b/helloworld/scripts/config.wxgame.ts similarity index 100% rename from scripts/config.wxgame.ts rename to helloworld/scripts/config.wxgame.ts diff --git a/scripts/myplugin.ts b/helloworld/scripts/myplugin.ts similarity index 100% rename from scripts/myplugin.ts rename to helloworld/scripts/myplugin.ts diff --git a/scripts/node.d.ts b/helloworld/scripts/node.d.ts similarity index 100% rename from scripts/node.d.ts rename to helloworld/scripts/node.d.ts diff --git a/scripts/tsconfig.json b/helloworld/scripts/tsconfig.json similarity index 100% rename from scripts/tsconfig.json rename to helloworld/scripts/tsconfig.json diff --git a/scripts/wxgame/wxgame.ts b/helloworld/scripts/wxgame/wxgame.ts similarity index 100% rename from scripts/wxgame/wxgame.ts rename to helloworld/scripts/wxgame/wxgame.ts diff --git a/src/LoadingUI.ts b/helloworld/src/LoadingUI.ts similarity index 100% rename from src/LoadingUI.ts rename to helloworld/src/LoadingUI.ts diff --git a/src/Main.ts b/helloworld/src/Main.ts similarity index 100% rename from src/Main.ts rename to helloworld/src/Main.ts diff --git a/src/Platform.ts b/helloworld/src/Platform.ts similarity index 100% rename from src/Platform.ts rename to helloworld/src/Platform.ts diff --git a/template/runtime/native_loader.js b/helloworld/template/runtime/native_loader.js similarity index 100% rename from template/runtime/native_loader.js rename to helloworld/template/runtime/native_loader.js diff --git a/template/runtime/native_require.js b/helloworld/template/runtime/native_require.js similarity index 100% rename from template/runtime/native_require.js rename to helloworld/template/runtime/native_require.js diff --git a/template/runtime/runtime_loader.js b/helloworld/template/runtime/runtime_loader.js similarity index 100% rename from template/runtime/runtime_loader.js rename to helloworld/template/runtime/runtime_loader.js diff --git a/template/web/index.html b/helloworld/template/web/index.html similarity index 100% rename from template/web/index.html rename to helloworld/template/web/index.html diff --git a/tsconfig.json b/helloworld/tsconfig.json similarity index 100% rename from tsconfig.json rename to helloworld/tsconfig.json diff --git a/wingProperties.json b/helloworld/wingProperties.json similarity index 100% rename from wingProperties.json rename to helloworld/wingProperties.json