create-ceru-plugin 0.1.0 → 0.2.1

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.
Files changed (3) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +6 -4
  3. package/package.json +41 -41
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Ceru Music contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ceru Music contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md CHANGED
@@ -2,22 +2,24 @@
2
2
 
3
3
  类似 create-vue 的 Ceru Music 插件脚手架。
4
4
 
5
- ~~~bash
5
+ ```bash
6
6
  npm create ceru-plugin@latest
7
- ~~~
7
+ ```
8
8
 
9
9
  也可以直接选择模板:
10
10
 
11
- ~~~bash
11
+ ```bash
12
12
  npm create ceru-plugin@latest my-plugin -- --template react --lang ts
13
13
  cd my-plugin
14
14
  npm install
15
15
  npm run dev
16
16
  npm run build
17
- ~~~
17
+ ```
18
18
 
19
19
  提供 9 种模板、TS/JS 变体、VS Code 配置、小 demo 与离线模板快照。最终只分发 dist/plugin.js。
20
20
 
21
+ 脚手架是可选的:不需要第三方包或编译语法时,可以直接编写 `exports.manifest / exports.activate / exports.surfaces` 单文件插件。CLI 项目中的第三方依赖会打入最终 JS,Host 模块不会重复打包。
22
+
21
23
  模板:source、connected-library、importer、guest-adapter、web-surface、vue、vue-tsx、react、web-dist。
22
24
 
23
25
  [工具链指南](https://github.com/CeruMusic/CeruMusic-Plugin-Cli#readme) · [模板和社区插件](https://github.com/CeruMusic/CeruMusic-Plugin-Template)
package/package.json CHANGED
@@ -1,41 +1,41 @@
1
- {
2
- "name": "create-ceru-plugin",
3
- "version": "0.1.0",
4
- "description": "Create a TypeScript Ceru Music v2 plugin that builds to one JavaScript file",
5
- "type": "module",
6
- "bin": {
7
- "create-ceru-plugin": "./dist/bin.js"
8
- },
9
- "files": [
10
- "dist",
11
- "README.md",
12
- "LICENSE"
13
- ],
14
- "license": "MIT",
15
- "author": "澜音团队",
16
- "engines": {
17
- "node": ">=22.12.0"
18
- },
19
- "dependencies": {
20
- "@shiqianjiang/ceru-plugin-cli": "0.1.0"
21
- },
22
- "publishConfig": {
23
- "access": "public",
24
- "registry": "https://registry.npmjs.org/"
25
- },
26
- "repository": {
27
- "type": "git",
28
- "url": "git+https://github.com/CeruMusic/CeruMusic-Plugin-Cli.git",
29
- "directory": "packages/create"
30
- },
31
- "bugs": {
32
- "url": "https://github.com/CeruMusic/CeruMusic-Plugin-Cli/issues"
33
- },
34
- "homepage": "https://github.com/CeruMusic/CeruMusic-Plugin-Cli#readme",
35
- "keywords": [
36
- "ceru-music",
37
- "plugin",
38
- "typescript",
39
- "electron"
40
- ]
41
- }
1
+ {
2
+ "name": "create-ceru-plugin",
3
+ "version": "0.2.1",
4
+ "description": "Create a TypeScript Ceru Music v2 plugin that builds to one JavaScript file",
5
+ "type": "module",
6
+ "bin": {
7
+ "create-ceru-plugin": "./dist/bin.js"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "README.md",
12
+ "LICENSE"
13
+ ],
14
+ "license": "MIT",
15
+ "author": "澜音团队",
16
+ "engines": {
17
+ "node": ">=22.12.0"
18
+ },
19
+ "dependencies": {
20
+ "@shiqianjiang/ceru-plugin-cli": "0.2.1"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public",
24
+ "registry": "https://registry.npmjs.org/"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/CeruMusic/CeruMusic-Plugin-Cli.git",
29
+ "directory": "packages/create"
30
+ },
31
+ "bugs": {
32
+ "url": "https://github.com/CeruMusic/CeruMusic-Plugin-Cli/issues"
33
+ },
34
+ "homepage": "https://github.com/CeruMusic/CeruMusic-Plugin-Cli#readme",
35
+ "keywords": [
36
+ "ceru-music",
37
+ "plugin",
38
+ "typescript",
39
+ "electron"
40
+ ]
41
+ }