feature: add ability to drop a .spa.static into the tree

This commit is contained in:
Andy Burke 2026-01-15 20:33:26 -08:00
parent 75439172c9
commit d07991bc60
6 changed files with 175 additions and 70 deletions

View file

@ -1,7 +1,7 @@
{
"name": "@andyburke/serverus",
"description": "A flexible HTTP server for mixed content. Throw static files, markdown, Typescript and (hopefully, eventually) more into a directory and serverus can serve it up a bit more like old-school CGI.",
"version": "0.14.2",
"version": "0.15.0",
"license": "MIT",
"exports": {
".": "./serverus.ts",
@ -21,14 +21,10 @@
"serverus": "deno --allow-env --allow-read --allow-write --allow-net ./serverus.ts"
},
"test": {
"exclude": [
"tests/data/"
]
"exclude": ["tests/data/"]
},
"fmt": {
"include": [
"**/*.ts"
],
"include": ["**/*.ts"],
"options": {
"useTabs": true,
"lineWidth": 140,
@ -39,16 +35,10 @@
}
},
"lint": {
"include": [
"**/*.ts"
],
"include": ["**/*.ts"],
"rules": {
"tags": [
"recommended"
],
"exclude": [
"no-explicit-any"
]
"tags": ["recommended"],
"exclude": ["no-explicit-any"]
}
},
"imports": {