moved source into 'src' and built into 'dist' | update readme accordingly

This commit is contained in:
Adrien Marquès 2018-10-20 16:14:37 +02:00
parent 0a6705b938
commit 6b53a6358f
5 changed files with 9 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/node_modules /node_modules
/dist
*.js *.js

View File

@ -14,13 +14,15 @@ Then launch the following command inside the project's folder :
$ tsc $ tsc
``` ```
All source files of the `src/` folder will be transpiled into the `dist/` folder.
##### 2. Launch server ##### 2. Launch server
> You need to have `node` installed. > You need to have `node` installed.
Launch the server with the following command (inside the project's folder) : Launch the server with the following command (inside the project's folder) :
```bash ```bash
$ node main.js $ node dist/main.js
``` ```
##### 3. Test the API ##### 3. Test the API

View File

@ -4,10 +4,10 @@
"noImplicitAny": true, "noImplicitAny": true,
"removeComments": true, "removeComments": true,
"moduleResolution": "node", "moduleResolution": "node",
"target": "es6" "target": "es6",
"outDir": "dist"
}, },
"files": [ "include": [
"mixer.ts", "src/**/*"
"main.ts" ],
]
} }