poon-choi 0.0.2 → 0.0.3
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 +4 -5
- package/README.zh.md +4 -5
- package/bin/index.ts +13 -2
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
English | [中文](./README.zh.md)
|
|
4
4
|
|
|
5
|
+
<p align="center">
|
|
6
|
+
<img src="https://koboyo.com/icons/svg/geometric-mezze-platter.svg" width="30%" />
|
|
7
|
+
</p>
|
|
8
|
+
|
|
5
9
|
> A tiny local server that plates up your images into a WeChat cover — like a **poon choi**, one basin holding many ingredients, layer by layer.
|
|
6
10
|
|
|
7
11
|
[](https://www.npmjs.com/package/poon-choi)
|
|
8
12
|
[](https://www.npmjs.com/package/poon-choi)
|
|
9
|
-
[](./LICENSE)
|
|
10
13
|
|
|
11
14
|
**poon-choi** (盆菜) is a Cantonese dish where many ingredients are stacked in one basin and shared from the top down. This tool does the same for images: drop in 1–6 pictures, and it plates them into a single **2.35:1 WeChat cover (900×383)**, plus a **1:1 thumbnail (383×383)**.
|
|
12
15
|
|
|
@@ -104,7 +107,3 @@ pnpm install
|
|
|
104
107
|
pnpm dev # start the local server in watch mode
|
|
105
108
|
pnpm build # build for distribution
|
|
106
109
|
```
|
|
107
|
-
|
|
108
|
-
## License
|
|
109
|
-
|
|
110
|
-
[MIT](./LICENSE)
|
package/README.zh.md
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
# 🥘 盆菜(poon-choi)
|
|
2
2
|
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://koboyo.com/icons/svg/geometric-mezze-platter.svg" width="30%" />
|
|
5
|
+
</p>
|
|
6
|
+
|
|
3
7
|
[English](./README.md) | 中文
|
|
4
8
|
|
|
5
9
|
> 一个轻量本地服务,把多张图片拼合成微信封面——就像一份**盆菜**,一钵容纳多种不同食材。
|
|
6
10
|
|
|
7
11
|
[](https://www.npmjs.com/package/poon-choi)
|
|
8
12
|
[](https://www.npmjs.com/package/poon-choi)
|
|
9
|
-
[](./LICENSE)
|
|
10
13
|
|
|
11
14
|
**poon-choi(盆菜)** 是一道粤菜,多种食材码在同一个盆里,由上至下享用。这个工具也是同理:放入 1–6 张图片,它会自动拼出一张 **2.35:1 的微信封面(900×383)**,同时生成一张 **1:1 的缩略图(383×383)**。
|
|
12
15
|
|
|
@@ -101,7 +104,3 @@ pnpm install
|
|
|
101
104
|
pnpm dev # 启动监听模式的本地服务
|
|
102
105
|
pnpm build # 打包发布版本
|
|
103
106
|
```
|
|
104
|
-
|
|
105
|
-
## 许可证
|
|
106
|
-
|
|
107
|
-
[MIT](./LICENSE)
|
package/bin/index.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { spawn } from 'node:child_process';
|
|
6
6
|
import { parseArgs } from 'node:util';
|
|
7
|
+
import { version, name } from '../package.json';
|
|
7
8
|
|
|
8
9
|
main();
|
|
9
10
|
|
|
@@ -15,10 +16,15 @@ function main() {
|
|
|
15
16
|
type: 'string',
|
|
16
17
|
default: '3000',
|
|
17
18
|
},
|
|
19
|
+
|
|
20
|
+
version: {
|
|
21
|
+
short: 'v',
|
|
22
|
+
type: 'boolean',
|
|
23
|
+
}
|
|
18
24
|
},
|
|
19
25
|
});
|
|
20
26
|
|
|
21
|
-
console.log(values);
|
|
27
|
+
// console.log(values);
|
|
22
28
|
|
|
23
29
|
const port = Number(values.port);
|
|
24
30
|
// validate port in a valid range
|
|
@@ -30,7 +36,12 @@ function main() {
|
|
|
30
36
|
return
|
|
31
37
|
}
|
|
32
38
|
|
|
33
|
-
|
|
39
|
+
if (true || values.version) {
|
|
40
|
+
console.log(`\n${name} v${version}\n\n---\n`);
|
|
41
|
+
// return;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
spawn('npx', ['vite', 'dev', `--port=${port}`, '--clearScreen false'], {
|
|
34
45
|
stdio: 'inherit',
|
|
35
46
|
shell: true,
|
|
36
47
|
})
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "poon-choi",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "poon-choi 🍲 is a wechat-cover-studio: a cover mosaic tool to generate wechat (2.35:1) cover image using multiple images",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "poon-choi 🍲 is a wechat-cover-studio: a cover mosaic tool to generate wechat (2.35:1) cover image using multiple images.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"imports": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"pub:minor": "npm version minor",
|
|
29
29
|
"pub:major": "npm version major",
|
|
30
30
|
"preversion": "npm test",
|
|
31
|
-
"postversion": "npm publish && git commit -m
|
|
31
|
+
"postversion": "npm publish && git commit -m \"chore: publish\" package.json && git push && git push --tags"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@tailwindcss/vite": "^4.1.18",
|
|
@@ -64,6 +64,11 @@
|
|
|
64
64
|
"lightningcss"
|
|
65
65
|
]
|
|
66
66
|
},
|
|
67
|
+
"repository": {
|
|
68
|
+
"type": "git",
|
|
69
|
+
"url": "https://github.com/legend80s/wechat-cover-studio-poon-choi"
|
|
70
|
+
},
|
|
71
|
+
"homepage": "https://github.com/legend80s/wechat-cover-studio-poon-choi/blob/main/wechat-cover-studio/README.md",
|
|
67
72
|
"keywords": [
|
|
68
73
|
"wechat",
|
|
69
74
|
"cover",
|