Skip to content

Commit

Permalink
feat: implement first rough mvp
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed Jun 17, 2021
1 parent 3380bb5 commit dbfda96
Show file tree
Hide file tree
Showing 35 changed files with 26,466 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Packages
node_modules
**/node_modules

# Build artifacts
dist
**/dist
typings
**/typings
tsconfig.tsbuildinfo

# Log files
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# IDE
.vscode

# Docker (experimental)
docker
Dockerfile
docker-compose.yml
docker-compose.local.yml
docker-compose.prod.yml
docker-compose.config.yml
docker-compose.config.example.yml

# Tests
coverage
jest-setup.ts
jest.config.js

# Linting
.eslintignore
.eslintrc.json
tsconfig.eslint.json

# Miscellaneous
.tmp
.github
.vscode
.git
.gitattributes
.gitignore
.npmrc
README.md
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.d.ts
13 changes: 13 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"root": true,
"extends": ["marine/prettier/node"],
"parserOptions": {
"project": "./tsconfig.eslint.json"
},
"env": {
"jest": true
},
"rules": {
"@typescript-eslint/require-await": 0
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Packages
node_modules
**/node_modules

# Build artifacts
dist/
**/dist
typings/
tsconfig.tsbuildinfo

# Log files
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# Tests
coverage/

# Miscellaneous
.tmp/
auth.json
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
audit=false
fund=false
legacy-peer-deps=true
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"printWidth": 120,
"useTabs": true,
"singleQuote": true,
"quoteProps": "as-needed",
"trailingComma": "all",
"endOfLine": "lf"
}
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM jrottenberg/ffmpeg:4.3-alpine312 as ffmpeg

FROM node:16-alpine

WORKDIR /usr/voicelink
COPY package.json package-lock.json ./

RUN apk add --update \
&& apk add --no-cache ca-certificates \
&& apk add --no-cache --virtual .build-deps git curl build-base python3 g++ make \
&& npm ci \
&& apk del .build-deps

COPY --from=ffmpeg /usr/local /usr/local

COPY . .
RUN npm run build

CMD npm run start
15 changes: 15 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
parserOpts: { strictMode: true },
sourceMaps: 'inline',
presets: [
[
'@babel/preset-env',
{
targets: { node: 'current' },
modules: 'commonjs',
},
],
'@babel/preset-typescript',
],
plugins: ['babel-plugin-transform-typescript-metadata', ['@babel/plugin-proposal-decorators', { legacy: true }]],
};
7 changes: 7 additions & 0 deletions example/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"root": true,
"extends": ["marine/prettier/node"],
"parserOptions": {
"project": "./tsconfig.eslint.json"
}
}
Loading

0 comments on commit dbfda96

Please sign in to comment.