serverus/deno.json

53 lines
1.7 KiB
JSON

{
"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.5.0",
"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) SERVERUS_TYPESCRIPT_IMPORT_LOGGING=1 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 --include handlers ./serverus.ts -o serverus",
"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"
}
}