Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on:
pull_request:
branches: [main]
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
name: Build, typecheck & test (Node ${{ matrix.node }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node: [24]
include:
# fastest feedback on PRs; full matrix only for pushes to main
- os: macos-latest
node: 24
if: github.event_name == 'push'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node }}

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: latest

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Build all plugins
run: bun run build

- name: Typecheck
run: bun run typecheck

- name: Test
run: bun test
192 changes: 191 additions & 1 deletion bun.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions plugins/zcode-model-config-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.5",
"@vitejs/plugin-react": "^5.0.0",
"@voidzero-dev/vite-plus-core": "^0.3.0",
"lucide-react": "^1.39.0",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"typescript": "^7.0.2"
"typescript": "^7.0.2",
"vite-plus": "^0.3.0"
}
}
6 changes: 3 additions & 3 deletions plugins/zcode-model-config-plugin/scripts/build.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node
// Drive @voidzero-dev/vite-plus-core (the engine behind `vp`) from a plain script.
// vite-plus-core doesn't ship a `vp` CLI binary, so we call its `build()` API.
import { build } from "@voidzero-dev/vite-plus-core";
// Drive the Vite+ build() API from a plain script (vite-plus ships the `vp`
// CLI, but this build only needs the programmatic API).
import { build } from "vite-plus";

const mode = (process.argv[2] ?? "web") as "web" | "node";
if (mode !== "web" && mode !== "node") {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as fs from "node:fs";
import * as path from "node:path";
import type { Plugin } from "@voidzero-dev/vite-plus-core";
import type { Plugin } from "vite-plus";

export interface InlineAssetsOptions {
outPath: string;
Expand Down
16 changes: 13 additions & 3 deletions plugins/zcode-model-config-plugin/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"types": ["@types/bun", "vite/client", "node"],
"lib": ["ES2023", "DOM", "DOM.Iterable"],
"types": [
"@types/bun",
"vite-plus/client",
"node"
],
"lib": [
"ES2023",
"DOM",
"DOM.Iterable"
],
"jsx": "react-jsx",
"paths": {
"@shared/*": ["./src/shared/*"]
"@shared/*": [
"./src/shared/*"
]
}
},
"include": [
Expand Down
2 changes: 1 addition & 1 deletion plugins/zcode-model-config-plugin/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from "@voidzero-dev/vite-plus-core";
import { defineConfig } from "vite-plus";
import * as path from "node:path";
import react from "@vitejs/plugin-react";
import stylex from "@stylexjs/unplugin";
Expand Down