diff options
author | Alexander Petros <apetros15@gmail.com> | 2023-10-12 16:54:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-12 15:54:40 -0500 |
commit | a66a98b9edaf57c66b4569fa909680596fb615dd (patch) | |
tree | 5e838482514550b5df7614c4c79197cbf74146c2 /package.json | |
parent | f0ad4690d0d1c04c3a9e82b70161fbbd43d88382 (diff) | |
download | htmx-a66a98b9edaf57c66b4569fa909680596fb615dd.tar.gz htmx-a66a98b9edaf57c66b4569fa909680596fb615dd.zip |
Fix WS/SSE tests and replace go backend with NodeJS (#1876)
* Write WS and SSE test backend in node
* Refactor pages so that the URLs work
* Add tab highlighting script
* Fix stream with multiple events
* Fix highlighting on ext links
* Refactor WS code
* Support event trigger tests
* Add some jitter to the intervals
* Delete old go backend
* Update README with new info and credits
* Update top-level README
* Move ws to dev dependencies
* Remove extraneous go server
* Fix misplace comment
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package.json b/package.json index edbfc01c..47376439 100644 --- a/package.json +++ b/package.json @@ -23,11 +23,13 @@ "main": "dist/htmx.min.js", "types": "dist/htmx.d.ts", "unpkg": "dist/htmx.min.js", + "type": "module", "web-types": "editors/jetbrains/htmx.web-types.json", "scripts": { "test": "mocha-chrome test/index.html", "test-types": "tsc --project ./jsconfig.json", "dist": "cp -r src/* dist/ && npm run-script uglify && gzip -9 -k -f dist/htmx.min.js > dist/htmx.min.js.gz && exit", + "ws-tests": "cd ./test/ws-sse && node ./server.js", "www": "bash ./scripts/www.sh", "uglify": "uglifyjs -m eval -o dist/htmx.min.js dist/htmx.js" }, @@ -45,6 +47,7 @@ "mock-socket": "^9.2.1", "sinon": "^9.2.4", "typescript": "^4.9.5", - "uglify-js": "^3.17.4" + "uglify-js": "^3.17.4", + "ws": "^8.14.2" } } |