Files
InvoiceShelf/Makefile
Darko Gjorgjijoski e48212b18a build: migrate frontend tooling to pnpm (v3) (#678)
* build: migrate frontend tooling to pnpm (v3)

Rebuilds the stale #673 on current 3.x so it doesn't revert #657's test
split, the Node-24 action bumps, or composer-install@4.0.0.

- package.json: packageManager pnpm@11.6.0; drop dead 'resolutions'
- pnpm-workspace.yaml: nodeLinker hoisted, allowBuilds vue-demi,
  overrides brace-expansion (replaces resolutions)
- pnpm-lock.yaml generated via 'pnpm import' from yarn.lock (keeps the
  resolved versions, incl. vite 8.0.3 / rolldown rc.12); yarn.lock removed
- docker.yaml + release.yaml: pnpm/action-setup@v6 + cache pnpm + pnpm
  install/build (action versions and the #657 split left intact; check.yaml
  needs no change — its test job is PHP-only after #657)
- 3 Dockerfiles: node:24 + corepack + pnpm install --frozen-lockfile && pnpm build
- Makefile, composer 'dev' script, CLAUDE.md, .gitignore -> pnpm

* fix(deps): pin vite to 8.0.5 (security)

Now that 3.x is the default branch, Dependabot flags vite <8.0.5. Pin to
8.0.5 (the patched version), which keeps rolldown 1.0.0-rc.12 — still
below 8.0.15 where the broken rolldown 1.0.3 (the init_runtime_dom_esm_bundler
chunk regression) starts, so the build stays clean. Mirrors v2's #674.
2026-06-12 14:04:16 +02:00

77 lines
2.7 KiB
Makefile

.PHONY: dist-gen dist-clean dist clean test
composer:
rm -r vendor 2> /dev/null || true
composer install --prefer-dist --no-dev
npm-build:
rm -r public/build 2> /dev/null || true
rm -r node_modules 2> /dev/null || true
corepack enable
pnpm install --frozen-lockfile
pnpm build
dist-gen: clean composer npm-build
@echo "packaging..."
@mkdir InvoiceShelf
@mkdir InvoiceShelf/public
@cp -r app InvoiceShelf
@cp -r bootstrap InvoiceShelf
@cp -r config InvoiceShelf
@cp -r database InvoiceShelf
@cp -r public/build InvoiceShelf/public
@cp -r public/favicons InvoiceShelf/public
@cp -r public/.htaccess InvoiceShelf/public
@cp -r public/index.php InvoiceShelf/public
@cp -r public/robots.txt InvoiceShelf/public
@cp -r public/web.config InvoiceShelf/public
@cp -r resources InvoiceShelf
@cp -r lang InvoiceShelf
@cp -r routes InvoiceShelf
@cp -r storage InvoiceShelf
@cp -r vendor InvoiceShelf 2> /dev/null || true
@cp -r scripts InvoiceShelf
@cp -r version.md InvoiceShelf
@cp -r .env.example InvoiceShelf
@cp -r artisan InvoiceShelf
@cp -r composer.json InvoiceShelf
@cp -r composer.lock InvoiceShelf
@cp -r LICENSE InvoiceShelf
@cp -r readme.md InvoiceShelf
@cp -r SECURITY.md InvoiceShelf
@cp -r server.php InvoiceShelf
@touch InvoiceShelf/storage/logs/laravel.log
dist-clean: dist-gen
find InvoiceShelf -wholename '*/[Tt]ests/*' -delete
find InvoiceShelf -wholename '*/[Tt]est/*' -delete
@rm -r InvoiceShelf/storage/framework/cache/data/* 2> /dev/null || true
@rm InvoiceShelf/storage/framework/sessions/* 2> /dev/null || true
@rm InvoiceShelf/storage/framework/views/* 2> /dev/null || true
@rm InvoiceShelf/storage/logs/* 2> /dev/null || true
@php scripts/generate-manifest.php InvoiceShelf
dist: dist-clean
@zip -r InvoiceShelf.zip InvoiceShelf
clean:
@rm build/* 2> /dev/null || true
@rm -r InvoiceShelf 2> /dev/null || true
@rm -r public/build 2> /dev/null || true
@rm -r node_modules 2> /dev/null || true
@rm -r vendor 2> /dev/null || true
install: composer npm-build
php artisan migrate
test:
@if [ -x "vendor/bin/pest" ]; then \
./vendor/bin/pest --stop-on-failure; \
else \
echo ""; \
echo "Please install pest:"; \
echo ""; \
echo " composer install"; \
echo ""; \
fi