Added a non-vite test, to be sure the rolled up libraries can run outside a bundler. Currently, they can't.

This commit is contained in:
Rezmason
2025-05-29 20:34:10 -07:00
parent 00805c884e
commit 068e366e30
3 changed files with 554 additions and 10 deletions

View File

@@ -11,7 +11,8 @@
"README.md"
],
"scripts": {
"test": "npm run format && npm run build && vite --config tools/dev.config.js --open /tools/test/index.html",
"test": "http-server -c-1 --cors -o tools/test/index.html",
"test-bundles": "npm run format && npm run build && vite --config tools/dev.config.js --open /tools/test/index.html",
"dev": "npm run format && vite --config tools/dev.config.js",
"build": "npm run format && rm -rf ./dist/* && vite build --config tools/vite/core.config.js && vite build --config tools/vite/full.config.js",
"format": "eslint . && prettier --write --no-error-on-unmatched-pattern 'js/**/*.{js,jsx,mjs,json}' '*.{js,jsx,mjs,json,html}' 'assets/**/*.{json,css}'"
@@ -22,6 +23,7 @@
},
"keywords": [
"rain",
"digital-rain",
"matrix",
"javascript",
"webgl",
@@ -60,6 +62,7 @@
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.19",
"globals": "^16.0.0",
"http-server": "^14.1.1",
"prettier": "^3.5.3",
"vite": "^6.3.5"
},