@ -0,0 +1,12 @@ | |||||
version: "3.9" | |||||
services: | |||||
torrent_client: | |||||
build: | |||||
target: dev | |||||
volumes: | |||||
- ./api:/app/api | |||||
- ./packages:/app/packages | |||||
- ./services/torrent-client:/app/services/torrent-client | |||||
tty: true |
@ -0,0 +1,6 @@ | |||||
{ | |||||
"watch": ["src"], | |||||
"ext": "ts,json", | |||||
"ignore": ["src/**/*.spec.ts"], | |||||
"exec": "node --inspect=0.0.0.0:9229 -r ts-node/register src/index.ts" | |||||
} |
@ -0,0 +1,18 @@ | |||||
{ | |||||
"name": "@autoplex-service/torrent-client", | |||||
"version": "0.0.0", | |||||
"main": "dist/index.js", | |||||
"license": "MIT", | |||||
"scripts": { | |||||
"clean": "rimraf ./dist", | |||||
"build": "tsc", | |||||
"start": "NODE_ENV=production; node .", | |||||
"start:dev": "nodemon", | |||||
"test": "echo \"Error: no test specified\" && exit 1", | |||||
"postinstall": "patch-package" | |||||
}, | |||||
"dependencies": { | |||||
"@autoplex/microservice": "^0.1.0", | |||||
"webtorrent": "^1.8.5" | |||||
} | |||||
} |
@ -0,0 +1,11 @@ | |||||
import { Microservice } from "@autoplex/microservice"; | |||||
import * as services from "./services"; | |||||
// Create the application | |||||
let app = new Microservice(); | |||||
// Install the services | |||||
app.installServices(Object.values(services)); | |||||
// Execute the app | |||||
app.exec().then(process.exit); |
@ -0,0 +1,5 @@ | |||||
// import TorrentClient from "./TorrentClient"; | |||||
export { | |||||
// TorrentClient | |||||
}; |
@ -0,0 +1,9 @@ | |||||
{ | |||||
"extends": "../../tsconfig.json", | |||||
"compilerOptions": { | |||||
"sourceMap": true, /* Generates corresponding '.map' file. */ | |||||
"outDir": "./dist", /* Redirect output structure to the directory. */ | |||||
"typeRoots": ["./src/typings"], /* List of folders to include type definitions from. */ | |||||
"sourceRoot": "./src" /* Specify the location where debugger should locate TypeScript files instead of source locations. */ | |||||
} | |||||
} |