Skip to content

Commit 393e4ff

Browse files
authored
🔀 Merge pull request #264 from siguici/main
CLI Improvement — Overhaul Project Scaffolding, Upgrade Dependencies & Integrate Panam for Consistent CI/CD
2 parents dcb04ef + 57e4200 commit 393e4ff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1566
-3865
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
with:
3131
version: 9
3232

33+
- name: 📦️ Install Panam
34+
run: pnpm i -g panam-cli
35+
3336
- name: ✅ Install dependencies, check code & run E2E tests
3437
run: make test
3538

.github/workflows/cli.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
- name: 🔥 Remove lockfile
2727
run: rm pnpm-lock.yaml
2828

29+
- name: 📦️ Install Panam
30+
run: npm i -g panam-cli
31+
2932
- name: Setup Test Environment
3033
uses: siguici/setup-js@v1
3134
with:

.github/workflows/continuous-releases.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
with:
1515
version: 9
1616

17+
- name: 📦️ Install Panam
18+
run: pnpm i -g panam-cli
19+
1720
- uses: actions/setup-node@v4
1821
with:
1922
node-version: 20

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
with:
2626
version: 9
2727

28+
- name: 📦️ Install Panam
29+
run: pnpm i -g panam-cli
30+
2831
# Use the Makefile's install target
2932
- name: Install Dependencies
3033
run: make install
@@ -36,4 +39,4 @@ jobs:
3639
publish: make release
3740
env:
3841
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

apps/deno-demo/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
"@builder.io/qwik": "^1.14.1",
1717
"@deno/astro-adapter": "^0.3.1",
1818
"@qwikdev/astro": "workspace:*",
19-
"@types/react": "^18.3.18",
20-
"@types/react-dom": "^18.3.5",
21-
"astro": "^5.8.0",
19+
"@types/react": "^18.3.23",
20+
"@types/react-dom": "^18.3.7",
21+
"astro": "^5.9.2",
2222
"react": "^18.3.1",
2323
"react-dom": "^18.3.1",
24-
"typescript": "^5.7.2"
24+
"typescript": "^5.8.3"
2525
}
2626
}

apps/node-demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"@astrojs/react": "4.3.0",
1717
"@builder.io/qwik": "^1.14.1",
1818
"@qwikdev/astro": "workspace:*",
19-
"@types/react": "^18.3.18",
20-
"@types/react-dom": "^18.3.5",
19+
"@types/react": "^18.3.23",
20+
"@types/react-dom": "^18.3.7",
2121
"astro": "5.8.0",
2222
"react": "^18.3.1",
2323
"react-dom": "^18.3.1"

apps/website/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
"dependencies": {
2121
"@astrojs/check": "^0.9.4",
2222
"@builder.io/qwik": "^1.14.1",
23-
"@fontsource-variable/unbounded": "^5.1.1",
24-
"@iconify-json/lucide": "^1.2.23",
23+
"@fontsource-variable/unbounded": "^5.2.6",
24+
"@iconify-json/lucide": "^1.2.47",
2525
"@qwikdev/astro": "workspace:*",
26-
"astro": "^5.8.0",
27-
"astro-icon": "^1.1.4",
26+
"astro": "^5.9.2",
27+
"astro-icon": "^1.1.5",
2828
"sharp": "^0.33.5"
2929
},
3030
"devDependencies": {
31-
"@biomejs/biome": "^1.7.0"
31+
"@biomejs/biome": "^1.9.4"
3232
}
3333
}

libs/create-qwikdev-astro/README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,31 @@
1-
# Create @qwikdev/astro 🎉
1+
# Create [@qwikdev/astro](https://github.com/QwikDev/astro) 🦾
22

33
## **The Ultimate Starter for QwikDev/Astro Projects**
44

