cc-inspector-chrome/cc-plugin.config.ts

74 lines
1.8 KiB
TypeScript
Raw Permalink Normal View History

2024-01-05 13:48:16 +08:00
// @ts-ignore
2024-12-27 14:23:27 +08:00
import { CocosPluginManifest, CocosPluginOptions, Panel } from "cc-plugin/src/declare";
2024-01-05 13:48:16 +08:00
const pkgName = "cc-inspector";
function i18n(key: string) {
return `i18n:${pkgName}.${key}`;
}
const manifest: CocosPluginManifest = {
name: pkgName,
2025-04-05 11:21:47 +08:00
version: "2.1.14",
2025-01-11 16:15:26 +08:00
description: "Debug games made with CocosCreator and display node trees and node properties",
2025-02-11 13:51:02 +08:00
store: "https://store.cocos.com/app/detail/2002",
2024-01-05 13:48:16 +08:00
author: "xu_yanfeng",
main: "./src/main.ts",
panels: [
{
2025-02-03 13:22:09 +08:00
name: "inspector",
2024-01-05 13:48:16 +08:00
type: Panel.Type.DockAble,
main: "./src/panel/index.ts",
2025-02-03 13:22:09 +08:00
title: "Cocos Inspector",
2024-01-05 13:48:16 +08:00
width: 500,
height: 400,
minWidth: 50,
minHeight: 400,
},
],
menus: [
{
path: `cc-inspector/${i18n("title")}`,
message: {
name: "showPanel",
},
},
],
i18n_en: "./src/i18n/en.ts",
i18n_zh: "./src/i18n/zh.ts",
2024-01-05 20:12:19 +08:00
icon: {
"48": "./icons/48.png",
},
2025-01-10 15:22:32 +08:00
analysis: {
// googleAnalytics: "G-0S2X4Z1FE7",
},
2024-01-05 13:48:16 +08:00
chrome: {
2025-02-21 10:54:49 +08:00
permissions: ["storage", "notifications"],
2025-02-11 13:51:02 +08:00
url: "https://chromewebstore.google.com/detail/cc-inspector/hejbkamkfnkifppoaljcidepkhgaahcj?authuser=0&hl=en",
2024-12-15 20:00:53 +08:00
version: 3,
2024-01-08 20:04:20 +08:00
pem: "./crx-key.pem",
2024-01-05 16:45:23 +08:00
view_devtools: "src/views/devtools/index.ts",
view_options: "src/views/options/index.ts",
view_popup: "src/views/popup/index.ts",
script_background: "src/scripts/background/index.ts",
2024-12-27 14:14:38 +08:00
script_content: "src/scripts/content/index.ts",
2024-01-08 19:50:06 +08:00
script_inject: "src/scripts/inject/index.ts",
2025-01-19 14:11:21 +08:00
script_inject_view: "src/scripts/inject-view/web-test.ts",
2024-01-05 13:48:16 +08:00
},
};
const options: CocosPluginOptions = {
2025-02-06 15:52:46 +08:00
obscure: false,
2024-01-05 13:48:16 +08:00
server: {
2025-01-28 09:35:49 +08:00
enabled: false,
2024-01-05 13:48:16 +08:00
port: 2022,
2024-02-23 09:18:28 +08:00
https: true,
2024-01-09 18:11:45 +08:00
writeToDisk: true,
2024-01-05 13:48:16 +08:00
},
watchBuild: true,
outputProject: {
web: "./web",
2024-01-05 16:45:23 +08:00
chrome: "./chrome",
2024-01-05 13:48:16 +08:00
},
};
export default { manifest, options };