Skip to content

Commit 49a0cd1

Browse files
authored
Merge pull request #243 from StatelessStudio/v4.0.0
V4.0.0
2 parents ddb7999 + 7d4871c commit 49a0cd1

211 files changed

Lines changed: 9594 additions & 2693 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
APP_TITLE="pointyapi"
2+
3+
POINTY_DB_NAME = "pointyapi"
4+
POINTY_DB_TYPE = "postgres"
5+
POINTY_DB_HOST = "localhost"
6+
POINTY_DB_PORT = 5432
7+
POINTY_DB_USER = "pointyapi"
8+
POINTY_DB_PASS = "password1234"

.env.travis

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
APP_TITLE="pointyapi"
2+
3+
POINTY_DB_NAME = "testdb"
4+
POINTY_DB_TYPE = "postgres"
5+
POINTY_DB_HOST = "localhost"
6+
POINTY_DB_PORT = 5432
7+
POINTY_DB_USER = "pointyapi"
8+
POINTY_DB_PASS = ""

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/
2+
dist/
3+
dist-*/
4+
doc/
5+
doc*/

.eslintrc.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint"
6+
],
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/eslint-recommended",
10+
"plugin:@typescript-eslint/recommended"
11+
],
12+
"overrides": [
13+
{
14+
"files": ["*.ts"],
15+
"parserOptions": {
16+
"project": ["./tsconfig.json"]
17+
}
18+
}
19+
],
20+
"rules": {
21+
"no-console": 1,
22+
"no-debugger": 1,
23+
"curly": 2,
24+
"indent": [2, "tab"],
25+
"max-len": [1, 80],
26+
"no-empty": 1,
27+
"@typescript-eslint/no-empty-interface": 1,
28+
"no-eval": 2,
29+
"@typescript-eslint/no-misused-new": "error",
30+
"no-trailing-spaces": 2,
31+
"no-irregular-whitespace": 2,
32+
"no-use-before-define": 2,
33+
"no-var": 2,
34+
"prefer-const": 1,
35+
"quotes": [2, "single"],
36+
"radix": 2,
37+
"semi": ["error", "always"],
38+
"brace-style": 0,
39+
"@typescript-eslint/brace-style": [2, "stroustrup"],
40+
"@typescript-eslint/no-empty-function": 0,
41+
"no-prototype-builtins": 1,
42+
"no-useless-escape": 1,
43+
"no-case-declarations": 1,
44+
"@typescript-eslint/ban-types": 1,
45+
"@typescript-eslint/no-namespace": 1,
46+
"@typescript-eslint/no-var-requires": 1,
47+
"@typescript-eslint/promise-function-async": 2,
48+
"@typescript-eslint/no-floating-promises": 2
49+
}
50+
}

.eslintrc.prod.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint"],
5+
"extends": ["./.eslintrc.json"],
6+
"rules": {
7+
"no-console": 2,
8+
"no-debugger": 2
9+
}
10+
}

.gitignore

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,12 @@ typings/
6363
# Build directory
6464
dist/
6565

66-
# Config
67-
local.config.json
66+
# Environment Variables
67+
.env
68+
69+
# Orm-Cli build
70+
orm-cli.js
71+
src/environment.js
6872

69-
# Docs
70-
/docs/
73+
# Docs build
74+
docs/

.nycrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"reporter": ["lcovonly", "text-summary", "html"]
3+
}

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 4,
4+
"singleQuote": true,
5+
"trailingComma": "none",
6+
"bracketSpacing": true,
7+
"semi": true,
8+
"useTabs": true,
9+
"arrowParens": "always"
10+
}

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
language: node_js
22
node_js:
3-
- "12.13.0"
3+
- 16
44
before_script:
55
- psql -c 'create database testdb;' -U postgres
6-
- cp local.config.travis.json local.config.json
6+
- cp .env.travis .env
77
install:
8-
- npm install --ignore-scripts
8+
- npm install --ignore-scripts
99
services:
10-
- postgresql
10+
- postgresql
1111
after_success:
12-
- npm run coveralls
12+
- npm run coveralls

.vscode/launch.json

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,58 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
{
8+
"name": "ts-node (App)",
9+
"type": "node",
10+
"request": "launch",
11+
"args": [
12+
"src/index.ts"
13+
],
14+
"runtimeArgs": [
15+
"-r",
16+
"ts-node/register"
17+
],
18+
"cwd": "${workspaceRoot}",
19+
"internalConsoleOptions": "openOnSessionStart"
20+
},
21+
{
22+
"name": "ts-node (Unit Test)",
23+
"type": "node",
24+
"request": "launch",
25+
"args": [
26+
"node_modules/jasmine/bin/jasmine",
27+
"--config=jasmine.dev.json"
28+
],
29+
"runtimeArgs": [
30+
"-r",
31+
"ts-node/register"
32+
],
33+
"preLaunchTask": "npm: db:drop",
34+
"cwd": "${workspaceRoot}",
35+
"internalConsoleOptions": "openOnSessionStart",
36+
"outputCapture": "std"
37+
},
38+
{
39+
"name": "ts-node (Current File)",
40+
"type": "node",
41+
"request": "launch",
42+
"args": [
43+
"${relativeFile}"
44+
],
45+
"runtimeArgs": [
46+
"-r",
47+
"ts-node/register"
48+
],
49+
"cwd": "${workspaceRoot}",
50+
"internalConsoleOptions": "openOnSessionStart"
51+
},
752
{
853
"type": "node",
954
"request": "launch",
1055
"name": "Launch Program",
11-
"runtimeArgs": ["-r", "ts-node/register"],
12-
"args": ["${workspaceFolder}/test/examples/basic/server.ts"],
13-
"preLaunchTask": "npm: build:spec"
14-
}
56+
"program": "${workspaceFolder}/script/example.ts",
57+
"preLaunchTask": "npm: compile",
58+
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
59+
},
1560
]
1661
}

0 commit comments

Comments
 (0)