🔧 Add typescript config

This commit is contained in:
C-3PO 2018-06-21 11:59:05 +02:00
parent a3ffa63fcf
commit 1257dd8b21
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
5 changed files with 33 additions and 1 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
dist
node_modules

8
README.md Normal file
View file

@ -0,0 +1,8 @@
This tool is used for fetching releases from SWTOR's patch server CDN and installing them.
# Dependencies
For this tool to work, ```tsc``` must be globally available, e.g. by running:
```bash
npm install -g typescript
```

View file

@ -1,7 +1,8 @@
{
"name": "patcher",
"main": "index.js",
"main": "dist/index.js",
"scripts": {
"start": "tsc && node dist/index.js",
"test": "echo \"Error: no test specified\" && exit 1"
}
}

1
src/index.ts Normal file
View file

@ -0,0 +1 @@
console.log('Hello world!');

View file

@ -0,0 +1,21 @@
{
"compilerOptions": {
//settings:
"baseUrl": ".",
"inlineSourceMap": true,
"module": "ES2015",
"moduleResolution": "node",
"newLine": "lf",
"outDir": "dist",
"paths": {
"*": [
"node_modules/*"
]
},
"strict": true,
"target": "es2018",
},
"include": [
"src/**/*"
]
}