From c045555e00a926e3506a80824d43ffc887e196f5 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Sun, 10 Nov 2019 13:44:09 -0500 Subject: Set up initial project Initializes project with TypeScript, ExpressJS, and Badgen. Defines initial (v1) request paths: GET /bash GET /v1/:org/:repo/:branch.svg GET /v1/:org/:repo/:branch.html GET /v1/:org/:repo/:branch/:commit.svg GET /v1/:org/:repo/:branch/:commit.html POST /v1/:org/:repo/:branch/:commit.html?token=&format= Also sets up interfaces for defining multiple formats. Tarpaulin is defined but not implemented. All requests (aside from GET /bash) return 501 NOT IMPLEMENTED. A global TOKEN is expected for POST request. This can and should be adapted to assigning tokens per repository, though this may require verification from the originating repository or administrative designation. --- package.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 package.json (limited to 'package.json') diff --git a/package.json b/package.json new file mode 100644 index 0000000..628b26c --- /dev/null +++ b/package.json @@ -0,0 +1,23 @@ +{ + "name": "ao-coverage", + "version": "1.0.0", + "description": "Simple code coverage storage and server", + "repository": { + "type": "git", + "url": "https://git.submelon.dev/kjhoerr/ao-coverage.git" + }, + "main": "dist/index.js", + "scripts": { + "start": "tsc && node ./build/index.js", + "tsc": "tsc" + }, + "author": "Kevin J Hoerr ", + "license": "ISC", + "dependencies": { + "@types/express": "^4.17.2", + "badgen": "3.0.1", + "dotenv": "8.2.0", + "express": "4.17.2", + "typescript": "^3.7.2" + } +} -- cgit