From fad79fdff63d2ec3a77c7bb50ce4182f0e834004 Mon Sep 17 00:00:00 2001 From: wang1212 Date: Tue, 27 Aug 2024 14:24:45 +0800 Subject: [PATCH] chore: add preview demo npm script --- demo/{index.html => 2d-shape.html} | 0 package.json | 8 +++++--- 2 files changed, 5 insertions(+), 3 deletions(-) rename demo/{index.html => 2d-shape.html} (100%) diff --git a/demo/index.html b/demo/2d-shape.html similarity index 100% rename from demo/index.html rename to demo/2d-shape.html diff --git a/package.json b/package.json index ccb615414..5c9b7630b 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "author": "xiaoiver", "scripts": { "dev": "vite", + "demo": "http-server -c-1 -o ./demo/", "build": "pnpm -r --sequential --if-present run build", "bundle-viz": "cross-env BUNDLE_VIS=1 PACKAGE=g npm run build", "contributor": "git-contributor", @@ -70,16 +71,17 @@ "get-pixels": "3.3.3", "git-contributor": "~1.0.11", "hammerjs": "^2.0.8", + "http-server": "^14.1.1", "husky": "^7.0.4", "is-ci": "2.0.0", "jest": "^29.7.0", - "jest-environment-node": "^29.7.0", "jest-environment-jsdom": "^29.7.0", + "jest-environment-node": "^29.7.0", "jest-matcher-deep-close-to": "^3.0.2", "jsdom": "^19.0.0", + "lil-gui": "^0.16.0", "limit-size": "^0.1.4", "lint-staged": "^10.5.4", - "lil-gui": "^0.16.0", "markdownlint-cli": "^0.32.2", "npm-run-all": "^4.1.5", "pixelmatch": "^5.3.0", @@ -91,8 +93,8 @@ "rollup": "^3.29.4", "rollup-plugin-polyfill-node": "^0.8.0", "rollup-plugin-visualizer": "^5.9.2", - "sinon": "^11.1.2", "simplex-noise": "^3.0.0", + "sinon": "^11.1.2", "ts-jest": "^29.1.1", "typescript": "^5.3.2", "vite": "^3.2.7",