@shiqianjiang/ceru-plugin-cli 0.3.15 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -7
- package/assets/compatibility.json +18 -0
- package/dist/compatibility.d.ts +24 -0
- package/dist/compatibility.js +119 -0
- package/dist/component.d.ts +6 -0
- package/dist/component.js +60 -0
- package/dist/dev-music.d.ts +19 -0
- package/dist/dev-music.js +81 -0
- package/dist/dev-plugin-services.d.ts +10 -0
- package/dist/dev-plugin-services.js +67 -0
- package/dist/dev.d.ts +1 -9
- package/dist/dev.js +53 -713
- package/dist/frameworks.d.ts +5 -2
- package/dist/frameworks.js +43 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +54 -23
- package/dist/init.js +3 -3
- package/dist/migrate.d.ts +3 -0
- package/dist/migrate.js +109 -0
- package/dist/project.d.ts +5 -2
- package/dist/project.js +131 -43
- package/dist/test-hooks.d.ts +1 -0
- package/dist/test-hooks.js +209 -0
- package/dist/test-services.d.ts +4 -0
- package/dist/test-services.js +54 -0
- package/dist/watch-vue-types.d.ts +17 -0
- package/dist/watch-vue-types.js +145 -0
- package/package.json +10 -6
- package/schemas/config.schema.json +954 -452
- package/templates/account-qrcode/js/.vscode/extensions.json +3 -0
- package/templates/account-qrcode/js/.vscode/launch.json +19 -0
- package/templates/account-qrcode/js/.vscode/settings.json +20 -0
- package/templates/account-qrcode/js/.vscode/tasks.json +43 -0
- package/templates/account-qrcode/js/README.md +15 -0
- package/templates/account-qrcode/js/_gitignore +6 -0
- package/templates/account-qrcode/js/ceru-plugin.code-workspace +8 -0
- package/templates/account-qrcode/js/ceru.plugin.json +62 -0
- package/templates/account-qrcode/js/package.json +24 -0
- package/templates/account-qrcode/js/src/Login.vue +25 -0
- package/templates/account-qrcode/js/src/index.js +25 -0
- package/templates/account-qrcode/js/src/login-html.js +23 -0
- package/templates/account-qrcode/js/tsconfig.json +17 -0
- package/templates/account-qrcode/ts/.vscode/extensions.json +3 -0
- package/templates/account-qrcode/ts/.vscode/launch.json +19 -0
- package/templates/account-qrcode/ts/.vscode/settings.json +20 -0
- package/templates/account-qrcode/ts/.vscode/tasks.json +43 -0
- package/templates/account-qrcode/ts/README.md +15 -0
- package/templates/account-qrcode/ts/_gitignore +6 -0
- package/templates/account-qrcode/ts/ceru-plugin.code-workspace +8 -0
- package/templates/account-qrcode/ts/ceru.plugin.json +62 -0
- package/templates/account-qrcode/ts/package.json +24 -0
- package/templates/account-qrcode/ts/src/Login.vue +25 -0
- package/templates/account-qrcode/ts/src/index.ts +25 -0
- package/templates/account-qrcode/ts/src/login-html.ts +23 -0
- package/templates/account-qrcode/ts/tsconfig.json +17 -0
- package/templates/connected-library/js/.vscode/launch.json +12 -29
- package/templates/connected-library/js/.vscode/tasks.json +2 -3
- package/templates/connected-library/js/README.md +26 -12
- package/templates/connected-library/js/ceru.plugin.json +122 -50
- package/templates/connected-library/js/package.json +5 -5
- package/templates/connected-library/js/src/index.js +46 -5
- package/templates/connected-library/js/src/settings.js +28 -0
- package/templates/connected-library/ts/.vscode/launch.json +12 -29
- package/templates/connected-library/ts/.vscode/tasks.json +2 -3
- package/templates/connected-library/ts/README.md +26 -12
- package/templates/connected-library/ts/ceru.plugin.json +122 -50
- package/templates/connected-library/ts/package.json +5 -5
- package/templates/connected-library/ts/src/index.ts +46 -5
- package/templates/connected-library/ts/src/settings.ts +28 -0
- package/templates/encrypted-source/README.md +86 -0
- package/templates/encrypted-source/js/.prettierrc.json +5 -0
- package/templates/encrypted-source/js/.vscode/ceru.code-snippets +55 -0
- package/templates/encrypted-source/js/.vscode/extensions.json +3 -0
- package/templates/encrypted-source/js/.vscode/launch.json +15 -0
- package/templates/encrypted-source/js/.vscode/settings.json +20 -0
- package/templates/encrypted-source/js/.vscode/tasks.json +40 -0
- package/templates/encrypted-source/js/DEMO.md +77 -0
- package/templates/encrypted-source/js/README.md +13 -0
- package/templates/encrypted-source/js/_gitignore +6 -0
- package/templates/encrypted-source/js/ceru-plugin.code-workspace +8 -0
- package/templates/encrypted-source/js/ceru.plugin.json +95 -0
- package/templates/encrypted-source/js/package.json +26 -0
- package/templates/encrypted-source/js/resources/xor-byte.wasm +0 -0
- package/templates/encrypted-source/js/resources/xor-byte.wat +5 -0
- package/templates/encrypted-source/js/src/demo.js +200 -0
- package/templates/encrypted-source/js/src/fixtures.js +118 -0
- package/templates/encrypted-source/js/src/index.js +4 -0
- package/templates/encrypted-source/js/tests/demo.test.mjs +357 -0
- package/templates/encrypted-source/js/tsconfig.json +16 -0
- package/templates/encrypted-source/ts/.prettierrc.json +5 -0
- package/templates/encrypted-source/ts/.vscode/ceru.code-snippets +55 -0
- package/templates/encrypted-source/ts/.vscode/extensions.json +3 -0
- package/templates/encrypted-source/ts/.vscode/launch.json +15 -0
- package/templates/encrypted-source/ts/.vscode/settings.json +20 -0
- package/templates/encrypted-source/ts/.vscode/tasks.json +40 -0
- package/templates/encrypted-source/ts/DEMO.md +77 -0
- package/templates/encrypted-source/ts/README.md +13 -0
- package/templates/encrypted-source/ts/_gitignore +6 -0
- package/templates/encrypted-source/ts/ceru-plugin.code-workspace +8 -0
- package/templates/encrypted-source/ts/ceru.plugin.json +95 -0
- package/templates/encrypted-source/ts/package.json +26 -0
- package/templates/encrypted-source/ts/resources/xor-byte.wasm +0 -0
- package/templates/encrypted-source/ts/resources/xor-byte.wat +5 -0
- package/templates/encrypted-source/ts/src/demo.ts +212 -0
- package/templates/encrypted-source/ts/src/fixtures.ts +125 -0
- package/templates/encrypted-source/ts/src/index.ts +4 -0
- package/templates/encrypted-source/ts/tests/demo.test.mjs +357 -0
- package/templates/encrypted-source/ts/tsconfig.json +17 -0
- package/templates/guest-adapter/js/.vscode/launch.json +12 -29
- package/templates/guest-adapter/js/.vscode/tasks.json +2 -3
- package/templates/guest-adapter/js/README.md +10 -10
- package/templates/guest-adapter/js/ceru.plugin.json +67 -62
- package/templates/guest-adapter/js/package.json +5 -5
- package/templates/guest-adapter/js/src/index.js +1 -1
- package/templates/guest-adapter/js/src/settings.js +8 -0
- package/templates/guest-adapter/ts/.vscode/launch.json +12 -29
- package/templates/guest-adapter/ts/.vscode/tasks.json +2 -3
- package/templates/guest-adapter/ts/README.md +10 -10
- package/templates/guest-adapter/ts/ceru.plugin.json +67 -62
- package/templates/guest-adapter/ts/package.json +5 -5
- package/templates/guest-adapter/ts/src/index.ts +1 -1
- package/templates/guest-adapter/ts/src/settings.ts +8 -0
- package/templates/importer/js/.vscode/launch.json +12 -29
- package/templates/importer/js/.vscode/tasks.json +2 -3
- package/templates/importer/js/README.md +10 -10
- package/templates/importer/js/ceru.plugin.json +23 -21
- package/templates/importer/js/package.json +5 -5
- package/templates/importer/ts/.vscode/launch.json +12 -29
- package/templates/importer/ts/.vscode/tasks.json +2 -3
- package/templates/importer/ts/README.md +10 -10
- package/templates/importer/ts/ceru.plugin.json +23 -21
- package/templates/importer/ts/package.json +5 -5
- package/templates/page-extension/js/.vscode/extensions.json +3 -0
- package/templates/page-extension/js/.vscode/launch.json +19 -0
- package/templates/page-extension/js/.vscode/settings.json +20 -0
- package/templates/page-extension/js/.vscode/tasks.json +43 -0
- package/templates/page-extension/js/README.md +9 -0
- package/templates/page-extension/js/_gitignore +6 -0
- package/templates/page-extension/js/ceru-plugin.code-workspace +8 -0
- package/templates/page-extension/js/ceru.plugin.json +94 -0
- package/templates/page-extension/js/package.json +24 -0
- package/templates/page-extension/js/src/Open.vue +6 -0
- package/templates/page-extension/js/src/Search.vue +62 -0
- package/templates/page-extension/js/src/index.js +54 -0
- package/templates/page-extension/js/tsconfig.json +17 -0
- package/templates/page-extension/ts/.vscode/extensions.json +3 -0
- package/templates/page-extension/ts/.vscode/launch.json +19 -0
- package/templates/page-extension/ts/.vscode/settings.json +20 -0
- package/templates/page-extension/ts/.vscode/tasks.json +43 -0
- package/templates/page-extension/ts/README.md +9 -0
- package/templates/page-extension/ts/_gitignore +6 -0
- package/templates/page-extension/ts/ceru-plugin.code-workspace +8 -0
- package/templates/page-extension/ts/ceru.plugin.json +94 -0
- package/templates/page-extension/ts/package.json +24 -0
- package/templates/page-extension/ts/src/Open.vue +6 -0
- package/templates/page-extension/ts/src/Search.vue +62 -0
- package/templates/page-extension/ts/src/index.ts +54 -0
- package/templates/page-extension/ts/tsconfig.json +17 -0
- package/templates/playback-hook/js/.prettierrc.json +5 -0
- package/templates/playback-hook/js/.vscode/extensions.json +3 -0
- package/templates/playback-hook/js/.vscode/launch.json +19 -0
- package/templates/playback-hook/js/.vscode/settings.json +20 -0
- package/templates/playback-hook/js/.vscode/tasks.json +50 -0
- package/templates/playback-hook/js/README.md +24 -0
- package/templates/playback-hook/js/_gitignore +6 -0
- package/templates/playback-hook/js/ceru-plugin.code-workspace +8 -0
- package/templates/playback-hook/js/ceru.plugin.json +36 -0
- package/templates/playback-hook/js/package.json +23 -0
- package/templates/playback-hook/js/src/index.js +25 -0
- package/templates/playback-hook/js/tests/hooks.json +316 -0
- package/templates/playback-hook/js/tsconfig.json +16 -0
- package/templates/playback-hook/ts/.prettierrc.json +5 -0
- package/templates/playback-hook/ts/.vscode/extensions.json +3 -0
- package/templates/playback-hook/ts/.vscode/launch.json +19 -0
- package/templates/playback-hook/ts/.vscode/settings.json +20 -0
- package/templates/playback-hook/ts/.vscode/tasks.json +50 -0
- package/templates/playback-hook/ts/README.md +24 -0
- package/templates/playback-hook/ts/_gitignore +6 -0
- package/templates/playback-hook/ts/ceru-plugin.code-workspace +8 -0
- package/templates/playback-hook/ts/ceru.plugin.json +36 -0
- package/templates/playback-hook/ts/package.json +23 -0
- package/templates/playback-hook/ts/src/index.ts +25 -0
- package/templates/playback-hook/ts/tests/hooks.json +316 -0
- package/templates/playback-hook/ts/tsconfig.json +16 -0
- package/templates/player-skin/js/.vscode/extensions.json +3 -0
- package/templates/player-skin/js/.vscode/launch.json +19 -0
- package/templates/player-skin/js/.vscode/settings.json +20 -0
- package/templates/player-skin/js/.vscode/tasks.json +43 -0
- package/templates/player-skin/js/README.md +11 -0
- package/templates/player-skin/js/_gitignore +6 -0
- package/templates/player-skin/js/assets/studio-preview.svg +15 -0
- package/templates/player-skin/js/ceru-plugin.code-workspace +8 -0
- package/templates/player-skin/js/ceru.plugin.json +77 -0
- package/templates/player-skin/js/package.json +24 -0
- package/templates/player-skin/js/src/Artwork.vue +9 -0
- package/templates/player-skin/js/src/Background.vue +15 -0
- package/templates/player-skin/js/src/BuiltinLyrics.vue +15 -0
- package/templates/player-skin/js/src/Lyrics.vue +28 -0
- package/templates/player-skin/js/tsconfig.json +17 -0
- package/templates/player-skin/ts/.vscode/extensions.json +3 -0
- package/templates/player-skin/ts/.vscode/launch.json +19 -0
- package/templates/player-skin/ts/.vscode/settings.json +20 -0
- package/templates/player-skin/ts/.vscode/tasks.json +43 -0
- package/templates/player-skin/ts/README.md +11 -0
- package/templates/player-skin/ts/_gitignore +6 -0
- package/templates/player-skin/ts/assets/studio-preview.svg +15 -0
- package/templates/player-skin/ts/ceru-plugin.code-workspace +8 -0
- package/templates/player-skin/ts/ceru.plugin.json +77 -0
- package/templates/player-skin/ts/package.json +24 -0
- package/templates/player-skin/ts/src/Artwork.vue +9 -0
- package/templates/player-skin/ts/src/Background.vue +15 -0
- package/templates/player-skin/ts/src/BuiltinLyrics.vue +15 -0
- package/templates/player-skin/ts/src/Lyrics.vue +28 -0
- package/templates/player-skin/ts/tsconfig.json +17 -0
- package/templates/react/js/.vscode/launch.json +12 -29
- package/templates/react/js/.vscode/tasks.json +2 -3
- package/templates/react/js/README.md +10 -10
- package/templates/react/js/ceru.plugin.json +27 -22
- package/templates/react/js/package.json +5 -5
- package/templates/react/js/src/index.js +1 -1
- package/templates/react/ts/.vscode/launch.json +12 -29
- package/templates/react/ts/.vscode/tasks.json +2 -3
- package/templates/react/ts/README.md +10 -10
- package/templates/react/ts/ceru.plugin.json +27 -22
- package/templates/react/ts/package.json +5 -5
- package/templates/react/ts/src/index.ts +1 -1
- package/templates/snapshot.json +152 -6
- package/templates/source/js/.vscode/launch.json +12 -29
- package/templates/source/js/.vscode/tasks.json +2 -3
- package/templates/source/js/README.md +12 -10
- package/templates/source/js/ceru.plugin.json +44 -26
- package/templates/source/js/package.json +5 -5
- package/templates/source/js/src/index.js +10 -8
- package/templates/source/ts/.vscode/launch.json +12 -29
- package/templates/source/ts/.vscode/tasks.json +2 -3
- package/templates/source/ts/README.md +12 -10
- package/templates/source/ts/ceru.plugin.json +44 -26
- package/templates/source/ts/package.json +5 -5
- package/templates/source/ts/src/index.ts +10 -8
- package/templates/vue/js/.vscode/launch.json +12 -29
- package/templates/vue/js/.vscode/tasks.json +2 -3
- package/templates/vue/js/README.md +10 -10
- package/templates/vue/js/ceru.plugin.json +27 -22
- package/templates/vue/js/package.json +5 -5
- package/templates/vue/js/src/index.js +1 -1
- package/templates/vue/ts/.vscode/launch.json +12 -29
- package/templates/vue/ts/.vscode/tasks.json +2 -3
- package/templates/vue/ts/README.md +10 -10
- package/templates/vue/ts/ceru.plugin.json +27 -22
- package/templates/vue/ts/package.json +5 -5
- package/templates/vue/ts/src/index.ts +1 -1
- package/templates/vue-tsx/js/.vscode/launch.json +12 -29
- package/templates/vue-tsx/js/.vscode/tasks.json +2 -3
- package/templates/vue-tsx/js/README.md +10 -10
- package/templates/vue-tsx/js/ceru.plugin.json +27 -22
- package/templates/vue-tsx/js/package.json +5 -5
- package/templates/vue-tsx/js/src/index.js +1 -1
- package/templates/vue-tsx/ts/.vscode/launch.json +12 -29
- package/templates/vue-tsx/ts/.vscode/tasks.json +2 -3
- package/templates/vue-tsx/ts/README.md +10 -10
- package/templates/vue-tsx/ts/ceru.plugin.json +27 -22
- package/templates/vue-tsx/ts/package.json +5 -5
- package/templates/vue-tsx/ts/src/index.ts +1 -1
- package/templates/web-dist/js/.vscode/launch.json +12 -29
- package/templates/web-dist/js/.vscode/tasks.json +2 -3
- package/templates/web-dist/js/README.md +10 -10
- package/templates/web-dist/js/ceru.plugin.json +27 -22
- package/templates/web-dist/js/package.json +5 -5
- package/templates/web-dist/js/src/index.js +1 -1
- package/templates/web-dist/ts/.vscode/launch.json +12 -29
- package/templates/web-dist/ts/.vscode/tasks.json +2 -3
- package/templates/web-dist/ts/README.md +10 -10
- package/templates/web-dist/ts/ceru.plugin.json +27 -22
- package/templates/web-dist/ts/package.json +5 -5
- package/templates/web-dist/ts/src/index.ts +1 -1
- package/templates/web-surface/js/.vscode/launch.json +12 -29
- package/templates/web-surface/js/.vscode/tasks.json +2 -3
- package/templates/web-surface/js/README.md +10 -10
- package/templates/web-surface/js/ceru.plugin.json +35 -35
- package/templates/web-surface/js/package.json +5 -5
- package/templates/web-surface/js/src/index.js +1 -1
- package/templates/web-surface/ts/.vscode/launch.json +12 -29
- package/templates/web-surface/ts/.vscode/tasks.json +2 -3
- package/templates/web-surface/ts/README.md +10 -10
- package/templates/web-surface/ts/ceru.plugin.json +35 -35
- package/templates/web-surface/ts/package.json +5 -5
- package/templates/web-surface/ts/src/index.ts +1 -1
- package/assets/core-contracts.js +0 -1
- package/assets/electron-app/main.cjs +0 -1
- package/assets/electron-app/package.json +0 -8
- package/assets/electron.cjs +0 -42
- package/assets/index.html +0 -94
- package/assets/native-view.js +0 -197
- package/assets/playground.js +0 -883
- package/assets/sandbox.js +0 -67
- package/assets/style.css +0 -337
- package/dist/socket-broker.d.ts +0 -23
- package/dist/socket-broker.js +0 -229
- package/templates/connected-library/js/ui/settings.json +0 -24
- package/templates/connected-library/ts/ui/settings.json +0 -24
- package/templates/guest-adapter/js/ui/settings.json +0 -14
- package/templates/guest-adapter/ts/ui/settings.json +0 -14
|
@@ -1,49 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": {
|
|
3
|
-
"manifestVersion":
|
|
3
|
+
"manifestVersion": 3,
|
|
4
4
|
"id": "local.ts",
|
|
5
5
|
"name": "ts",
|
|
6
6
|
"version": "0.1.0",
|
|
7
|
-
"description": "A Ceru Music
|
|
7
|
+
"description": "A Ceru Music v3 vue plugin",
|
|
8
|
+
"dataSchemas": {
|
|
9
|
+
"config": 1,
|
|
10
|
+
"state": 1
|
|
11
|
+
},
|
|
8
12
|
"engines": {
|
|
9
|
-
"hostApi": "^
|
|
10
|
-
"logicRuntime": "ceru-js@1"
|
|
11
|
-
"uiSchema": "^1.0.0"
|
|
13
|
+
"hostApi": "^3.0.0",
|
|
14
|
+
"logicRuntime": "ceru-js@1"
|
|
12
15
|
},
|
|
13
|
-
"
|
|
16
|
+
"entry": {
|
|
14
17
|
"logic": {
|
|
15
|
-
"
|
|
16
|
-
|
|
18
|
+
"activation": [
|
|
19
|
+
"onCommand:hello"
|
|
20
|
+
],
|
|
21
|
+
"module": "logic.main"
|
|
17
22
|
},
|
|
18
|
-
"
|
|
23
|
+
"views": [
|
|
19
24
|
{
|
|
20
25
|
"id": "page",
|
|
21
26
|
"kind": "web",
|
|
22
|
-
"
|
|
27
|
+
"module": "view.main"
|
|
23
28
|
}
|
|
24
29
|
]
|
|
25
30
|
},
|
|
26
|
-
"
|
|
27
|
-
"
|
|
31
|
+
"provides": {
|
|
32
|
+
"actions": [
|
|
28
33
|
{
|
|
29
34
|
"id": "hello",
|
|
30
|
-
"title": "Hello"
|
|
31
|
-
"action": "hello"
|
|
35
|
+
"title": "Hello"
|
|
32
36
|
}
|
|
33
|
-
]
|
|
34
|
-
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"uses": {
|
|
40
|
+
"permissions": []
|
|
41
|
+
},
|
|
42
|
+
"ui": {
|
|
43
|
+
"pages": [
|
|
35
44
|
{
|
|
36
45
|
"id": "page",
|
|
37
46
|
"group": "library",
|
|
38
47
|
"title": "ts",
|
|
39
|
-
"view": "page"
|
|
48
|
+
"view": "page",
|
|
49
|
+
"mount": "sidebar"
|
|
40
50
|
}
|
|
41
51
|
]
|
|
42
|
-
},
|
|
43
|
-
"permissions": [],
|
|
44
|
-
"dataSchemas": {
|
|
45
|
-
"config": 1,
|
|
46
|
-
"state": 1
|
|
47
52
|
}
|
|
48
53
|
},
|
|
49
54
|
"entries": {
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "ceru-plugin dev",
|
|
8
8
|
"build": "ceru-plugin build",
|
|
9
|
-
"typecheck": "
|
|
9
|
+
"typecheck": "ceru-plugin typecheck",
|
|
10
10
|
"validate": "ceru-plugin validate dist/plugin.js",
|
|
11
|
-
"preview": "ceru-plugin preview dist/plugin.js"
|
|
11
|
+
"preview": "ceru-plugin preview dist/plugin.js",
|
|
12
|
+
"check:compat": "ceru-plugin check-compat"
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"@shiqianjiang/ceru-plugin-sdk": "^0.
|
|
15
|
+
"@shiqianjiang/ceru-plugin-sdk": "^3.0.0"
|
|
15
16
|
},
|
|
16
17
|
"devDependencies": {
|
|
17
|
-
"@shiqianjiang/ceru-plugin-cli": "^0.
|
|
18
|
+
"@shiqianjiang/ceru-plugin-cli": "^3.0.0",
|
|
18
19
|
"typescript": "~5.9.3",
|
|
19
|
-
"electron": "^44.4.2",
|
|
20
20
|
"prettier": "^3.6.2",
|
|
21
21
|
"vue": "3.5.43"
|
|
22
22
|
}
|
|
@@ -2,6 +2,6 @@ import { definePlugin } from '@shiqianjiang/ceru-plugin-sdk'
|
|
|
2
2
|
|
|
3
3
|
export default definePlugin(async (ctx) => {
|
|
4
4
|
ctx.actions.register('hello', async () => {
|
|
5
|
-
await ctx.ui.notify({ key: 'hello', level: 'info', message: 'Hello Ceru
|
|
5
|
+
await ctx.ui.notify({ key: 'hello', level: 'info', message: 'Hello Ceru v3!' })
|
|
6
6
|
})
|
|
7
7
|
})
|
|
@@ -2,35 +2,18 @@
|
|
|
2
2
|
"version": "0.2.0",
|
|
3
3
|
"configurations": [
|
|
4
4
|
{
|
|
5
|
-
"name": "
|
|
6
|
-
"type": "
|
|
7
|
-
"request": "
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"urlFilter": "http://127.0.0.1:4179/",
|
|
18
|
-
"timeout": 30000
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"name": "Attach to Ceru plugin",
|
|
22
|
-
"type": "pwa-chrome",
|
|
23
|
-
"request": "attach",
|
|
24
|
-
"port": 9223,
|
|
25
|
-
"webRoot": "${workspaceFolder}",
|
|
26
|
-
"sourceMaps": true,
|
|
27
|
-
"sourceMapPathOverrides": {
|
|
28
|
-
"ceru:///*": "${workspaceFolder}/*"
|
|
29
|
-
},
|
|
30
|
-
"skipFiles": ["**/node_modules/**"],
|
|
31
|
-
"address": "127.0.0.1",
|
|
32
|
-
"urlFilter": "http://127.0.0.1:4179/",
|
|
33
|
-
"timeout": 30000
|
|
5
|
+
"name": "Watch Ceru plugin",
|
|
6
|
+
"type": "node",
|
|
7
|
+
"request": "launch",
|
|
8
|
+
"program": "${workspaceFolder}/node_modules/@shiqianjiang/ceru-plugin-cli/dist/bin.js",
|
|
9
|
+
"args": [
|
|
10
|
+
"dev"
|
|
11
|
+
],
|
|
12
|
+
"cwd": "${workspaceFolder}",
|
|
13
|
+
"console": "integratedTerminal",
|
|
14
|
+
"skipFiles": [
|
|
15
|
+
"<node_internals>/**"
|
|
16
|
+
]
|
|
34
17
|
}
|
|
35
18
|
]
|
|
36
19
|
}
|
|
@@ -14,14 +14,13 @@
|
|
|
14
14
|
"background": {
|
|
15
15
|
"activeOnStart": true,
|
|
16
16
|
"beginsPattern": "^.*$",
|
|
17
|
-
"endsPattern": "^
|
|
17
|
+
"endsPattern": "^CERU_BUILD_READY "
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"command": "node",
|
|
21
21
|
"args": [
|
|
22
22
|
"${workspaceFolder}/node_modules/@shiqianjiang/ceru-plugin-cli/dist/bin.js",
|
|
23
|
-
"dev"
|
|
24
|
-
"--ensure-running"
|
|
23
|
+
"dev"
|
|
25
24
|
],
|
|
26
25
|
"options": {
|
|
27
26
|
"cwd": "${workspaceFolder}"
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
# vue-tsx / js
|
|
2
2
|
|
|
3
|
-
Ceru Music
|
|
3
|
+
Ceru Music v3 插件开发模板。此目录是源码,不是安装包。
|
|
4
4
|
|
|
5
5
|
## 运行 demo
|
|
6
6
|
|
|
7
|
-
1.
|
|
7
|
+
1. 使用匹配的 v3 脚手架创建工程(本地开发套件可使用其 `npm run create` 命令):
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
ceru-plugin init my-plugin --template vue-tsx --lang js
|
|
10
10
|
|
|
11
11
|
2. 进入目录,运行 npm install。
|
|
12
|
-
3. 运行 npm run dev
|
|
12
|
+
3. 运行 npm run dev,在澜音「设置 → 插件管理 → 管理设置 → 插件开发者模式」添加终端打印的 JS 文件。
|
|
13
13
|
4. 修改 src 中的代码;保存后自动类型检查并重载。
|
|
14
14
|
5. 运行 npm run build,只分发 dist/plugin.js。
|
|
15
15
|
|
|
16
16
|
## 编辑器
|
|
17
17
|
|
|
18
|
-
VS Code 按 F5 选择
|
|
19
|
-
|
|
18
|
+
VS Code 按 F5 选择 Watch Ceru plugin,会启动本地构建监听,不会另开 Electron。
|
|
19
|
+
已在终端运行 npm run dev 时不必再按 F5。
|
|
20
20
|
配置文件有 JSON Schema 提示,SDK 提供参数类型、图标名称与 Lodash 方法补全。
|
|
21
21
|
|
|
22
22
|
## 宿主资源
|
|
@@ -26,16 +26,16 @@ VS Code 按 F5 选择 Launch Ceru plugin;已有调试窗口时选择 Attach to
|
|
|
26
26
|
- 默认封面:await ctx.assets.url('placeholder.cover')。
|
|
27
27
|
- 共享工具:ctx.utils.lodash。
|
|
28
28
|
|
|
29
|
-
Vue
|
|
29
|
+
视图是否自带框架由清单的 `entry.views[].kind` 决定:`web` 页面打包自己用到的框架;`native` 由宿主绘制;`component` 复用宿主提供的 Vue、TDesign 和音乐组件。开发宿主风格的页面可选 `page-extension` 模板,播放器区域可选 `player-skin`,不需要复制桌面组件源码。
|
|
30
30
|
TypeScript、Vue 编译器、构建工具与开发服务器不会进入产物。
|
|
31
|
-
运行 npm run
|
|
31
|
+
运行 `npm run typecheck` 只检查工程,不生成发行文件。可选 `npm run preview` 验证构建产物并打印路径;将该文件加入桌面的插件开发者模式即可预览,不会启动服务器。
|
|
32
32
|
|
|
33
33
|
若 VS Code 打开的是父目录,请打开本工程的 ceru-plugin.code-workspace,
|
|
34
|
-
再在“运行和调试”中选择
|
|
34
|
+
再在“运行和调试”中选择 Watch Ceru plugin。
|
|
35
35
|
F5 执行当前下拉框中的配置,不会自动选择终端所在的子工程。
|
|
36
36
|
|
|
37
37
|
## 边界
|
|
38
38
|
|
|
39
|
-
本模板面向
|
|
39
|
+
本模板面向 v3 协议。需要支持 v3 的宿主。
|
|
40
40
|
凭据保险箱、完整音乐业务和 Guest 安装需要正式 Host;不支持的调试调用会明确报错。
|
|
41
41
|
不要把私人 API Key、卡密或发行私钥提交到仓库。
|
|
@@ -1,49 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": {
|
|
3
|
-
"manifestVersion":
|
|
3
|
+
"manifestVersion": 3,
|
|
4
4
|
"id": "local.js",
|
|
5
5
|
"name": "js",
|
|
6
6
|
"version": "0.1.0",
|
|
7
|
-
"description": "A Ceru Music
|
|
7
|
+
"description": "A Ceru Music v3 vue-tsx plugin",
|
|
8
|
+
"dataSchemas": {
|
|
9
|
+
"config": 1,
|
|
10
|
+
"state": 1
|
|
11
|
+
},
|
|
8
12
|
"engines": {
|
|
9
|
-
"hostApi": "^
|
|
10
|
-
"logicRuntime": "ceru-js@1"
|
|
11
|
-
"uiSchema": "^1.0.0"
|
|
13
|
+
"hostApi": "^3.0.0",
|
|
14
|
+
"logicRuntime": "ceru-js@1"
|
|
12
15
|
},
|
|
13
|
-
"
|
|
16
|
+
"entry": {
|
|
14
17
|
"logic": {
|
|
15
|
-
"
|
|
16
|
-
|
|
18
|
+
"activation": [
|
|
19
|
+
"onCommand:hello"
|
|
20
|
+
],
|
|
21
|
+
"module": "logic.main"
|
|
17
22
|
},
|
|
18
|
-
"
|
|
23
|
+
"views": [
|
|
19
24
|
{
|
|
20
25
|
"id": "page",
|
|
21
26
|
"kind": "web",
|
|
22
|
-
"
|
|
27
|
+
"module": "view.main"
|
|
23
28
|
}
|
|
24
29
|
]
|
|
25
30
|
},
|
|
26
|
-
"
|
|
27
|
-
"
|
|
31
|
+
"provides": {
|
|
32
|
+
"actions": [
|
|
28
33
|
{
|
|
29
34
|
"id": "hello",
|
|
30
|
-
"title": "Hello"
|
|
31
|
-
"action": "hello"
|
|
35
|
+
"title": "Hello"
|
|
32
36
|
}
|
|
33
|
-
]
|
|
34
|
-
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"uses": {
|
|
40
|
+
"permissions": []
|
|
41
|
+
},
|
|
42
|
+
"ui": {
|
|
43
|
+
"pages": [
|
|
35
44
|
{
|
|
36
45
|
"id": "page",
|
|
37
46
|
"group": "library",
|
|
38
47
|
"title": "js",
|
|
39
|
-
"view": "page"
|
|
48
|
+
"view": "page",
|
|
49
|
+
"mount": "sidebar"
|
|
40
50
|
}
|
|
41
51
|
]
|
|
42
|
-
},
|
|
43
|
-
"permissions": [],
|
|
44
|
-
"dataSchemas": {
|
|
45
|
-
"config": 1,
|
|
46
|
-
"state": 1
|
|
47
52
|
}
|
|
48
53
|
},
|
|
49
54
|
"entries": {
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "ceru-plugin dev",
|
|
8
8
|
"build": "ceru-plugin build",
|
|
9
|
-
"typecheck": "
|
|
9
|
+
"typecheck": "ceru-plugin typecheck",
|
|
10
10
|
"validate": "ceru-plugin validate dist/plugin.js",
|
|
11
|
-
"preview": "ceru-plugin preview dist/plugin.js"
|
|
11
|
+
"preview": "ceru-plugin preview dist/plugin.js",
|
|
12
|
+
"check:compat": "ceru-plugin check-compat"
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"@shiqianjiang/ceru-plugin-sdk": "^0.
|
|
15
|
+
"@shiqianjiang/ceru-plugin-sdk": "^3.0.0"
|
|
15
16
|
},
|
|
16
17
|
"devDependencies": {
|
|
17
|
-
"@shiqianjiang/ceru-plugin-cli": "^0.
|
|
18
|
+
"@shiqianjiang/ceru-plugin-cli": "^3.0.0",
|
|
18
19
|
"typescript": "~5.9.3",
|
|
19
|
-
"electron": "^44.4.2",
|
|
20
20
|
"prettier": "^3.6.2",
|
|
21
21
|
"vue": "3.5.43"
|
|
22
22
|
}
|
|
@@ -2,6 +2,6 @@ import { definePlugin } from '@shiqianjiang/ceru-plugin-sdk'
|
|
|
2
2
|
|
|
3
3
|
export default definePlugin(async (ctx) => {
|
|
4
4
|
ctx.actions.register('hello', async () => {
|
|
5
|
-
await ctx.ui.notify({ key: 'hello', level: 'info', message: 'Hello Ceru
|
|
5
|
+
await ctx.ui.notify({ key: 'hello', level: 'info', message: 'Hello Ceru v3!' })
|
|
6
6
|
})
|
|
7
7
|
})
|
|
@@ -2,35 +2,18 @@
|
|
|
2
2
|
"version": "0.2.0",
|
|
3
3
|
"configurations": [
|
|
4
4
|
{
|
|
5
|
-
"name": "
|
|
6
|
-
"type": "
|
|
7
|
-
"request": "
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"urlFilter": "http://127.0.0.1:4179/",
|
|
18
|
-
"timeout": 30000
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"name": "Attach to Ceru plugin",
|
|
22
|
-
"type": "pwa-chrome",
|
|
23
|
-
"request": "attach",
|
|
24
|
-
"port": 9223,
|
|
25
|
-
"webRoot": "${workspaceFolder}",
|
|
26
|
-
"sourceMaps": true,
|
|
27
|
-
"sourceMapPathOverrides": {
|
|
28
|
-
"ceru:///*": "${workspaceFolder}/*"
|
|
29
|
-
},
|
|
30
|
-
"skipFiles": ["**/node_modules/**"],
|
|
31
|
-
"address": "127.0.0.1",
|
|
32
|
-
"urlFilter": "http://127.0.0.1:4179/",
|
|
33
|
-
"timeout": 30000
|
|
5
|
+
"name": "Watch Ceru plugin",
|
|
6
|
+
"type": "node",
|
|
7
|
+
"request": "launch",
|
|
8
|
+
"program": "${workspaceFolder}/node_modules/@shiqianjiang/ceru-plugin-cli/dist/bin.js",
|
|
9
|
+
"args": [
|
|
10
|
+
"dev"
|
|
11
|
+
],
|
|
12
|
+
"cwd": "${workspaceFolder}",
|
|
13
|
+
"console": "integratedTerminal",
|
|
14
|
+
"skipFiles": [
|
|
15
|
+
"<node_internals>/**"
|
|
16
|
+
]
|
|
34
17
|
}
|
|
35
18
|
]
|
|
36
19
|
}
|
|
@@ -14,14 +14,13 @@
|
|
|
14
14
|
"background": {
|
|
15
15
|
"activeOnStart": true,
|
|
16
16
|
"beginsPattern": "^.*$",
|
|
17
|
-
"endsPattern": "^
|
|
17
|
+
"endsPattern": "^CERU_BUILD_READY "
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"command": "node",
|
|
21
21
|
"args": [
|
|
22
22
|
"${workspaceFolder}/node_modules/@shiqianjiang/ceru-plugin-cli/dist/bin.js",
|
|
23
|
-
"dev"
|
|
24
|
-
"--ensure-running"
|
|
23
|
+
"dev"
|
|
25
24
|
],
|
|
26
25
|
"options": {
|
|
27
26
|
"cwd": "${workspaceFolder}"
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
# vue-tsx / ts
|
|
2
2
|
|
|
3
|
-
Ceru Music
|
|
3
|
+
Ceru Music v3 插件开发模板。此目录是源码,不是安装包。
|
|
4
4
|
|
|
5
5
|
## 运行 demo
|
|
6
6
|
|
|
7
|
-
1.
|
|
7
|
+
1. 使用匹配的 v3 脚手架创建工程(本地开发套件可使用其 `npm run create` 命令):
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
ceru-plugin init my-plugin --template vue-tsx --lang ts
|
|
10
10
|
|
|
11
11
|
2. 进入目录,运行 npm install。
|
|
12
|
-
3. 运行 npm run dev
|
|
12
|
+
3. 运行 npm run dev,在澜音「设置 → 插件管理 → 管理设置 → 插件开发者模式」添加终端打印的 JS 文件。
|
|
13
13
|
4. 修改 src 中的代码;保存后自动类型检查并重载。
|
|
14
14
|
5. 运行 npm run build,只分发 dist/plugin.js。
|
|
15
15
|
|
|
16
16
|
## 编辑器
|
|
17
17
|
|
|
18
|
-
VS Code 按 F5 选择
|
|
19
|
-
|
|
18
|
+
VS Code 按 F5 选择 Watch Ceru plugin,会启动本地构建监听,不会另开 Electron。
|
|
19
|
+
已在终端运行 npm run dev 时不必再按 F5。
|
|
20
20
|
配置文件有 JSON Schema 提示,SDK 提供参数类型、图标名称与 Lodash 方法补全。
|
|
21
21
|
|
|
22
22
|
## 宿主资源
|
|
@@ -26,16 +26,16 @@ VS Code 按 F5 选择 Launch Ceru plugin;已有调试窗口时选择 Attach to
|
|
|
26
26
|
- 默认封面:await ctx.assets.url('placeholder.cover')。
|
|
27
27
|
- 共享工具:ctx.utils.lodash。
|
|
28
28
|
|
|
29
|
-
Vue
|
|
29
|
+
视图是否自带框架由清单的 `entry.views[].kind` 决定:`web` 页面打包自己用到的框架;`native` 由宿主绘制;`component` 复用宿主提供的 Vue、TDesign 和音乐组件。开发宿主风格的页面可选 `page-extension` 模板,播放器区域可选 `player-skin`,不需要复制桌面组件源码。
|
|
30
30
|
TypeScript、Vue 编译器、构建工具与开发服务器不会进入产物。
|
|
31
|
-
运行 npm run
|
|
31
|
+
运行 `npm run typecheck` 只检查工程,不生成发行文件。可选 `npm run preview` 验证构建产物并打印路径;将该文件加入桌面的插件开发者模式即可预览,不会启动服务器。
|
|
32
32
|
|
|
33
33
|
若 VS Code 打开的是父目录,请打开本工程的 ceru-plugin.code-workspace,
|
|
34
|
-
再在“运行和调试”中选择
|
|
34
|
+
再在“运行和调试”中选择 Watch Ceru plugin。
|
|
35
35
|
F5 执行当前下拉框中的配置,不会自动选择终端所在的子工程。
|
|
36
36
|
|
|
37
37
|
## 边界
|
|
38
38
|
|
|
39
|
-
本模板面向
|
|
39
|
+
本模板面向 v3 协议。需要支持 v3 的宿主。
|
|
40
40
|
凭据保险箱、完整音乐业务和 Guest 安装需要正式 Host;不支持的调试调用会明确报错。
|
|
41
41
|
不要把私人 API Key、卡密或发行私钥提交到仓库。
|
|
@@ -1,49 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": {
|
|
3
|
-
"manifestVersion":
|
|
3
|
+
"manifestVersion": 3,
|
|
4
4
|
"id": "local.ts",
|
|
5
5
|
"name": "ts",
|
|
6
6
|
"version": "0.1.0",
|
|
7
|
-
"description": "A Ceru Music
|
|
7
|
+
"description": "A Ceru Music v3 vue-tsx plugin",
|
|
8
|
+
"dataSchemas": {
|
|
9
|
+
"config": 1,
|
|
10
|
+
"state": 1
|
|
11
|
+
},
|
|
8
12
|
"engines": {
|
|
9
|
-
"hostApi": "^
|
|
10
|
-
"logicRuntime": "ceru-js@1"
|
|
11
|
-
"uiSchema": "^1.0.0"
|
|
13
|
+
"hostApi": "^3.0.0",
|
|
14
|
+
"logicRuntime": "ceru-js@1"
|
|
12
15
|
},
|
|
13
|
-
"
|
|
16
|
+
"entry": {
|
|
14
17
|
"logic": {
|
|
15
|
-
"
|
|
16
|
-
|
|
18
|
+
"activation": [
|
|
19
|
+
"onCommand:hello"
|
|
20
|
+
],
|
|
21
|
+
"module": "logic.main"
|
|
17
22
|
},
|
|
18
|
-
"
|
|
23
|
+
"views": [
|
|
19
24
|
{
|
|
20
25
|
"id": "page",
|
|
21
26
|
"kind": "web",
|
|
22
|
-
"
|
|
27
|
+
"module": "view.main"
|
|
23
28
|
}
|
|
24
29
|
]
|
|
25
30
|
},
|
|
26
|
-
"
|
|
27
|
-
"
|
|
31
|
+
"provides": {
|
|
32
|
+
"actions": [
|
|
28
33
|
{
|
|
29
34
|
"id": "hello",
|
|
30
|
-
"title": "Hello"
|
|
31
|
-
"action": "hello"
|
|
35
|
+
"title": "Hello"
|
|
32
36
|
}
|
|
33
|
-
]
|
|
34
|
-
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"uses": {
|
|
40
|
+
"permissions": []
|
|
41
|
+
},
|
|
42
|
+
"ui": {
|
|
43
|
+
"pages": [
|
|
35
44
|
{
|
|
36
45
|
"id": "page",
|
|
37
46
|
"group": "library",
|
|
38
47
|
"title": "ts",
|
|
39
|
-
"view": "page"
|
|
48
|
+
"view": "page",
|
|
49
|
+
"mount": "sidebar"
|
|
40
50
|
}
|
|
41
51
|
]
|
|
42
|
-
},
|
|
43
|
-
"permissions": [],
|
|
44
|
-
"dataSchemas": {
|
|
45
|
-
"config": 1,
|
|
46
|
-
"state": 1
|
|
47
52
|
}
|
|
48
53
|
},
|
|
49
54
|
"entries": {
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "ceru-plugin dev",
|
|
8
8
|
"build": "ceru-plugin build",
|
|
9
|
-
"typecheck": "
|
|
9
|
+
"typecheck": "ceru-plugin typecheck",
|
|
10
10
|
"validate": "ceru-plugin validate dist/plugin.js",
|
|
11
|
-
"preview": "ceru-plugin preview dist/plugin.js"
|
|
11
|
+
"preview": "ceru-plugin preview dist/plugin.js",
|
|
12
|
+
"check:compat": "ceru-plugin check-compat"
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"@shiqianjiang/ceru-plugin-sdk": "^0.
|
|
15
|
+
"@shiqianjiang/ceru-plugin-sdk": "^3.0.0"
|
|
15
16
|
},
|
|
16
17
|
"devDependencies": {
|
|
17
|
-
"@shiqianjiang/ceru-plugin-cli": "^0.
|
|
18
|
+
"@shiqianjiang/ceru-plugin-cli": "^3.0.0",
|
|
18
19
|
"typescript": "~5.9.3",
|
|
19
|
-
"electron": "^44.4.2",
|
|
20
20
|
"prettier": "^3.6.2",
|
|
21
21
|
"vue": "3.5.43"
|
|
22
22
|
}
|
|
@@ -2,6 +2,6 @@ import { definePlugin } from '@shiqianjiang/ceru-plugin-sdk'
|
|
|
2
2
|
|
|
3
3
|
export default definePlugin(async (ctx) => {
|
|
4
4
|
ctx.actions.register('hello', async () => {
|
|
5
|
-
await ctx.ui.notify({ key: 'hello', level: 'info', message: 'Hello Ceru
|
|
5
|
+
await ctx.ui.notify({ key: 'hello', level: 'info', message: 'Hello Ceru v3!' })
|
|
6
6
|
})
|
|
7
7
|
})
|
|
@@ -2,35 +2,18 @@
|
|
|
2
2
|
"version": "0.2.0",
|
|
3
3
|
"configurations": [
|
|
4
4
|
{
|
|
5
|
-
"name": "
|
|
6
|
-
"type": "
|
|
7
|
-
"request": "
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"urlFilter": "http://127.0.0.1:4179/",
|
|
18
|
-
"timeout": 30000
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"name": "Attach to Ceru plugin",
|
|
22
|
-
"type": "pwa-chrome",
|
|
23
|
-
"request": "attach",
|
|
24
|
-
"port": 9223,
|
|
25
|
-
"webRoot": "${workspaceFolder}",
|
|
26
|
-
"sourceMaps": true,
|
|
27
|
-
"sourceMapPathOverrides": {
|
|
28
|
-
"ceru:///*": "${workspaceFolder}/*"
|
|
29
|
-
},
|
|
30
|
-
"skipFiles": ["**/node_modules/**"],
|
|
31
|
-
"address": "127.0.0.1",
|
|
32
|
-
"urlFilter": "http://127.0.0.1:4179/",
|
|
33
|
-
"timeout": 30000
|
|
5
|
+
"name": "Watch Ceru plugin",
|
|
6
|
+
"type": "node",
|
|
7
|
+
"request": "launch",
|
|
8
|
+
"program": "${workspaceFolder}/node_modules/@shiqianjiang/ceru-plugin-cli/dist/bin.js",
|
|
9
|
+
"args": [
|
|
10
|
+
"dev"
|
|
11
|
+
],
|
|
12
|
+
"cwd": "${workspaceFolder}",
|
|
13
|
+
"console": "integratedTerminal",
|
|
14
|
+
"skipFiles": [
|
|
15
|
+
"<node_internals>/**"
|
|
16
|
+
]
|
|
34
17
|
}
|
|
35
18
|
]
|
|
36
19
|
}
|
|
@@ -14,14 +14,13 @@
|
|
|
14
14
|
"background": {
|
|
15
15
|
"activeOnStart": true,
|
|
16
16
|
"beginsPattern": "^.*$",
|
|
17
|
-
"endsPattern": "^
|
|
17
|
+
"endsPattern": "^CERU_BUILD_READY "
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"command": "node",
|
|
21
21
|
"args": [
|
|
22
22
|
"${workspaceFolder}/node_modules/@shiqianjiang/ceru-plugin-cli/dist/bin.js",
|
|
23
|
-
"dev"
|
|
24
|
-
"--ensure-running"
|
|
23
|
+
"dev"
|
|
25
24
|
],
|
|
26
25
|
"options": {
|
|
27
26
|
"cwd": "${workspaceFolder}"
|