Skip to content

Commit

Permalink
Merge pull request #202 from siguici/main
Browse files Browse the repository at this point in the history
🚸 Use `./qwik-astro-app` as default project destination
  • Loading branch information
siguici authored Dec 30, 2024
2 parents 49ef661 + ffb4669 commit f6ffd41
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions libs/create-qwikdev-astro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@

**Types of arguments:**

| Name | Type | Default value | Description |
| :-----------| :--------------------------| :-------------| :---------------------------------|
| destination | String | . | Directory of the project. |
| adapter | "deno" or "node" or "none" | none | Server adapter. |
| Name | Type | Default value | Description |
| :-----------| :--------------------------| :----------------| :---------------------------------|
| destination | String | ./qwik-astro-app | Directory of the project. |
| adapter | "deno" or "node" or "none" | none | Server adapter. |

**Types of options:**

Expand Down Expand Up @@ -94,7 +94,7 @@
```typescript
export const defaultDefinition = {
destination: ".",
destination: "./qwik-astro-app",
adapter: "none",
force: undefined,
add: undefined,
Expand Down
2 changes: 1 addition & 1 deletion libs/create-qwikdev-astro/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export type EnsureRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T,
export type UserDefinition = Partial<Definition>;

export const defaultDefinition = {
destination: ".",
destination: "./qwik-astro-app",
adapter: "none",
force: undefined,
install: undefined,
Expand Down
4 changes: 2 additions & 2 deletions libs/create-qwikdev-astro/tests/api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ test.group("default definition", () => {

test("destination", ({ assert }) => {
assert.isTrue(definition.get("destination").isString());
assert.isTrue(definition.get("destination").equals("."));
assert.isTrue(definition.get("destination").equals("./qwik-astro-app"));
assert.isTrue(definition.get("destination").equals(defaultDefinition.destination));
});

Expand Down Expand Up @@ -121,7 +121,7 @@ test.group("arguments", () => {
let definition = tester.parse([]);

assert.isTrue(definition.get("destination").isString());
assert.isTrue(definition.get("destination").equals("."));
assert.isTrue(definition.get("destination").equals("./qwik-astro-app"));
assert.isTrue(definition.get("adapter").equals("none"));
});

Expand Down

0 comments on commit f6ffd41

Please sign in to comment.