moved source into 'src' and built into 'dist' | update readme accordingly
This commit is contained in:
parent
0a6705b938
commit
6b53a6358f
|
@ -1,2 +1,3 @@
|
||||||
/node_modules
|
/node_modules
|
||||||
|
/dist
|
||||||
*.js
|
*.js
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
],
|
||||||
]
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue