@balancy/cocos-creator
Advanced tools
Comparing version 1.0.0-rc.6 to 1.0.0-rc.7
@@ -8,5 +8,5 @@ "use strict"; | ||
const wasmName = 'Balancy.wasm'; | ||
const filename = (0, path_1.resolve)(__dirname, '..', 'node_modules', '@balancy/wasm/dist', wasmName); | ||
const filename = (0, path_1.resolve)(Editor.Project.path, 'node_modules', '@balancy/wasm/dist', wasmName); | ||
(0, fs_1.copyFileSync)(filename, (0, path_1.resolve)(Editor.Project.path, options.buildPath.replace('project://', ''), options.outputName, wasmName)); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9va3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaG9va3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFJQSxvQ0FTQztBQVpELCtCQUFvQztBQUNwQywyQkFBa0M7QUFFM0IsS0FBSyxVQUFVLFlBQVksQ0FBQyxPQUF5QjtJQUMxRCxNQUFNLFFBQVEsR0FBRyxjQUFjLENBQUM7SUFDaEMsTUFBTSxRQUFRLEdBQUcsSUFBQSxjQUFPLEVBQUMsU0FBUyxFQUFFLElBQUksRUFBRSxjQUFjLEVBQUUsb0JBQW9CLEVBQUUsUUFBUSxDQUFDLENBQUM7SUFDMUYsSUFBQSxpQkFBWSxFQUFDLFFBQVEsRUFBRSxJQUFBLGNBQU8sRUFDNUIsTUFBTSxDQUFDLE9BQU8sQ0FBQyxJQUFJLEVBQ25CLE9BQU8sQ0FBQyxTQUFTLENBQUMsT0FBTyxDQUFDLFlBQVksRUFBRSxFQUFFLENBQUMsRUFDM0MsT0FBTyxDQUFDLFVBQVUsRUFDbEIsUUFBUSxDQUNULENBQUMsQ0FBQztBQUNMLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJQnVpbGRUYXNrT3B0aW9uIH0gZnJvbSAnQGNvY29zL2NyZWF0b3ItdHlwZXMvZWRpdG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UEsaUJBQVksRUFBQyxRQUFRLEVBQUUsSUFBQSxjQUFPLEVBQzVCLE1BQU0sQ0FBQyxPQUFPLENBQUMsSUFBSSxFQUNuQixPQUFPLENBQUMsU0FBUyxDQUFDLE9BQU8sQ0FBQyxZQUFZLEVBQUUsRUFBRSxDQUFDLEVBQzNDLE9BQU8sQ0FBQyxVQUFVLEVBQ2xCLFFBQVEsQ0FDVCxDQUFDLENBQUM7QUFDTCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSUJ1aWxkVGFza09wdGlvbiB9IGZyb20gJ0Bjb2Nvcy9jcmVhdG9yLXR5cGVzL2VkaXRvci9wYWNrYWdlcy9idWlsZGVyL0B0eXBlcyc7XG5pbXBvcnQgeyByZXNvbHZlLCBzZXAgfSBmcm9tICdwYXRoJztcbmltcG9ydCB7IGNvcHlGaWxlU3luYyB9IGZyb20gJ2ZzJztcblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIG9uQWZ0ZXJCdWlsZChvcHRpb25zOiBJQnVpbGRUYXNrT3B0aW9uKSB7XG4gIGNvbnN0IHdhc21OYW1lID0gJ0JhbGFuY3kud2FzbSc7XG4gIGNvbnN0IGZpbGVuYW1lID0gcmVzb2x2ZShFZGl0b3IuUHJvamVjdC5wYXRoLCAnbm9kZV9tb2R1bGVzJywgJ0BiYWxhbmN5L3dhc20vZGlzdCcsIHdhc21OYW1lKTtcbiAgY29weUZpbGVTeW5jKGZpbGVuYW1lLCByZXNvbHZlKFxuICAgIEVkaXRvci5Qcm9qZWN0LnBhdGgsXG4gICAgb3B0aW9ucy5idWlsZFBhdGgucmVwbGFjZSgncHJvamVjdDovLycsICcnKSxcbiAgICBvcHRpb25zLm91dHB1dE5hbWUsXG4gICAgd2FzbU5hbWUsXG4gICkpO1xufVxuIl19 |
@@ -48,2 +48,9 @@ "use strict"; | ||
}, | ||
async game(game) { | ||
var _a, _b; | ||
if (this.$.app) { | ||
const { err, out } = await balancy('list'); | ||
this.$.app.innerHTML = ((_b = (_a = out.list) === null || _a === void 0 ? void 0 : _a.find(({ id }) => id === game)) === null || _b === void 0 ? void 0 : _b.name) || 'Smth wrong'; | ||
} | ||
}, | ||
loginForm() { | ||
@@ -77,3 +84,8 @@ const form = document.createElement('form'); | ||
const { err, out } = await balancy('generate', { game, path: (0, path_1.resolve)(Editor.Project.path, 'balancy') }); | ||
console.log({ err, out }); | ||
if (err) { | ||
console.error(err); | ||
} | ||
else { | ||
this.game(game).then(); | ||
} | ||
}, | ||
@@ -121,2 +133,2 @@ async list() { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFuZWxzL2RlZmF1bHQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx1Q0FBd0M7QUFDeEMsK0JBQXFDO0FBQ3JDLGlEQUFxQztBQUVyQyxLQUFLLFVBQVUsT0FBTyxDQUFDLE9BQXNDLEVBQUUsUUFBZ0MsRUFBRTtJQUM3RixLQUFLLENBQUMsUUFBUSxDQUFDLEdBQUcsTUFBTSxDQUFDO0lBQ3pCLE1BQU0sR0FBRyxHQUFHLE1BQU0sQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLHdCQUF3QixDQUFDLENBQUM7SUFDN0QsTUFBTSxDQUFDLEdBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxNQUFNLEVBQUUsR0FBRyxFQUFFLEVBQUU7UUFDaEQsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLEdBQUcsSUFBSSxLQUFLLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxDQUFDO1FBQ3RDLE9BQU8sTUFBTSxDQUFDO0lBQ2xCLENBQUMsRUFBRSxFQUFjLENBQUMsQ0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ICAgICAgICAgICAgYDtcblxuICAgICAgICAgICAgZm9ybS5vbnN1Ym1pdCA9IGFzeW5jIChlOiBTdWJtaXRFdmVudCkgPT4ge1xuICAgICAgICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICBjb25zdCBmb3JtRGF0YSA9IG5ldyBGb3JtRGF0YSh0aGlzLiQuYXBwIS5nZXRFbGVtZW50c0J5VGFnTmFtZSgnZm9ybScpLml0ZW0oMCkhKTtcbiAgICAgICAgICAgICAgICBjb25zdCB7ZW1haWwsIHBhc3N3b3JkfSA9IE9iamVjdC5mcm9tRW50cmllcyhmb3JtRGF0YSk7XG5cbiAgICAgICAgICAgICAgICBjb25zdCB7b3V0LCBlcnIgfSA9IGF3YWl0IGJhbGFuY3koJ2xvZ2luJywge2VtYWlsOiBlbWFpbC50b1N0cmluZygpLCBwYXNzd29yZDogcGFzc3dvcmQudG9TdHJpbmcoKX0pO1xuICAgICAgICAgICAgICAgIGlmIChlcnIgJiYgZXJyLmNvZGUgPT09IDQwMykge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBhbnN3ZXIgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdkaXYnKTtcbiAgICAgICAgICAgICAgICAgICAgYW5zd2VyLmlubmVySFRNTCA9IGVyci50aXRsZTtcbiAgICAgICAgICAgICAgICAgICAgZm9ybS5wcmVwZW5kKGFuc3dlcik7XG4gICAgICAgICAgICAgICAgfSBlbHNlIGlmIChvdXQpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coJ3N0ZG91dCcsIG91dCk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMubGlzdCgpLnRoZW4oKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB0aGlzLiQuYXBwIS5pbm5lckhUTUwgPSAnJztcbiAgICAgICAgICAgIHRoaXMuJC5hcHAhLmFwcGVuZENoaWxkKGZvcm0pO1xuICAgICAgICB9LFxuICAgICAgICBhc3luYyBnZW5lcmF0ZShnYW1lOiBzdHJpbmcpIHtcbiAgICAgICAgICAgIHRoaXMubG9hZGluZygpO1xuICAgICAgICAgICAgY29uc3Qge2Vyciwgb3V0fSA9IGF3YWl0IGJhbGFuY3koJ2dlbmVyYXRlJywgeyBnYW1lLCBwYXRoOiByZXNvbHZlKEVkaXRvci5Qcm9qZWN0LnBhdGgsICdiYWxhbmN5JykgfSk7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyh7ZXJyLCBvdXR9KTtcbiAgICAgICAgfSxcbiAgICAgICAgYXN5bmMgbGlzdCgpIHtcbiAgICAgICAgICAgIGNvbnN0IHtlcnIsIG91dH0gPSBhd2FpdCBiYWxhbmN5KCdsaXN0Jyk7XG4gICAgICAgICAgICBpZiAoZXJyICYmIGVyci5jb2RlID09PSA0MDMpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmxvZ2luRm9ybSgpO1xuICAgICAgICAgICAgfSBlbHNlIGlmIChvdXQpIHtcbiAgICAgICAgICAgICAgICBjb25zdCBmb3JtID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnZm9ybScpO1xuICAgICAgICAgICAgICAgIGNvbnN0IGxpc3QgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdzZWxlY3QnKTtcbiAgICAgICAgICAgICAgICBsaXN0Lm5hbWUgPSAnaWQnO1xuICAgICAgICAgICAgICAgIG91dC5saXN0Py5mb3JFYWNoKCh7aWQsIG5hbWV9KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgY29uc3Qgb3B0aW9uID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnb3B0aW9uJyk7XG4gICAgICAgICAgICAgICAgICAgb3B0aW9uLnRleHQgPSBuYW1lO1xuICAgICAgICAgICAgICAgICAgIG9wdGlvbi52YWx1ZSA9IGlkO1xuICAgICAgICAgICAgICAgICAgIGxpc3QuYXBwZW5kQ2hpbGQob3B0aW9uKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB0aGlzLiQuYXBwIS5pbm5lckhUTUwgPSAnJztcbiAgICAgICAgICAgICAgICBmb3JtLmFwcGVuZENoaWxkKGxpc3QpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHN1Ym1pdCA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2lucHV0Jyk7XG4gICAgICAgICAgICAgICAgc3VibWl0LnR5cGUgPSAnc3VibWl0JztcbiAgICAgICAgICAgICAgICBzdWJtaXQudmFsdWUgPSAnR2VuZXJhdGUnO1xuICAgICAgICAgICAgICAgIGZvcm0uYXBwZW5kQ2hpbGQoc3VibWl0KTtcbiAgICAgICAgICAgICAgICB0aGlzLiQuYXBwIS5hcHBlbmRDaGlsZChmb3JtKTtcbiAgICAgICAgICAgICAgICBmb3JtLm9uc3VibWl0ID0gYXN5bmMgKGU6IFN1Ym1pdEV2ZW50KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgZm9ybURhdGEgPSBuZXcgRm9ybURhdGEoZm9ybSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IHsgaWQgfSA9IE9iamVjdC5mcm9tRW50cmllcyhmb3JtRGF0YSk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZ2VuZXJhdGUoaWQudG9TdHJpbmcoKSkudGhlbigpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0sXG4gICAgcmVhZHkoKSB7XG5cbiAgICAgICAgaWYgKHRoaXMuJC5hcHApIHtcbiAgICAgICAgICAgIHRoaXMuJC5hcHAuaW5uZXJIVE1MID0gJ0xvYWRpbmcnO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5saXN0KCkudGhlbigpO1xuICAgIH0sXG4gICAgYmVmb3JlQ2xvc2UoKSB7IH0sXG4gICAgY2xvc2UoKS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U3RyaW5nKCksIHBhc3N3b3JkOiBwYXNzd29yZC50b1N0cmluZygpfSk7XG4gICAgICAgICAgICAgICAgaWYgKGVyciAmJiBlcnIuY29kZSA9PT0gNDAzKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGFuc3dlciA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2RpdicpO1xuICAgICAgICAgICAgICAgICAgICBhbnN3ZXIuaW5uZXJIVE1MID0gZXJyLnRpdGxlO1xuICAgICAgICAgICAgICAgICAgICBmb3JtLnByZXBlbmQoYW5zd2VyKTtcbiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKG91dCkge1xuICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZygnc3Rkb3V0Jywgb3V0KTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5saXN0KCkudGhlbigpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMuJC5hcHAhLmlubmVySFRNTCA9ICcnO1xuICAgICAgICAgICAgdGhpcy4kLmFwcCEuYXBwZW5kQ2hpbGQoZm9ybSk7XG4gICAgICAgIH0sXG4gICAgICAgIGFzeW5jIGdlbmVyYXRlKGdhbWU6IHN0cmluZykge1xuICAgICAgICAgICAgdGhpcy5sb2FkaW5nKCk7XG4gICAgICAgICAgICBjb25zdCB7ZXJyLCBvdXR9ID0gYXdhaXQgYmFsYW5jeSgnZ2VuZXJhdGUnLCB7IGdhbWUsIHBhdGg6IHJlc29sdmUoRWRpdG9yLlByb2plY3QucGF0aCwgJ2JhbGFuY3knKSB9KTtcbiAgICAgICAgICAgIGlmIChlcnIpIHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmVycm9yKGVycik7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHRoaXMuZ2FtZShnYW1lKS50aGVuKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGFzeW5jIGxpc3QoKSB7XG4gICAgICAgICAgICBjb25zdCB7ZXJyLCBvdXR9ID0gYXdhaXQgYmFsYW5jeSgnbGlzdCcpO1xuICAgICAgICAgICAgaWYgKGVyciAmJiBlcnIuY29kZSA9PT0gNDAzKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5sb2dpbkZvcm0oKTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAob3V0KSB7XG4gICAgICAgICAgICAgICAgY29uc3QgZm9ybSA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2Zvcm0nKTtcbiAgICAgICAgICAgICAgICBjb25zdCBsaXN0ID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnc2VsZWN0Jyk7XG4gICAgICAgICAgICAgICAgbGlzdC5uYW1lID0gJ2lkJztcbiAgICAgICAgICAgICAgICBvdXQubGlzdD8uZm9yRWFjaCgoe2lkLCBuYW1lfSkgPT4ge1xuICAgICAgICAgICAgICAgICAgIGNvbnN0IG9wdGlvbiA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ29wdGlvbicpO1xuICAgICAgICAgICAgICAgICAgIG9wdGlvbi50ZXh0ID0gbmFtZTtcbiAgICAgICAgICAgICAgICAgICBvcHRpb24udmFsdWUgPSBpZDtcbiAgICAgICAgICAgICAgICAgICBsaXN0LmFwcGVuZENoaWxkKG9wdGlvbik7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgdGhpcy4kLmFwcCEuaW5uZXJIVE1MID0gJyc7XG4gICAgICAgICAgICAgICAgZm9ybS5hcHBlbmRDaGlsZChsaXN0KTtcbiAgICAgICAgICAgICAgICBjb25zdCBzdWJtaXQgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdpbnB1dCcpO1xuICAgICAgICAgICAgICAgIHN1Ym1pdC50eXBlID0gJ3N1Ym1pdCc7XG4gICAgICAgICAgICAgICAgc3VibWl0LnZhbHVlID0gJ0dlbmVyYXRlJztcbiAgICAgICAgICAgICAgICBmb3JtLmFwcGVuZENoaWxkKHN1Ym1pdCk7XG4gICAgICAgICAgICAgICAgdGhpcy4kLmFwcCEuYXBwZW5kQ2hpbGQoZm9ybSk7XG4gICAgICAgICAgICAgICAgZm9ybS5vbnN1Ym1pdCA9IGFzeW5jIChlOiBTdWJtaXRFdmVudCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGZvcm1EYXRhID0gbmV3IEZvcm1EYXRhKGZvcm0pO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCB7IGlkIH0gPSBPYmplY3QuZnJvbUVudHJpZXMoZm9ybURhdGEpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmdlbmVyYXRlKGlkLnRvU3RyaW5nKCkpLnRoZW4oKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9LFxuICAgIHJlYWR5KCkge1xuXG4gICAgICAgIGlmICh0aGlzLiQuYXBwKSB7XG4gICAgICAgICAgICB0aGlzLiQuYXBwLmlubmVySFRNTCA9ICdMb2FkaW5nJztcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMubGlzdCgpLnRoZW4oKTtcbiAgICB9LFxuICAgIGJlZm9yZUNsb3NlKCkgeyB9LFxuICAgIGNsb3NlKCkgeyB9LFxufSk7XG4iXX0= |
156
package.json
{ | ||
"$schema": "./@types/schema/package/index.json", | ||
"package_version": 2, | ||
"name": "@balancy/cocos-creator", | ||
"version": "1.0.0-rc.6", | ||
"author": "Balancy Team", | ||
"editor": ">=3.8.3", | ||
"scripts": { | ||
"preinstall": "node ./scripts/preinstall.js", | ||
"postinstall": "node ./scripts/postinstall.js", | ||
"build": "tsc", | ||
"start": "tsc -w", | ||
"balancy": "balancy" | ||
}, | ||
"description": "i18n:balancy.description", | ||
"main": "./dist/main.js", | ||
"files": [ | ||
"dist", | ||
"static", | ||
"i18n", | ||
"scripts", | ||
"assets", | ||
"@types" | ||
"$schema": "./@types/schema/package/index.json", | ||
"package_version": 2, | ||
"name": "@balancy/cocos-creator", | ||
"version": "1.0.0-rc.7", | ||
"author": "Balancy Team", | ||
"editor": ">=3.8.3", | ||
"scripts": { | ||
"preinstall": "node ./scripts/preinstall.js", | ||
"postinstall": "node ./scripts/postinstall.js", | ||
"build": "tsc", | ||
"start": "tsc -w", | ||
"balancy": "balancy" | ||
}, | ||
"description": "i18n:balancy.description", | ||
"main": "./dist/main.js", | ||
"files": [ | ||
"dist", | ||
"static", | ||
"i18n", | ||
"scripts", | ||
"assets", | ||
"@types" | ||
], | ||
"keywords": [ | ||
"gamedev", | ||
"liveops", | ||
"gaming", | ||
"wasm" | ||
], | ||
"dependencies": { | ||
"fs-extra": "^10.0.0", | ||
"@balancy/cli": "~1.0.0-rc.7" | ||
}, | ||
"devDependencies": { | ||
"@cocos/creator-types": "^3.8.3", | ||
"@types/fs-extra": "^9.0.5", | ||
"@types/node": "^14.18.63", | ||
"typescript": "^5.5.4" | ||
}, | ||
"panels": { | ||
"default": { | ||
"title": "Balancy Login Panel", | ||
"type": "dockable", | ||
"main": "dist/panels/default", | ||
"size": { | ||
"min-width": 400, | ||
"min-height": 300, | ||
"width": 1024, | ||
"height": 600 | ||
} | ||
} | ||
}, | ||
"contributions": { | ||
"menu": [ | ||
{ | ||
"path": "i18n:menu.panel/balancy", | ||
"label": "i18n:balancy.open_panel", | ||
"message": "open-panel" | ||
}, | ||
{ | ||
"path": "i18n:menu.develop/balancy", | ||
"label": "i18n:balancy.send_to_panel", | ||
"message": "send-to-panel" | ||
} | ||
], | ||
"keywords": [ | ||
"gamedev", | ||
"liveops", | ||
"gaming", | ||
"wasm" | ||
], | ||
"dependencies": { | ||
"fs-extra": "^10.0.0", | ||
"@balancy/cli": "~1.0.0-rc" | ||
"messages": { | ||
"open-panel": { | ||
"methods": [ | ||
"openPanel" | ||
] | ||
}, | ||
"send-to-panel": { | ||
"methods": [ | ||
"default.hello" | ||
] | ||
} | ||
}, | ||
"devDependencies": { | ||
"@cocos/creator-types": "^3.8.3", | ||
"@types/fs-extra": "^9.0.5", | ||
"@types/node": "^14.18.63", | ||
"typescript": "^5.5.4" | ||
}, | ||
"panels": { | ||
"default": { | ||
"title": "Balancy Login Panel", | ||
"type": "dockable", | ||
"main": "dist/panels/default", | ||
"size": { | ||
"min-width": 400, | ||
"min-height": 300, | ||
"width": 1024, | ||
"height": 600 | ||
} | ||
} | ||
}, | ||
"contributions": { | ||
"menu": [ | ||
{ | ||
"path": "i18n:menu.panel/balancy", | ||
"label": "i18n:balancy.open_panel", | ||
"message": "open-panel" | ||
}, | ||
{ | ||
"path": "i18n:menu.develop/balancy", | ||
"label": "i18n:balancy.send_to_panel", | ||
"message": "send-to-panel" | ||
} | ||
], | ||
"messages": { | ||
"open-panel": { | ||
"methods": [ | ||
"openPanel" | ||
] | ||
}, | ||
"send-to-panel": { | ||
"methods": [ | ||
"default.hello" | ||
] | ||
} | ||
}, | ||
"builder": "./dist/builder" | ||
} | ||
} | ||
"builder": "./dist/builder" | ||
} | ||
} |
# Installation | ||
```shell | ||
npm install @balancy/cocos-creator | ||
npm install --save @balancy/cocos-creator@next | ||
``` | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34795
388
8
Updated@balancy/cli@~1.0.0-rc.7