A CLI for scaffolding ATProto web applications

fix tests

besaid.zone 4415b7f3 b8dbdec5

verified
+8 -8
+4 -4
CONTRIBUTING.md
··· 2 2 3 3 - Clone the repository 4 4 - This repository uses PNPM so make sure you have that installed 5 - - Run ``pnpm install`` 6 - - Run ``pnpm dev init`` to run the CLI in dev mode 5 + - Run `pnpm install` 6 + - Run `pnpm dev init` to run the CLI in dev mode 7 7 8 8 ## Commit Messages 9 9 ··· 15 15 16 16 ## Adding a new template 17 17 18 - New templates should go in the ``templates`` folder. See the other existing templates for an idea of what needs to be added. 18 + New templates should go in the `templates` folder. See the other existing templates for an idea of what needs to be added. 19 19 20 - You'll also want to update the ``removableTemplateFiles`` function to remove files you don't need/want to remove from the template generated from the underlying vite command. 20 + You'll also want to update the `removableTemplateFiles` function to remove files you don't need/want to remove from the template generated from the underlying vite command.
+1 -1
README.md
··· 1 1 # create-atproto-app 2 2 3 - This is a thin wrapper on top of ``create-vite`` that adds specific code for working with the AT Protocol. 3 + This is a thin wrapper on top of `create-vite` that adds specific code for working with the AT Protocol. 4 4 5 5 ## Getting Started 6 6
+3 -3
__tests__/cli.test.ts
··· 14 14 } 15 15 16 16 test("should prompt for project name", async () => { 17 - const { stdout } = await run(["create"]); 17 + const { stdout } = await run(["init"]); 18 18 expect(stdout).toContain("Please provide a name for this project:"); 19 19 }); 20 20 21 21 test("should prompt framework", async () => { 22 - const { stdout } = await run(["create", "my-app"]); 22 + const { stdout } = await run(["init", "my-app"]); 23 23 expect(stdout).toContain("Select a framework:"); 24 24 }); 25 25 26 26 test("should prompt variant", async () => { 27 - const { stdout } = await run(["create", "my-app", "--framework", "react"]); 27 + const { stdout } = await run(["init", "my-app", "--framework", "react"]); 28 28 expect(stdout).toContain("Select a framework variant:"); 29 29 }); 30 30