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
|
||||
/dist
|
||||
*.js
|
|
@ -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
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
"noImplicitAny": true,
|
||||
"removeComments": true,
|
||||
"moduleResolution": "node",
|
||||
"target": "es6"
|
||||
"target": "es6",
|
||||
"outDir": "dist"
|
||||
},
|
||||
"files": [
|
||||
"mixer.ts",
|
||||
"main.ts"
|
||||
]
|
||||
"include": [
|
||||
"src/**/*"
|
||||
],
|
||||
}
|
Loading…
Reference in New Issue