Skip to content

Commit

Permalink
Tools: Improved TypeScript config
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Dec 14, 2019
1 parent 03522b4 commit da04496
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Tools/build-all.sh
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
9 changes: 3 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit da04496

Please sign in to comment.