create-ceru-plugin 0.1.2 → 0.2.2

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 (2) hide show
  1. package/README.md +6 -4
  2. package/package.json +41 -41
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.2",
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.2"
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.2",
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.2"
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
+ }