Skip to content

Commit

Permalink
feat(Postcodes.io): Port to Typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
mfilip authored and cblanc committed Dec 9, 2020
1 parent 7747c02 commit 144a566
Show file tree
Hide file tree
Showing 214 changed files with 18,194 additions and 17,160 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Expand Up @@ -16,6 +16,7 @@ default_steps: &default_steps
key: 'nodemodules-deps-{{ checksum "package-lock.json" }}'
paths:
- node_modules/
- run: "npm run build"
- run: "npm run test"
- run: "npm run coverage"
jobs:
Expand Down
7 changes: 7 additions & 0 deletions .eslintignore
@@ -0,0 +1,7 @@
node_modules
dist
coverage
docker
data
tests
public
10 changes: 10 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,10 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
],
};
5 changes: 3 additions & 2 deletions .gitignore
Expand Up @@ -5,11 +5,12 @@ test.log
.ruby-gemset
.ruby-version
Capfile
config/deploy.rb
config/deploy/
src/config/deploy.rb
src/config/deploy/
process.json
.nyc_output/
log/
npm-debug.log
*.swp
*.vim
dist
5 changes: 0 additions & 5 deletions .jshintignore

This file was deleted.

72 changes: 0 additions & 72 deletions .jshintrc

This file was deleted.

4 changes: 2 additions & 2 deletions CHANGELOG.md
Expand Up @@ -135,7 +135,7 @@ Any changes, including backwards incompatible changes will be listed here
- `"perf"` logs to stdout in [extreme mode](https://github.com/pinojs/pino/blob/master/docs/extreme.md)
- Added ability to export prometheus metrics by basic auth protected `/metrics` endpoint. To enable include `PROMETHEUS_USERNAME` and `PROMETHEUS_PASSWORD` as environment variables. Those environment variables are required to authenticate using [HTTP basic authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication)
- Updated dependencies
- Added ability to configure application limits using environment variables. [See readme](/config/README.md)
- Added ability to configure application limits using environment variables. [See readme](/src/config/README.md)
- Amended `npm run setup` bash script to accept more configuration arguments

## 10.0.1 (16/01/2019)
Expand Down Expand Up @@ -288,7 +288,7 @@ For the exact changes, you can may inspect the most recent commit applied to the

## 4.0.0 (23/2/2017)
- Incorporate OS Places dataset
- npm package now points to `app.js` which exports instance postcodes.io express app
- npm package now points to `app.ts` which exports instance postcodes.io express app
- Minimum advised required Postgresql version of 9.5 (due to backwards incompatible pg_dump)
- Updated latest pg_dump for Feb 2017 ONSPD, January 2017 OS Places data

Expand Down
5 changes: 5 additions & 0 deletions Makefile
Expand Up @@ -51,6 +51,11 @@ test-down:
test-shell:
docker-compose -f docker/test/docker-compose.yml exec api /bin/bash

## Tail test service logs
.PHONY: test-logs
test-logs:
docker-compose -f docker/test/docker-compose.yml logs -f

## -- Live Test Methods --

## Build local pg and api images using pg_dump from S3
Expand Down
14 changes: 0 additions & 14 deletions app.js

This file was deleted.

86 changes: 0 additions & 86 deletions app/controllers/outcodes_controller.js

This file was deleted.

28 changes: 0 additions & 28 deletions app/controllers/pages_controller.js

This file was deleted.

60 changes: 0 additions & 60 deletions app/controllers/places_controller.js

This file was deleted.

0 comments on commit 144a566

Please sign in to comment.