Skip to content

Commit

Permalink
Use docker image with both bun and node in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
HuakunShen committed Sep 1, 2024
1 parent a1735da commit f2de5fe
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# docker build . -t huakunshen/kunkun-ext-builder:latest --platform linux/amd64
FROM node:20
RUN curl -fsSL https://bun.sh/install | bash -s "bun-v1.1.25"
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ Please always use `pnpm` to develop an extension.
# Run pnpm install and pnpm build for all extensions, to update pnpm lock file and build all extensions
bun ci/build-every-extension.ts
```

To develop a new extension, create it under `extensions`, make sure `pnpm install` and `pnpm build` work for the extension.

Run the following command to verify the extension:

```bash
npx @kksh/cli@latest verify
```
2 changes: 1 addition & 1 deletion extensions/download-twitter-video/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.kunkun.sh",
"name": "download-twitter-video",
"version": "0.0.2",
"version": "0.0.3",
"type": "module",
"kunkun": {
"name": "Download Twitter Video",
Expand Down
2 changes: 1 addition & 1 deletion extensions/hacker-news/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.kunkun.sh/",
"version": "0.0.3",
"version": "0.0.4",
"name": "hacker-news",
"module": "index.ts",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion extensions/ip-info/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.kunkun.sh/",
"name": "ip-info",
"version": "0.0.4",
"version": "0.0.5",
"module": "index.ts",
"type": "module",
"kunkun": {
Expand Down
2 changes: 1 addition & 1 deletion extensions/vscode/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.kunkun.sh/",
"name": "vscode",
"version": "0.0.3",
"version": "0.0.4",
"type": "module",
"kunkun": {
"name": "VSCode",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ for ext in $(ls extensions); do
-v $(pwd)/extensions/$ext:/workspace \
-w /workspace --rm \
--platform=linux/amd64 \
node:20 /entrypoint.sh
huakunshen/kunkun-ext-builder:latest /entrypoint.sh
done

0 comments on commit f2de5fe

Please sign in to comment.