feat: switch to pnpm
This commit is contained in:
parent
eeb67b8e9b
commit
7a6bd81d9e
16
CLAUDE.md
16
CLAUDE.md
|
|
@ -7,12 +7,12 @@ Printable math worksheet generator (A4 PDF) for children aged 7–9. Claude Code
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run build:css # Build Tailwind CSS (minified)
|
pnpm build:css # Build Tailwind CSS (minified)
|
||||||
npm run build:css:watch # Watch mode for CSS
|
pnpm build:css:watch # Watch mode for CSS
|
||||||
npm run preview # Serve HTML at localhost:3000 with live-reload
|
pnpm preview # Serve HTML at localhost:3000 with live-reload
|
||||||
npm run dev # CSS watch + preview server (concurrent)
|
pnpm dev # CSS watch + preview server (concurrent)
|
||||||
npm run pdf -- <file> # Convert HTML file to PDF
|
pnpm pdf -- <file> # Convert HTML file to PDF
|
||||||
npm run remove-bg -- <file|dir> # Remove white background from PNG icons
|
pnpm remove-bg -- <file|dir> # Remove white background from PNG icons
|
||||||
```
|
```
|
||||||
|
|
||||||
Generate images via Banatie API:
|
Generate images via Banatie API:
|
||||||
|
|
@ -186,5 +186,5 @@ Puppeteer settings for A4 worksheets:
|
||||||
3. Claude reads `src/templates/space-base.html` + `src/examples/space-worksheet.html` as references
|
3. Claude reads `src/templates/space-base.html` + `src/examples/space-worksheet.html` as references
|
||||||
4. Claude generates HTML file in `output/html/` — creates concrete problems from `task` text, assigns unique shuffled icons, builds all pages
|
4. Claude generates HTML file in `output/html/` — creates concrete problems from `task` text, assigns unique shuffled icons, builds all pages
|
||||||
5. Add a link to the new document in `output/index.html` (card with title and path)
|
5. Add a link to the new document in `output/index.html` (card with title and path)
|
||||||
6. Run `npm run pdf -- output/html/<file>.html` to create PDF
|
6. Run `pnpm pdf -- output/html/<file>.html` to create PDF
|
||||||
7. Preview with `npm run preview` at localhost:3000
|
7. Preview with `pnpm preview` at localhost:3000
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -5,11 +5,11 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:css": "npx @tailwindcss/cli -i src/styles/main.css -o output/css/styles.css --minify",
|
"build:css": "tailwindcss -i src/styles/main.css -o output/css/styles.css --minify",
|
||||||
"build:css:watch": "npx @tailwindcss/cli -i src/styles/main.css -o output/css/styles.css --watch",
|
"build:css:watch": "tailwindcss -i src/styles/main.css -o output/css/styles.css --watch",
|
||||||
"preview": "browser-sync start --config bs-config.cjs",
|
"preview": "browser-sync start --config bs-config.cjs",
|
||||||
"pdf": "node src/scripts/generate-pdf.mjs",
|
"pdf": "node src/scripts/generate-pdf.mjs",
|
||||||
"dev": "concurrently \"npm run build:css:watch\" \"npm run preview\"",
|
"dev": "concurrently \"pnpm build:css:watch\" \"pnpm preview\"",
|
||||||
"split-sprites": "node src/scripts/split-sprites.mjs",
|
"split-sprites": "node src/scripts/split-sprites.mjs",
|
||||||
"remove-bg": "node src/scripts/remove-bg.mjs"
|
"remove-bg": "node src/scripts/remove-bg.mjs"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,4 @@
|
||||||
|
ignoredBuiltDependencies:
|
||||||
|
- '@parcel/watcher'
|
||||||
|
- puppeteer
|
||||||
|
- sharp
|
||||||
Loading…
Reference in New Issue