feat(package.json): add unified development command to run 11ty + php concurrently

This commit is contained in:
Cory Dransfeldt 2025-05-07 12:54:18 -07:00
parent afa7144142
commit b6dab4831f
No known key found for this signature in database
5 changed files with 354 additions and 37 deletions

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "3.4.6",
"version": "3.5.0",
"description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module",
"engines": {
@ -9,9 +9,11 @@
"scripts": {
"start": "eleventy --serve",
"start:quick": "eleventy --serve --incremental --ignore-initial",
"build": "eleventy",
"debug": "DEBUG=Eleventy* npx @11ty/eleventy --serve",
"php": "export $(grep -v '^#' .env | xargs) && php -d error_reporting=E_ALL^E_DEPRECATED -S localhost:8000 -t dist",
"watch": "eleventy --watch",
"build": "eleventy",
"php": "export $(grep -v '^#' .env | xargs) && php -d error_reporting=E_ALL^E_DEPRECATED -S localhost:8080 -t dist",
"dev": "concurrently -k -n 11ty,PHP -c cyan,magenta \"npm run watch\" \"npm run php\"",
"update:deps": "composer update && npm upgrade && ncu",
"setup": "sh ./scripts/setup.sh",
"clean": "rimraf dist .cache",
@ -38,6 +40,7 @@
"@11ty/eleventy": "v3.0.0",
"@11ty/eleventy-fetch": "5.0.2",
"@cdransf/eleventy-plugin-tabler-icons": "^2.11.1",
"concurrently": "9.1.2",
"cssnano": "^7.0.7",
"dotenv": "16.5.0",
"ics": "^3.8.1",