Tools: Improved TypeScript config

pull/2194/head
Laurent Cozic 2019-12-14 10:55:58 +00:00
parent 03522b48a5
commit da044960f9
4 changed files with 7 additions and 8 deletions

View File

@ -36,7 +36,7 @@ npm install && cd Tools && npm install
# Building the Electron application
```
rsync --delete -a ReactNativeClient/lib/ ElectronClient/app/lib/
npm run copyLib
npm run tsc
cd ElectronClient/app
npm install

View File

@ -1,4 +1,5 @@
#!/bin/bash
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# TODO: When the apidoc command fails, it copy the failure in api.md, but shouldn't be doing that
"$ROOT_DIR/../CliClient/run.sh" apidoc > "$ROOT_DIR/../readme/api.md" && node "$ROOT_DIR/update-readme-download.js" && node "$ROOT_DIR/build-release-stats.js" && node "$ROOT_DIR/build-welcome.js" && node "$ROOT_DIR/build-website.js" && git add -A && git commit -m "Update website" && git pull && git push

View File

@ -6,7 +6,8 @@
"linter": "./node_modules/.bin/eslint --fix --ext .js --ext .jsx --ext .ts --ext .tsx",
"linter-ci": "./node_modules/.bin/eslint --ext .js --ext .jsx --ext .ts --ext .tsx",
"tsc": "tsc",
"tsc-watch": "tsc --watch"
"tsc-watch": "tsc --watch",
"copyLib": "rsync --delete -a ReactNativeClient/lib/ ElectronClient/app/lib/"
},
"husky": {
"hooks": {

View File

@ -16,12 +16,9 @@
"jsx": "react",
},
"include": [
"ReactNativeClient/**/*.ts",
"ReactNativeClient/**/*.tsx",
"ElectronClient/**/*.ts",
"ElectronClient/**/*.tsx",
"CliClient/**/*.ts",
"CliClient/**/*.tsx",
"ReactNativeClient/**/*",
"ElectronClient/**/*",
"CliClient/**/*",
],
"exclude": [
"**/node_modules",