From 6b53a6358fe194bf0fa9f151364070a75a84fdc4 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 20 Oct 2018 16:14:37 +0200 Subject: [PATCH] moved source into 'src' and built into 'dist' | update readme accordingly --- .gitignore | 1 + README.md | 4 +++- main.ts => src/main.ts | 0 mixer.ts => src/mixer.ts | 0 tsconfig.json | 10 +++++----- 5 files changed, 9 insertions(+), 6 deletions(-) rename main.ts => src/main.ts (100%) rename mixer.ts => src/mixer.ts (100%) diff --git a/.gitignore b/.gitignore index fce56e0..399146e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /node_modules +/dist *.js \ No newline at end of file diff --git a/README.md b/README.md index 45fcc8a..8743b6d 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,15 @@ Then launch the following command inside the project's folder : $ tsc ``` +All source files of the `src/` folder will be transpiled into the `dist/` folder. + ##### 2. Launch server > You need to have `node` installed. Launch the server with the following command (inside the project's folder) : ```bash -$ node main.js +$ node dist/main.js ``` ##### 3. Test the API diff --git a/main.ts b/src/main.ts similarity index 100% rename from main.ts rename to src/main.ts diff --git a/mixer.ts b/src/mixer.ts similarity index 100% rename from mixer.ts rename to src/mixer.ts diff --git a/tsconfig.json b/tsconfig.json index bc7db83..faf3f06 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,10 +4,10 @@ "noImplicitAny": true, "removeComments": true, "moduleResolution": "node", - "target": "es6" + "target": "es6", + "outDir": "dist" }, - "files": [ - "mixer.ts", - "main.ts" - ] + "include": [ + "src/**/*" + ], } \ No newline at end of file