Skip to content

Commit f3e3a86

Browse files
committed
feat: implement first rough mvp
1 parent 3380bb5 commit f3e3a86

Some content is hidden

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

41 files changed

+26991
-0
lines changed

.dockerignore

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Packages
2+
node_modules
3+
**/node_modules
4+
5+
# Build artifacts
6+
dist
7+
**/dist
8+
typings
9+
**/typings
10+
tsconfig.tsbuildinfo
11+
12+
# Log files
13+
logs
14+
*.log
15+
npm-debug.log*
16+
17+
# Runtime data
18+
pids
19+
*.pid
20+
*.seed
21+
22+
# IDE
23+
.vscode
24+
25+
# Docker (experimental)
26+
docker
27+
Dockerfile
28+
docker-compose.yml
29+
docker-compose.local.yml
30+
docker-compose.prod.yml
31+
docker-compose.config.yml
32+
docker-compose.config.example.yml
33+
34+
# Tests
35+
coverage
36+
jest-setup.ts
37+
jest.config.js
38+
39+
# Linting
40+
.eslintignore
41+
.eslintrc.json
42+
tsconfig.eslint.json
43+
44+
# Miscellaneous
45+
.tmp
46+
.github
47+
.vscode
48+
.git
49+
.gitattributes
50+
.gitignore
51+
.npmrc
52+
README.md

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.d.ts

.eslintrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"root": true,
3+
"extends": ["marine/prettier/node"],
4+
"parserOptions": {
5+
"project": "./tsconfig.eslint.json"
6+
},
7+
"env": {
8+
"jest": true
9+
},
10+
"rules": {
11+
"@typescript-eslint/require-await": 0
12+
}
13+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Packages
2+
node_modules
3+
**/node_modules
4+
5+
# Build artifacts
6+
dist/
7+
**/dist
8+
typings/
9+
tsconfig.tsbuildinfo
10+
11+
# Log files
12+
logs
13+
*.log
14+
npm-debug.log*
15+
16+
# Runtime data
17+
pids
18+
*.pid
19+
*.seed
20+
21+
# Tests
22+
coverage/
23+
24+
# Miscellaneous
25+
.tmp/
26+
auth.json

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
audit=false
2+
fund=false
3+
legacy-peer-deps=true

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"printWidth": 120,
3+
"useTabs": true,
4+
"singleQuote": true,
5+
"quoteProps": "as-needed",
6+
"trailingComma": "all",
7+
"endOfLine": "lf"
8+
}

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM jrottenberg/ffmpeg:4.3-alpine312 as ffmpeg
2+
3+
FROM node:16-alpine
4+
5+
WORKDIR /usr/voicelink
6+
COPY package.json package-lock.json ./
7+
8+
RUN apk add --update \
9+
&& apk add --no-cache ca-certificates \
10+
&& apk add --no-cache --virtual .build-deps git curl build-base python3 g++ make \
11+
&& npm ci \
12+
&& apk del .build-deps
13+
14+
COPY --from=ffmpeg /usr/local /usr/local
15+
16+
COPY . .
17+
RUN npm run build
18+
19+
CMD npm run start

babel.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
parserOpts: { strictMode: true },
3+
sourceMaps: 'inline',
4+
presets: [
5+
[
6+
'@babel/preset-env',
7+
{
8+
targets: { node: 'current' },
9+
modules: 'commonjs',
10+
},
11+
],
12+
'@babel/preset-typescript',
13+
],
14+
plugins: ['babel-plugin-transform-typescript-metadata', ['@babel/plugin-proposal-decorators', { legacy: true }]],
15+
};

example/.eslintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"root": true,
3+
"extends": ["marine/prettier/node"],
4+
"parserOptions": {
5+
"project": "./tsconfig.eslint.json"
6+
}
7+
}

0 commit comments

Comments
 (0)