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