Skip to content

Commit c1f0776

Browse files
author
Tom Berey
committed
Ver:1.0.0--Initial-Commit
0 parents  commit c1f0776

20 files changed

Lines changed: 8356 additions & 0 deletions

.env.sample

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PORT = 3000
2+
HOSTNAME = 127.0.0.1

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
build
3+
logs
4+
.env

.eslintrc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
"rules": {
13+
"@typescript-eslint/ban-types": ["error",
14+
{
15+
"types": {
16+
"object": false
17+
},
18+
"extendDefaults": true
19+
}
20+
],
21+
"no-console": 1, // 0 = Off, 1 = Warn (pass), 2 = Error (fail)
22+
"prefer-promise-reject-errors": 1,
23+
"no-extra-parens": 0,
24+
"no-loss-of-precision": 1,
25+
"no-promise-executor-return":1,
26+
"no-unreachable-loop": 1,
27+
"no-template-curly-in-string": 1,
28+
"no-unsafe-optional-chaining": 1,
29+
"no-useless-backreference": 1,
30+
"require-atomic-updates": 1,
31+
"no-await-in-loop": 1
32+
}
33+
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ development ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ main ]
9+
10+
jobs:
11+
analyze:
12+
name: Analyze
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
language: [ 'javascript' ]
19+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
20+
# Learn more:
21+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v2
26+
27+
# Initializes the CodeQL tools for scanning.
28+
- name: Initialize CodeQL
29+
uses: github/codeql-action/init@v1
30+
with:
31+
languages: ${{ matrix.language }}
32+
# If you wish to specify custom queries, you can do so here or in a config file.
33+
# By default, queries listed here will override any specified in a config file.
34+
# Prefix the list here with "+" to use these queries and those in the config file.
35+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
36+
37+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
38+
# If this step fails, then you should remove it and run the build manually (see below)
39+
- name: Autobuild
40+
uses: github/codeql-action/autobuild@v1
41+
42+
# ℹ️ Command-line programs to run using the OS shell.
43+
# 📚 https://git.io/JvXDl
44+
45+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
46+
# and modify them (or add more) to build your code if your project
47+
# uses a compiled language
48+
49+
#- run: |
50+
# make bootstrap
51+
# make release
52+
53+
- name: Perform CodeQL Analysis
54+
uses: github/codeql-action/analyze@v1
55+
56+
test:
57+
name: Install, Build & Test (Node ${{ matrix.node_version }} & ubuntu-latest)
58+
runs-on: ubuntu-latest
59+
60+
strategy:
61+
matrix:
62+
node_version: ['15.x'] #['15','14']
63+
64+
steps:
65+
- name: Checkout repository
66+
uses: actions/checkout@v2
67+
68+
- name: Use Node.js ${{ matrix.node_version }}
69+
uses: actions/setup-node@v1
70+
with:
71+
node-version: ${{ matrix.node_version }}
72+
73+
- name: install > build > clean
74+
run: |
75+
npm install
76+
npm run build --if-present
77+
npm run cleanup --if-present
78+
79+
- name: update > install > build > test > clean
80+
run: |
81+
npm update
82+
npm install
83+
npm run build --if-present
84+
npm run lint --if-present
85+
npm run test:api --if-present

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
build
3+
logs
4+
.env

0 commit comments

Comments
 (0)