Skip to content

Commit 88daa4d

Browse files
Move to typescript and mongodb (MadDonkeySoftware#67)
* Initial implementation of MongoDB migration * WIP * chore: lint fixes and configure renovate * chore: getting ready for merge
1 parent 31fb7f2 commit 88daa4d

119 files changed

Lines changed: 22761 additions & 9957 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.

.dockerignore

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
node_modules/
2-
docs/
32
coverage/
43
logs/
5-
*.log
4+
src-old/
5+
bin/
6+
.idea/
7+
.vscode/
8+
.nyc_output/
9+
dist/
10+
*.log
11+
__tests__/
12+
__test__/
13+
docs/

.envrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
auth.sample.json
2-
auth.json
1+
dist/
2+
*.zip
3+
src-old/
4+
*.md

.eslintrc.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
module.exports = {
22
env: {
3-
commonjs: true,
4-
es6: true,
5-
node: true,
6-
mocha: true,
3+
es2021: true,
4+
'jest/globals': true,
75
},
8-
extends: ['airbnb-base', 'plugin:prettier/recommended'],
6+
extends: [
7+
'eslint:recommended',
8+
'plugin:prettier/recommended',
9+
'plugin:jest/recommended',
10+
'plugin:@typescript-eslint/recommended',
11+
],
12+
parser: '@typescript-eslint/parser',
13+
plugins: ['@typescript-eslint'],
914
parserOptions: {
1015
ecmaVersion: 2018,
16+
sourceType: 'module',
1117
},
1218
rules: {
19+
'@typescript-eslint/no-explicit-any': 'off', // TODO: remove rule about no explicit any
20+
'jest/valid-title': 'off',
1321
'no-underscore-dangle': 'off',
1422
'max-len': [
1523
'error',
@@ -29,3 +37,4 @@ module.exports = {
2937
SharedArrayBuffer: 'readonly',
3038
},
3139
};
40+
;

.github/workflows/commit-checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v2
13-
- name: Use Node 14.x
13+
- name: Use Node 18.x
1414
uses: actions/setup-node@v2
1515
with:
16-
node-version: '14.x'
16+
node-version: '18.x'
1717
- run: npm ci
18-
- run: npm run test-cov --if-present
18+
- run: npm run test:cov --if-present
1919
- run: npm run lint
2020
- run: npm run pretty-check --if-present

.gitignore

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,69 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
117
# Coverage directory used by tools like istanbul
218
coverage
319

420
# nyc test coverage
521
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
33+
build/Release
34+
635
# Dependency directories
736
node_modules/
837
jspm_packages/
938

39+
# TypeScript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# next.js build output
61+
.next
1062

11-
# VSCode
1263
.vscode/
1364

14-
# Project files
15-
*.log
16-
logs/
65+
old-src/
66+
67+
dist/
68+
69+
config/local*.js

.mds-log-pumprc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"source":"pino",
3+
"pump":"logstashHttp",
4+
"mode":"http",
5+
"host":"localhost",
6+
"port":6002,
7+
"echo":true
8+
}

.mocharc.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

.nycrc.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

DEV_NOTES.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,17 @@
3232
* Bolt is golang specific, Alternative needed.
3333
* Possible Candidates
3434
* https://github.com/weyoss/redis-smq
35+
36+
## Docker cleanup commands
37+
38+
- Remove dangling images
39+
40+
```
41+
docker rmi $(docker image ls -f dangling=true -q --no-trunc)
42+
```
43+
44+
- Remove previously built MDS Serverless Functions images
45+
46+
```
47+
docker image ls | grep mds-sf- | awk '{print $3}' | xargs docker rmi
48+
```

0 commit comments

Comments
 (0)