aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Add template process to serve bash fileKevin J Hoerr2019-12-097-5/+126
| | | | | | | | | | | | Unfortunately, a static file can't really be used to serve the connection - the host address is needed to link back to the server. Only a light library is needed to handle the template file though, and if more are needed in the future it should be a non-trivial task to add them to the process. By default I'm configuring this to work with drone.io, since that is the CI that I personally will be using (most likely). It should be non-trivial to configure other CI to handle the script as well.
* Add linting to project using EslintKevin J Hoerr2019-12-0911-63/+1059
|
* Enable source maps and incremental buildsKevin J Hoerr2019-12-092-2/+4
|
* Change start script to start:dev with watcherKevin J Hoerr2019-12-093-240/+423
| | | | | There is currently no prod start command - this can be adopted later when desired.
* Promisify data flow in POST requestKevin J Hoerr2019-12-092-19/+32
|
* Use HeadIdentifier as reference for file retrievalKevin J Hoerr2019-12-082-39/+61
|
* Overhaul error handling for controllersKevin J Hoerr2019-12-087-28/+88
| | | | | | | | | | | This change fixes various issues with the GET endpoints to return more accurate error messages. It adds business logic error objects that are returned in a union type in the controllers. This change should help separate the business logic from the actual errors from upstream services. There may be required changes still with handling those upstream errors via Promises. Integration tests should be added to verify issues.
* Prepare repository for 0.2.0 releaseKevin J Hoerr2019-12-082-1/+14
|
* Move from branch to repository document in MongoDBKevin J Hoerr2019-12-082-30/+70
|
* Refactor routes into separate fileKevin J Hoerr2019-12-083-129/+137
|
* Add winston, express-winston to handle loggingKevin J Hoerr2019-12-086-57/+390
|
* Add Metadata core with MongoDB for persistenceKevin J Hoerr2019-12-075-104/+318
| | | | | | | | | | | With the new process dependency, process handling has been added to ensure that the ExpressJS server and MongoDB client connections get closed up properly. As noted in the Metadata file above the Branch interface, the schema is definitely not finalized. Eventually metadata will be needed at the repo level anyways, so reorganizing the document schema is high on the priority list.
* Prepare repository for 0.1.0 releaseKevin J Hoerr2019-11-306-17/+26
|
* Disable branch GET EPs until Metadata is doneKevin J Hoerr2019-11-301-2/+2
|
* Remove default value for format parameterKevin J Hoerr2019-11-301-3/+2
|
* Implement file handling for reportsKevin J Hoerr2019-11-296-35/+764
|
* Implement report parsing for TarpaulinKevin J Hoerr2019-11-294-7/+400
| | | | | | | | | | The generated Tarpaulin HTML report does not have stats to parse via the DOM - the data is injected via a script tag, which only has line-by-line coverage, though it includes statistics for each file. The total coverage is counted by summing the covered/coverable stats reported for each file. Also, the bad version for express is fixed, and messages are included for errors that occur for the POST endpoint.
* Add Prettier to projectKevin J Hoerr2019-11-234-426/+88
| | | | Signed-off-by: Kevin J Hoerr <kjhoerr@protonmail.com>
* Generate report badge with color gradientKevin J Hoerr2019-11-232-14/+37
|
* Move TS files into /srcKevin J Hoerr2019-11-104-1/+1
|
* Merge branch 'init-commits' of kjhoerr/ao-coverage into masterKevin Hoerr2019-11-109-0/+678
|\
| * Set up initial projectKevin J Hoerr2019-11-109-0/+678
|/ | | | | | | | | | | | | | | | | | | | | 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.
* Initial commitKevin Hoerr2019-11-102-0/+19