diff --git a/.gitignore b/.gitignore index 3c3629e..de4d1f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +dist node_modules diff --git a/README.md b/README.md new file mode 100644 index 0000000..7bed9fe --- /dev/null +++ b/README.md @@ -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 +``` diff --git a/package.json b/package.json index 07443d8..107a0e4 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..b9d3e23 --- /dev/null +++ b/src/index.ts @@ -0,0 +1 @@ +console.log('Hello world!'); diff --git a/tsconfig.json b/tsconfig.json index e69de29..09dd67a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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/**/*" + ] +}