feature: serverus modularly serves up a directory as an HTTP server
This commit is contained in:
commit
58139b078d
20 changed files with 1449 additions and 0 deletions
52
deno.json
Normal file
52
deno.json
Normal file
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
"name": "@andyburke/serverus",
|
||||
"version": "0.0.1",
|
||||
"license": "MIT",
|
||||
"exports": {
|
||||
".": "./serverus.ts",
|
||||
"./cli": "./serverus.ts",
|
||||
"./server": "./server.ts",
|
||||
"./handlers/markdown": "./handlers/markdown.ts",
|
||||
"./handlers/static": "./handlers/static.ts",
|
||||
"./handlers/typescript": "./handlers/typescript.ts"
|
||||
},
|
||||
"tasks": {
|
||||
"lint": "deno lint",
|
||||
"fmt": "deno fmt",
|
||||
"test": "DENO_ENV=test DATA_STORAGE_ROOT=./tests/data/$(date --iso-8601=seconds) deno test --allow-env --allow-read --allow-write --allow-net --trace-leaks --fail-fast ./tests/",
|
||||
"build": "deno compile --allow-env --allow-read --allow-write --allow-net ./serverus.ts",
|
||||
"serverus": "deno --allow-env --allow-read --allow-write --allow-net ./serverus.ts"
|
||||
},
|
||||
"test": {
|
||||
"exclude": ["tests/data/"]
|
||||
},
|
||||
"fmt": {
|
||||
"include": ["**/*.ts"],
|
||||
"options": {
|
||||
"useTabs": true,
|
||||
"lineWidth": 140,
|
||||
"indentWidth": 4,
|
||||
"singleQuote": true,
|
||||
"proseWrap": "preserve",
|
||||
"trailingCommas": "never"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"include": ["**/*.ts"],
|
||||
"rules": {
|
||||
"tags": ["recommended"],
|
||||
"exclude": ["no-explicit-any"]
|
||||
}
|
||||
},
|
||||
"imports": {
|
||||
"@std/assert": "jsr:@std/assert@^1.0.11",
|
||||
"@std/async": "jsr:@std/async@^1.0.13",
|
||||
"@std/cli": "jsr:@std/cli@^1.0.19",
|
||||
"@std/fmt": "jsr:@std/fmt@^1.0.6",
|
||||
"@std/fs": "jsr:@std/fs@^1.0.14",
|
||||
"@std/http": "jsr:@std/http@^1.0.13",
|
||||
"@std/media-types": "jsr:@std/media-types@^1.1.0",
|
||||
"@std/path": "jsr:@std/path@^1.0.8",
|
||||
"@std/testing": "jsr:@std/testing@^1.0.9"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue