From f0c068f8497d1388d020dce0833ece4796085c13 Mon Sep 17 00:00:00 2001 From: milahu Date: Wed, 12 May 2021 21:30:23 +0200 Subject: [PATCH] alchi-book: package.json: eleventy with vite, patch-package --- src/alchi-book/package.json | 66 ++++++++++++++++++++++++------------- 1 file changed, 43 insertions(+), 23 deletions(-) diff --git a/src/alchi-book/package.json b/src/alchi-book/package.json index 1f5777a..c628628 100644 --- a/src/alchi-book/package.json +++ b/src/alchi-book/package.json @@ -1,35 +1,55 @@ { "name": "alchi-book", "version": "0.0.1", + "license": "CC0-1.0", "private": true, "description": "", "scripts": { - "build": "node scripts/inline-eleventy.cli.js", - "build-splitfile": "cross-env NODE_ENV=production eleventy --config=config/eleventy.config.js", - "serve": "cross-env NODE_ENV=production eleventy --serve --config=config/eleventy.config.js", - "dev": "cross-env NODE_ENV=development eleventy --serve --config=config/eleventy.config.js", - "debug": "cross-env DEBUG=* eleventy --config=config/eleventy.config.js", + "build": "cross-env NODE_ENV=production node scripts/npm-run-dev.js", + "build:vite": "vite build", + "build:eleventy": "eleventy --config=config/eleventy.config.js", + "prod": "npm-run-all -s build serve", + "serve": "node scripts/npm-run-serve.js", + "build-inline-FIXME": "node scripts/inline-eleventy.cli.js", + "dev": "node scripts/npm-run-dev.js", + "debug": "node scripts/npm-run-dev.js --debug", + "dev:eleventy": "eleventy --serve --config=config/eleventy.config.js", + "dev:vite": "vite", "test": "npm-run-all -s test:**", - "test:a:html": "html-validate --config=config/htmlvalidate.config.json src/pages/" + "test:a:html": "html-validate --config=config/htmlvalidate.config.json src/pages/", + "postinstall": "patch-package" + }, + "eleventy": { + "config": "config/eleventy.config.js" }, - "license": "CC0-1.0", "devDependencies": { - "@11ty/eleventy": "*", - "@fontsource/noto-mono": "^4.2.1", - "@fontsource/noto-sans": "^4.2.2", - "app-root-path": "^3.0.0", - "clean-css": "^5.1.1", + "@11ty/eleventy": "github:11ty/eleventy#8a5162785c58864ef65308c0f0d890cade0b407f", + "@fontsource/noto-mono": "*", + "@fontsource/noto-sans": "*", + "@vitejs/plugin-legacy": "*", + "app-root-path": "*", + "clean-css": "*", + "concurrently": "*", "cross-env": "*", - "eleventy-plugin-transformdom": "^1.0.1", - "fast-glob": "^3.2.5", - "find-free-port-sync": "^1.0.0", - "html-validate": "^4.6.1", - "inliner": "^1.13.1", - "luxon": "^1.25.0", - "markdown-it": "^8.4.2", - "markdown-it-anchor": "^5.2.5", - "node-html-parser": "link:/home/user/src/javascript/node-html-parser/node-html-parser/", - "npm-run": "^5.0.1", - "npm-run-all": "^4.1.5" + "eleventy-plugin-transformdom": "*", + "fast-glob": "*", + "find-free-port-sync": "*", + "html-validate": "*", + "inliner": "^*", + "luxon": "*", + "markdown-it": "*", + "markdown-it-anchor": "*", + "node-html-parser": "github:taoqf/node-fast-html-parser#60ea8fee51f07fbc712b5642a0496f12748eb90f", + "npm-run": "*", + "npm-run-all": "*", + "open": "*", + "sirv-cli": "*", + "vite": "*" + }, + "dependencies": { + "diff": "*", + "htmldiff": "github:inkling/htmldiff.js", + "patch-package": "github:milahu/patch-package#pnpm-support-2", + "xregexp": "*" } }