55
Seamlessly scaffold content-driven web projects with the power of [QwikDev/Astro](https://github.com/QwikDev/astro).
66
Whether you're building blazing-fast blogs, portfolios, or scalable applications,
77
this CLI has you covered.
88

9+
## Quickstart 🎉
10+
11+
### Have an existing project?
12+
13+
If you already have an existing Astro project and want to add the integration,
14+
you can do so with the following command:
15+
16+
```bash
17+
npm create @qwikdev/astro@latest --add
18+
```
19+
20+
### Create a new project
21+
22+
To create a brand new project,
23+
you can use the following command:
24+
25+
```bash
26+
npm create @qwikdev/astro@latest
27+
```
28+
929
---
1030

1131
## 🚀 **Installation & Usage**
@@ -62,7 +82,7 @@ Run the following command using your preferred package manager:
6282
| `--copy` / `--no-copy` | `-c` / `--no-c` | Copy files without overwriting. |
6383
| `--biome` / `--no-biome` | | Use Biome instead of ESLint/Prettier. |
6484
| `--install` / `--no-install` | `-i` / `--no-i` | Automatically install dependencies. |
65-
| `--git` / `--no-git` | | Initialize a Git repository. |
85+
| `--git` / `--no-git` | | Use Git to save changes. |
6686
| `--ci` / `--no-ci` | | Add CI workflow. |
6787
| `--yes` | `-y` | Accept all default configurations. |
6888
| `--no` | `-n` | Decline all default configurations. |

libs/create-qwikdev-astro/package.json

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"build": "tsup-node --env.NODE_ENV production",
1010
"prod": "pnpm check && pnpm build",
1111
"start": "tsup-node --env.NODE_ENV development --watch",
12-
"test": "node --loader tsm --enable-source-maps bin/test.ts"
12+
"test": "pnm tsx bin/test.ts",
13+
"tsx": "tsx"
1314
},
1415
"contributors": [
1516
{
@@ -67,12 +68,6 @@
6768
"require": "./dist/core.cjs",
6869
"default": "./dist/core.js"
6970
},
70-
"./process": {
71-
"types": "./dist/process.d.ts",
72-
"import": "./dist/process.js",
73-
"require": "./dist/process.cjs",
74-
"default": "./dist/process.js"
75-
},
7671
"./tester": {
7772
"types": "./dist/tester.d.ts",
7873
"import": "./dist/tester.js",
@@ -87,10 +82,7 @@
8782
},
8883
"./package.json": "./package.json"
8984
},
90-
"files": [
91-
"dist",
92-
"stubs"
93-
],
85+
"files": ["dist", "stubs"],
9486
"bin": "./dist/cli.js",
9587
"keywords": [
9688
"astro-integration",
@@ -116,26 +108,27 @@
116108
},
117109
"bugs": "https://github.com/@QwikDev/astro/issues",
118110
"dependencies": {
119-
"@clack/prompts": "^0.8.2",
111+
"@clack/prompts": "^0.11.0",
120112
"cross-spawn": "^7.0.6",
121-
"fs-extra": "^11.2.0",
113+
"fs-extra": "^11.3.0",
122114
"kleur": "^4.1.5",
115+
"panam": "^0.3.0",
116+
"tsx": "^4.20.1",
123117
"which": "^5.0.0",
124118
"which-pm-runs": "^1.1.0",
125-
"yargs": "^17.7.2"
119+
"yargs": "^18.0.0"
126120
},
127121
"devDependencies": {
128-
"@japa/assert": "^3.0.0",
129-
"@japa/runner": "^3.1.4",
122+
"@japa/assert": "^4.0.1",
123+
"@japa/runner": "^4.2.0",
130124
"@types/cross-spawn": "^6.0.6",
131125
"@types/fs-extra": "^11.0.4",
132-
"@types/node": "^22.10.2",
126+
"@types/node": "^24.0.0",
133127
"@types/which": "^3.0.4",
134128
"@types/which-pm-runs": "^1.0.2",
135129
"@types/yargs": "^17.0.33",
136-
"tslib": "^2.8.1",
137-
"tsm": "^2.3.0",
138-
"tsup": "^8.3.5",
139-
"typescript": "^5.7.2"
130+
"rimraf": "^6.0.1",
131+
"tsup": "^8.5.0",
132+
"typescript": "^5.8.3"
140133
}
141134
}

0 commit comments

Comments
 (0)