Skip to content

Commit

Permalink
Merge pull request #190 from siguici/main
Browse files Browse the repository at this point in the history
CLI Tweaks
  • Loading branch information
siguici authored Dec 25, 2024
2 parents f9ee23b + 265eedd commit 4f5f83b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
8 changes: 4 additions & 4 deletions libs/create-qwikdev-astro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@
- **With `NPM`**:

```bash
npm create @qwikdev/astro@latest [project] [adapter] [...options]
npm create @qwikdev/astro@latest [destination] [adapter] [...options]
```

- **With `Yarn`**:

```bash
yarn create @qwikdev/astro [project] [adapter] [...options]
yarn create @qwikdev/astro [destination] [adapter] [...options]
```

- **With `PNPM`**:

```bash
pnpm create @qwikdev/astro [project] [adapter] [...options]
pnpm create @qwikdev/astro [destination] [adapter] [...options]
```

- **With `Bun`**:

```bash
bun create @qwikdev/astro [project] [adapter] [...options]
bun create @qwikdev/astro [destination] [adapter] [...options]
```

The `create @qwikdev/astro` command runs interactively without any arguments or options.
Expand Down
32 changes: 29 additions & 3 deletions libs/create-qwikdev-astro/tests/cli.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,38 @@ const getGeneratedDirs = (options: GeneratedOptions = {}): string[] => {
return dirs;
};

test.group(`create ${integration}`, (group) => {
group.setup(setup);
test.group(`create ${integration} app`, (group) => {
group.each.setup(setup);

test(`should create a new ${integration} app`, async (context) => {
test("without adapter", async (context) => {
return testRun([], context);
});

test("without adpater and using Biome", async (context) => {
return testRun(["--biome"], context, {
biome: true
});
});

test("with Node.js adapter", async (context) => {
return testRun(["node"], context);
});

test("with Node.js adapter and using Biome", async (context) => {
return testRun(["node", "--biome"], context, {
biome: true
});
});

test("with Deno adapter", async (context) => {
return testRun(["deno"], context);
});

test("with Deno adapter and using Biome", async (context) => {
return testRun(["deno", "--biome"], context, {
biome: true
});
});
});

test.group(`create ${integration} with yes and no options`, (group) => {
Expand Down

0 comments on commit 4f5f83b

Please sign in to comment.