A CLI for scaffolding ATProto web applications

add build step

besaid.zone 244eb6de 9ec8b2ad

verified
+9 -5
+3
.tangled/workflows/test.yml
··· 16 16 - name: install 17 17 command: pnpm i --frozen-lockfile 18 18 19 + - name: build 20 + command: pnpm build 21 + 19 22 - name: test 20 23 command: pnpm test:run
+6 -5
__tests__/cli.test.ts
··· 1 + import type { SyncOptions } from "execa"; 2 + 3 + import { execaCommandSync } from "execa"; 1 4 import { join } from "node:path"; 2 5 import { expect, test } from "vitest"; 3 - import type { SyncOptions } from "execa" 4 - import {execaCommandSync} from "execa" 5 6 6 7 const CLI_PATH = join(import.meta.dirname, ".."); 7 8 8 9 async function run(args: string[], options?: SyncOptions) { 9 10 return execaCommandSync(`node ${CLI_PATH} ${args.join(" ")}`, { 10 - env: { ...process.env, _VITE_TEST_CLI: 'true' }, 11 - ...options 12 - }) 11 + env: { ...process.env, _VITE_TEST_CLI: "true" }, 12 + ...options, 13 + }); 13 14 } 14 15 15 16 test("should prompt for project name", async () => {