From c6cf638f07eb676df7134d7887408dcc45363337 Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Sat, 23 Dec 2017 17:19:16 +0100 Subject: [PATCH 1/8] ts && tslint enabled --- package-lock.json | 565 ++++++++++++++-------------------------------- package.json | 8 +- src/main.js | 3 +- src/main.js.map | 1 + src/main.ts | 1 + tsconfig.json | 24 ++ tslint.json | 3 + 7 files changed, 209 insertions(+), 396 deletions(-) create mode 100644 src/main.js.map create mode 100644 src/main.ts create mode 100644 tsconfig.json create mode 100644 tslint.json diff --git a/package-lock.json b/package-lock.json index 8298c6ca1..dc2f79a61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,13 @@ { "name": "Kitematic", - "version": "0.17.2", + "version": "0.17.3", "lockfileVersion": 1, "requires": true, "dependencies": { "@types/node": { - "version": "7.0.48", - "resolved": "https://registry.npmjs.org/@types/node/-/node-7.0.48.tgz", - "integrity": "sha512-LLlXafM3BD52MH056tHxTXO8JFCnpJJQkdzIU3+m8ew+CXJY/5zIXgDNb4TK/QFvlI8QexLS5tL+sE0Qhegr1w==", + "version": "7.0.51", + "resolved": "https://registry.npmjs.org/@types/node/-/node-7.0.51.tgz", + "integrity": "sha512-h5u7FnEnG+Fn44HfknTTvu199FzFWVSo97ToSRWvXl1F11UfN6wGnE7exUy23pFfDn+CeluvEoCoe4l2eCVC3g==", "dev": true }, "JSONStream": { @@ -35,7 +35,8 @@ "abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true }, "acorn": { "version": "4.0.13", @@ -331,37 +332,6 @@ "dev": true, "optional": true }, - "asar": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/asar/-/asar-0.12.4.tgz", - "integrity": "sha1-LdPxFoguq4wPI7dUeSqCp9n84XE=", - "optional": true, - "requires": { - "chromium-pickle-js": "0.2.0", - "commander": "2.11.0", - "cuint": "0.2.2", - "glob": "6.0.4", - "minimatch": "3.0.4", - "mkdirp": "0.5.1", - "mksnapshot": "0.3.1", - "tmp": "0.0.28" - }, - "dependencies": { - "glob": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz", - "integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=", - "optional": true, - "requires": { - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" - } - } - } - }, "asn1": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", @@ -736,6 +706,7 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/binary/-/binary-0.3.0.tgz", "integrity": "sha1-n2BVO8XOjDOG87VTz/R0Yq3sqnk=", + "dev": true, "requires": { "buffers": "0.1.1", "chainsaw": "0.1.0" @@ -856,7 +827,8 @@ "buffers": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/buffers/-/buffers-0.1.1.tgz", - "integrity": "sha1-skV5w77U1tOWru5tmorn9Ugqt7s=" + "integrity": "sha1-skV5w77U1tOWru5tmorn9Ugqt7s=", + "dev": true }, "bugsnag-js": { "version": "2.5.0", @@ -866,7 +838,8 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true }, "bytes": { "version": "1.0.0", @@ -898,11 +871,6 @@ "integrity": "sha1-r6uWJikQp/M8GaV3WCXGnzTjUMo=", "dev": true }, - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=" - }, "camelcase-keys": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", @@ -945,6 +913,7 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/chainsaw/-/chainsaw-0.1.0.tgz", "integrity": "sha1-XqtQsor+WAdNDVgpE4iCi15fvJg=", + "dev": true, "requires": { "traverse": "0.3.9" } @@ -977,12 +946,6 @@ "readdirp": "2.1.0" } }, - "chromium-pickle-js": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz", - "integrity": "sha1-BKEGZywYsIWrd02YPfo+oTjyIgU=", - "optional": true - }, "circular-json": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.3.3.tgz", @@ -1036,17 +999,6 @@ "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", "dev": true }, - "cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", - "optional": true, - "requires": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wrap-ansi": "2.1.0" - } - }, "clone": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.3.tgz", @@ -1067,7 +1019,8 @@ "code-point-at": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true }, "coffee-script": { "version": "1.3.3", @@ -1360,12 +1313,6 @@ "integrity": "sha1-gsGMJGH3QRTvFsE1IkrQuRRMoS8=", "dev": true }, - "cuint": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/cuint/-/cuint-0.2.2.tgz", - "integrity": "sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs=", - "optional": true - }, "currently-unhandled": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", @@ -1413,42 +1360,8 @@ "decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" - }, - "decompress-zip": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/decompress-zip/-/decompress-zip-0.3.0.tgz", - "integrity": "sha1-rjvLfjTGWHmt/nfhnDD4ZgK0vbA=", - "optional": true, - "requires": { - "binary": "0.3.0", - "graceful-fs": "4.1.11", - "mkpath": "0.1.0", - "nopt": "3.0.6", - "q": "1.5.1", - "readable-stream": "1.1.14", - "touch": "0.0.3" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "optional": true - }, - "readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", - "optional": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "0.0.1", - "string_decoder": "0.10.31" - } - } - } + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true }, "deep-extend": { "version": "0.4.2", @@ -1726,33 +1639,33 @@ "dev": true }, "electron": { - "version": "1.7.9", - "resolved": "https://registry.npmjs.org/electron/-/electron-1.7.9.tgz", - "integrity": "sha1-rdVOn4+D7QL2UZ7BATX2mLGTNs8=", + "version": "1.7.10", + "resolved": "https://registry.npmjs.org/electron/-/electron-1.7.10.tgz", + "integrity": "sha1-Oj6D2WX9f6/kc76N349HJWG2JT0=", "dev": true, "requires": { - "@types/node": "7.0.48", + "@types/node": "7.0.51", "electron-download": "3.3.0", "extract-zip": "1.6.6" + } + }, + "electron-download": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/electron-download/-/electron-download-3.3.0.tgz", + "integrity": "sha1-LP1U1pZsAZxNSa1l++Zcyc3vaMg=", + "dev": true, + "requires": { + "debug": "2.6.9", + "fs-extra": "0.30.0", + "home-path": "1.0.5", + "minimist": "1.2.0", + "nugget": "2.0.1", + "path-exists": "2.1.0", + "rc": "1.2.2", + "semver": "5.4.1", + "sumchecker": "1.3.1" }, "dependencies": { - "electron-download": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/electron-download/-/electron-download-3.3.0.tgz", - "integrity": "sha1-LP1U1pZsAZxNSa1l++Zcyc3vaMg=", - "dev": true, - "requires": { - "debug": "2.6.9", - "fs-extra": "0.30.0", - "home-path": "1.0.5", - "minimist": "1.2.0", - "nugget": "2.0.1", - "path-exists": "2.1.0", - "rc": "1.2.2", - "semver": "5.4.1", - "sumchecker": "1.3.1" - } - }, "nugget": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/nugget/-/nugget-2.0.1.tgz", @@ -1779,104 +1692,6 @@ } } }, - "electron-installer-debian": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/electron-installer-debian/-/electron-installer-debian-0.3.1.tgz", - "integrity": "sha1-VhKBM76fBbtgpJdMYijmP6Bd3g4=", - "optional": true, - "requires": { - "asar": "0.12.4", - "async": "2.6.0", - "debug": "2.6.9", - "fs-extra": "0.30.0", - "get-folder-size": "1.0.0", - "glob": "7.1.2", - "lodash": "4.17.4", - "temp": "0.8.3", - "word-wrap": "1.2.3", - "yargs": "4.8.1" - }, - "dependencies": { - "async": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.0.tgz", - "integrity": "sha512-xAfGg1/NTLBBKlHFmnd7PlmUW9KhVQIUuSrYem9xzFUZy13ScvtyGGejaae9iAVRiRq9+Cx7DPFaAAhCpyxyPw==", - "optional": true, - "requires": { - "lodash": "4.17.4" - } - } - } - }, - "electron-installer-redhat": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/electron-installer-redhat/-/electron-installer-redhat-0.3.1.tgz", - "integrity": "sha1-85v6//USyzgCfWbXVsxIklTu+PM=", - "optional": true, - "requires": { - "asar": "0.12.4", - "async": "2.6.0", - "debug": "2.6.9", - "fs-extra": "1.0.0", - "glob": "7.1.2", - "lodash": "4.17.4", - "temp": "0.8.3", - "word-wrap": "1.2.3", - "yargs": "6.6.0" - }, - "dependencies": { - "async": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.0.tgz", - "integrity": "sha512-xAfGg1/NTLBBKlHFmnd7PlmUW9KhVQIUuSrYem9xzFUZy13ScvtyGGejaae9iAVRiRq9+Cx7DPFaAAhCpyxyPw==", - "optional": true, - "requires": { - "lodash": "4.17.4" - } - }, - "fs-extra": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-1.0.0.tgz", - "integrity": "sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA=", - "optional": true, - "requires": { - "graceful-fs": "4.1.11", - "jsonfile": "2.4.0", - "klaw": "1.3.1" - } - }, - "yargs": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-6.6.0.tgz", - "integrity": "sha1-eC7CHvQDNF+DCoCMo9UTr1YGUgg=", - "optional": true, - "requires": { - "camelcase": "3.0.0", - "cliui": "3.2.0", - "decamelize": "1.2.0", - "get-caller-file": "1.0.2", - "os-locale": "1.4.0", - "read-pkg-up": "1.0.1", - "require-directory": "2.1.1", - "require-main-filename": "1.0.1", - "set-blocking": "2.0.0", - "string-width": "1.0.2", - "which-module": "1.0.0", - "y18n": "3.2.1", - "yargs-parser": "4.2.1" - } - }, - "yargs-parser": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-4.2.1.tgz", - "integrity": "sha1-KczqwNxPA8bIe0qfIX3RjJ90hxw=", - "optional": true, - "requires": { - "camelcase": "3.0.0" - } - } - } - }, "electron-packager": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/electron-packager/-/electron-packager-5.2.1.tgz", @@ -2251,6 +2066,7 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", + "dev": true, "requires": { "is-arrayish": "0.2.1" } @@ -2261,9 +2077,9 @@ "integrity": "sha1-3DRvu/XtHFKtabS6XLJgCK4hj/U=" }, "es6-promise": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.1.1.tgz", - "integrity": "sha512-OaU1hHjgJf+b0NzsxCg7NdIYERD6Hy/PEmFLTjw+b65scuisG3Kt4QoTvJ66BBkPZ581gr0kpoVzKnxniM8nng==", + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.2.tgz", + "integrity": "sha512-LSas5vsuA6Q4nEdf9wokY5/AJYXry98i0IzXsv49rYsgDGDNDPbqAYR1Pe23iFxygfbGZNR/5VrHXBCh2BhvUQ==", "dev": true }, "escape-string-regexp": { @@ -2855,6 +2671,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "dev": true, "requires": { "path-exists": "2.1.0", "pinkie-promise": "2.0.1" @@ -2955,6 +2772,7 @@ "version": "0.30.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.30.0.tgz", "integrity": "sha1-8jP/zAjU2n1DLapEl3aYnbHfk/A=", + "dev": true, "requires": { "graceful-fs": "4.1.11", "jsonfile": "2.4.0", @@ -2993,22 +2811,6 @@ "is-property": "1.0.2" } }, - "get-caller-file": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", - "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", - "optional": true - }, - "get-folder-size": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-folder-size/-/get-folder-size-1.0.0.tgz", - "integrity": "sha1-E01mOg50VhG3L3HIOxPxsS8xuik=", - "optional": true, - "requires": { - "async": "1.5.2", - "minimist": "1.2.0" - } - }, "get-package-info": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/get-package-info/-/get-package-info-0.0.2.tgz", @@ -4145,24 +3947,6 @@ } } }, - "grunt-electron-installer-debian": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/grunt-electron-installer-debian/-/grunt-electron-installer-debian-0.3.1.tgz", - "integrity": "sha1-2pA1V2cs9MMjd9mr++uUOUl/dRM=", - "optional": true, - "requires": { - "electron-installer-debian": "0.3.1" - } - }, - "grunt-electron-installer-redhat": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/grunt-electron-installer-redhat/-/grunt-electron-installer-redhat-0.3.1.tgz", - "integrity": "sha1-zjCT0RE6U+LDS9cv7UqRmXGtzpY=", - "optional": true, - "requires": { - "electron-installer-redhat": "0.3.1" - } - }, "grunt-electron-packager": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/grunt-electron-packager/-/grunt-electron-packager-0.1.1.tgz", @@ -4616,7 +4400,8 @@ "hosted-git-info": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz", - "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==" + "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==", + "dev": true }, "htmlparser2": { "version": "3.8.3", @@ -4842,12 +4627,14 @@ "invert-kv": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=" + "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", + "dev": true }, "is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=" + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true }, "is-binary-path": { "version": "1.0.1", @@ -4868,6 +4655,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", + "dev": true, "requires": { "builtin-modules": "1.1.1" } @@ -4912,6 +4700,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, "requires": { "number-is-nan": "1.0.1" } @@ -5023,7 +4812,8 @@ "is-utf8": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=" + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", + "dev": true }, "isarray": { "version": "1.0.0", @@ -5297,6 +5087,7 @@ "version": "2.4.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", + "dev": true, "requires": { "graceful-fs": "4.1.11" } @@ -5424,6 +5215,7 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz", "integrity": "sha1-QIhDO0azsbolnXh4XY6W9zugJDk=", + "dev": true, "requires": { "graceful-fs": "4.1.11" } @@ -5467,6 +5259,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", + "dev": true, "requires": { "invert-kv": "1.0.0" } @@ -5637,6 +5430,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "dev": true, "requires": { "graceful-fs": "4.1.11", "parse-json": "2.2.0", @@ -5648,7 +5442,8 @@ "lodash": { "version": "4.17.4", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=" + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "dev": true }, "lodash._basecopy": { "version": "3.0.1", @@ -5704,11 +5499,6 @@ "integrity": "sha1-+6HEUkwZ7ppfgTa0YJ8BfPTe1pI=", "dev": true }, - "lodash.assign": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", - "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=" - }, "lodash.escape": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-3.2.0.tgz", @@ -5945,33 +5735,8 @@ "mkpath": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/mkpath/-/mkpath-0.1.0.tgz", - "integrity": "sha1-dVSm+Nhxg0zJe1RisSLEwSTW3pE=" - }, - "mksnapshot": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/mksnapshot/-/mksnapshot-0.3.1.tgz", - "integrity": "sha1-JQHAVldDbXQs6Vik/5LHfkDdN+Y=", - "optional": true, - "requires": { - "decompress-zip": "0.3.0", - "fs-extra": "0.26.7", - "request": "2.83.0" - }, - "dependencies": { - "fs-extra": { - "version": "0.26.7", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.26.7.tgz", - "integrity": "sha1-muH92UiXeY7at20JGM9C0MMYT6k=", - "optional": true, - "requires": { - "graceful-fs": "4.1.11", - "jsonfile": "2.4.0", - "klaw": "1.3.1", - "path-is-absolute": "1.0.1", - "rimraf": "2.6.2" - } - } - } + "integrity": "sha1-dVSm+Nhxg0zJe1RisSLEwSTW3pE=", + "dev": true }, "ms": { "version": "2.0.0", @@ -6090,6 +5855,7 @@ "version": "3.0.6", "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", + "dev": true, "requires": { "abbrev": "1.1.1" } @@ -6098,6 +5864,7 @@ "version": "2.4.0", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", + "dev": true, "requires": { "hosted-git-info": "2.5.0", "is-builtin-module": "1.0.0", @@ -6141,7 +5908,8 @@ "number-is-nan": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true }, "numeral": { "version": "1.5.6", @@ -6241,6 +6009,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", + "dev": true, "requires": { "lcid": "1.0.0" } @@ -6248,7 +6017,8 @@ "os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "dev": true }, "osx-release": { "version": "1.1.0", @@ -6285,6 +6055,7 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "dev": true, "requires": { "error-ex": "1.3.1" } @@ -6310,6 +6081,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "dev": true, "requires": { "pinkie-promise": "2.0.1" } @@ -6341,6 +6113,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "dev": true, "requires": { "graceful-fs": "4.1.11", "pify": "2.3.0", @@ -6361,7 +6134,8 @@ "pify": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true }, "pinkie": { "version": "2.0.4", @@ -6672,6 +6446,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "dev": true, "requires": { "load-json-file": "1.1.0", "normalize-package-data": "2.4.0", @@ -6682,6 +6457,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "dev": true, "requires": { "find-up": "1.1.2", "read-pkg": "1.1.0" @@ -7069,18 +6845,6 @@ "throttleit": "0.0.2" } }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "optional": true - }, - "require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", - "optional": true - }, "require-uncached": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz", @@ -7219,13 +6983,8 @@ "semver": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", - "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==" - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "optional": true + "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==", + "dev": true }, "set-immediate-shim": { "version": "1.0.1", @@ -7359,6 +7118,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz", "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", + "dev": true, "requires": { "spdx-license-ids": "1.2.2" } @@ -7366,12 +7126,14 @@ "spdx-expression-parse": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz", - "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=" + "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=", + "dev": true }, "spdx-license-ids": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz", - "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=" + "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=", + "dev": true }, "speedometer": { "version": "0.1.4", @@ -7421,6 +7183,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, "requires": { "code-point-at": "1.1.0", "is-fullwidth-code-point": "1.0.0", @@ -7461,6 +7224,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "dev": true, "requires": { "is-utf8": "0.2.1" } @@ -7487,7 +7251,7 @@ "dev": true, "requires": { "debug": "2.6.9", - "es6-promise": "4.1.1" + "es6-promise": "4.2.2" } }, "supports-color": { @@ -7608,6 +7372,7 @@ "version": "0.8.3", "resolved": "https://registry.npmjs.org/temp/-/temp-0.8.3.tgz", "integrity": "sha1-4Ma8TSa5AxJEEOT+2BEDAU38H1k=", + "dev": true, "requires": { "os-tmpdir": "1.0.2", "rimraf": "2.2.8" @@ -7616,7 +7381,8 @@ "rimraf": { "version": "2.2.8", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz", - "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=" + "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=", + "dev": true } } }, @@ -7718,15 +7484,6 @@ } } }, - "tmp": { - "version": "0.0.28", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.28.tgz", - "integrity": "sha1-Fyc1t/YU6nrzlmT6hM8N5OUV0SA=", - "optional": true, - "requires": { - "os-tmpdir": "1.0.2" - } - }, "tmpl": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.4.tgz", @@ -7743,6 +7500,7 @@ "version": "0.0.3", "resolved": "https://registry.npmjs.org/touch/-/touch-0.0.3.tgz", "integrity": "sha1-Ua7z1ElXHU8oel2Hyci0kYGg2x0=", + "dev": true, "requires": { "nopt": "1.0.10" }, @@ -7751,6 +7509,7 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", + "dev": true, "requires": { "abbrev": "1.1.1" } @@ -7774,7 +7533,8 @@ "traverse": { "version": "0.3.9", "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.3.9.tgz", - "integrity": "sha1-cXuPIgzAu3tE5AUUwisui7xw2Lk=" + "integrity": "sha1-cXuPIgzAu3tE5AUUwisui7xw2Lk=", + "dev": true }, "trim-newlines": { "version": "1.0.0", @@ -7806,6 +7566,77 @@ "integrity": "sha1-gUXkynyv9ArN48z5Rui4u3W0Fys=", "dev": true }, + "tslib": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.8.1.tgz", + "integrity": "sha1-aUavLR1lGnsYY7Ux1uWvpBqkTqw=", + "dev": true + }, + "tslint": { + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.8.0.tgz", + "integrity": "sha1-H0mtWy53x2w69N3K5VKuTjYS6xM=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "builtin-modules": "1.1.1", + "chalk": "2.3.0", + "commander": "2.11.0", + "diff": "3.4.0", + "glob": "7.1.2", + "minimatch": "3.0.4", + "resolve": "1.5.0", + "semver": "5.4.1", + "tslib": "1.8.1", + "tsutils": "2.14.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz", + "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } + }, + "chalk": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.0.tgz", + "integrity": "sha512-Az5zJR2CBujap2rqXGaJKaPHyJ0IrUimvYNX+ncCy8PJP4ltOGTrHUIo097ZaL2zMeKYpiCdqDvS6zdrTFok3Q==", + "dev": true, + "requires": { + "ansi-styles": "3.2.0", + "escape-string-regexp": "1.0.5", + "supports-color": "4.5.0" + } + }, + "diff": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.4.0.tgz", + "integrity": "sha512-QpVuMTEoJMF7cKzi6bvWhRulU1fZqZnvyVQgNhPaxxuTYwyjn/j1v9falseQ/uXWwPnO56RBfwtg4h/EQXmucA==", + "dev": true + }, + "supports-color": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", + "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", + "dev": true, + "requires": { + "has-flag": "2.0.0" + } + } + } + }, + "tsutils": { + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.14.0.tgz", + "integrity": "sha512-f6axSMV0RoUufiKiRQgmRlN1c+Ag+mDaZjcd6bHdvplT/zyhuMCGqw3pJS8s3+0x4EVkdoQajs9PchdDZlguvw==", + "dev": true, + "requires": { + "tslib": "1.8.1" + } + }, "tunnel-agent": { "version": "0.4.3", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz", @@ -7858,6 +7689,12 @@ "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" }, + "typescript": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz", + "integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=", + "dev": true + }, "uglify-js": { "version": "2.8.29", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", @@ -7951,6 +7788,7 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz", "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", + "dev": true, "requires": { "spdx-correct": "1.0.2", "spdx-expression-parse": "1.0.4" @@ -8046,24 +7884,6 @@ "isexe": "2.0.0" } }, - "which-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", - "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=", - "optional": true - }, - "window-size": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.2.0.tgz", - "integrity": "sha1-tDFbtCFKPXBY6+7okuE/ok2YsHU=", - "optional": true - }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "optional": true - }, "wordwrap": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", @@ -8080,16 +7900,6 @@ "xtend": "4.0.1" } }, - "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", - "optional": true, - "requires": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1" - } - }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", @@ -8147,7 +7957,8 @@ "y18n": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", - "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=" + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", + "dev": true }, "yallist": { "version": "2.1.2", @@ -8155,38 +7966,6 @@ "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", "dev": true }, - "yargs": { - "version": "4.8.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-4.8.1.tgz", - "integrity": "sha1-wMQpJMpKqmsObaFznfshZDn53cA=", - "optional": true, - "requires": { - "cliui": "3.2.0", - "decamelize": "1.2.0", - "get-caller-file": "1.0.2", - "lodash.assign": "4.2.0", - "os-locale": "1.4.0", - "read-pkg-up": "1.0.1", - "require-directory": "2.1.1", - "require-main-filename": "1.0.1", - "set-blocking": "2.0.0", - "string-width": "1.0.2", - "which-module": "1.0.0", - "window-size": "0.2.0", - "y18n": "3.2.1", - "yargs-parser": "2.4.1" - } - }, - "yargs-parser": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-2.4.1.tgz", - "integrity": "sha1-hVaN488VD/SfpRgl8DqMiA3cxcQ=", - "optional": true, - "requires": { - "camelcase": "3.0.0", - "lodash.assign": "4.2.0" - } - }, "yauzl": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.4.1.tgz", diff --git a/package.json b/package.json index 29e78e5bf..674ec0e41 100644 --- a/package.json +++ b/package.json @@ -11,10 +11,12 @@ }, "bugs": "https://github.com/kitematic/kitematic/issues", "scripts": { + "build":"tslint --fix -p tsconfig.json && tsc", "start": "grunt", "start-dev": "NODE_ENV=development grunt", "test": "jest -c jest-unit.json", "integration": "jest -c jest-integration.json", + "postinstall": "npm run build", "release": "grunt release", "release-verbose": "grunt --verbose release", "lint": "eslint src" @@ -57,7 +59,7 @@ "devDependencies": { "babel": "^5.8.23", "babel-jest": "^5.2.0", - "electron": "^1.6.1", + "electron": "^1.7.10", "eslint": "^4.1.1", "eslint-plugin-react": "^3.3.0", "grunt": "^0.4.5", @@ -88,7 +90,9 @@ "minimist": "^1.1.1", "run-sequence": "^1.0.2", "shell-escape": "^0.2.0", - "source-map-support": "^0.3.2" + "source-map-support": "^0.3.2", + "tslint": "^5.8.0", + "typescript": "^2.6.2" }, "optionalDependencies": { "grunt-electron-installer-debian": "^0.3.0", diff --git a/src/main.js b/src/main.js index 36c3352e9..540019a80 100644 --- a/src/main.js +++ b/src/main.js @@ -1 +1,2 @@ -import './app'; +import "./app"; +//# sourceMappingURL=main.js.map \ No newline at end of file diff --git a/src/main.js.map b/src/main.js.map new file mode 100644 index 000000000..a34dd7ce0 --- /dev/null +++ b/src/main.js.map @@ -0,0 +1 @@ +{"version":3,"file":"main.js","sourceRoot":"","sources":["main.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC"} \ No newline at end of file diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 000000000..168ff510c --- /dev/null +++ b/src/main.ts @@ -0,0 +1 @@ +import "./app"; diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 000000000..68b7cf1e8 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "charset": "utf-8", + "module": "es2015", + "noImplicitAny": true, + "noImplicitReturns": true, + "noImplicitThis": true, + "noImplicitUseStrict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "target": "es2015", + "sourceMap": true + }, + "exclude": [ + "./node_modules" + ], + "files": [ + "./src/main.ts" + ], + "include": [ + "./node_modules/**/*.d.ts" + ] +} diff --git a/tslint.json b/tslint.json new file mode 100644 index 000000000..f7bb7a710 --- /dev/null +++ b/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "tslint:recommended" +} From 6bb6c872bd73bc1b7e02e1a070adffd778ba54e8 Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Sat, 23 Dec 2017 19:06:07 +0100 Subject: [PATCH 2/8] tslint script --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 674ec0e41..edd7bc930 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "bugs": "https://github.com/kitematic/kitematic/issues", "scripts": { - "build":"tslint --fix -p tsconfig.json && tsc", + "build":"npm run tslint && tsc", "start": "grunt", "start-dev": "NODE_ENV=development grunt", "test": "jest -c jest-unit.json", @@ -19,10 +19,11 @@ "postinstall": "npm run build", "release": "grunt release", "release-verbose": "grunt --verbose release", - "lint": "eslint src" + "lint": "eslint src", + "tslint":"tslint --fix -p tsconfig.json" }, "license": "Apache-2.0", - "electron-version": "0.35.4", + "electron-version": "1.7.10", "dependencies": { "alt": "^0.16.2", "ansi-to-html": "0.3.0", From 8f56303b424ce7b48472564575a443ed3eeead9b Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Sat, 23 Dec 2017 21:45:54 +0100 Subject: [PATCH 3/8] jsx --- src/main.js | 2 +- src/main.ts | 2 +- tsconfig.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 540019a80..45dd1f0fc 100644 --- a/src/main.js +++ b/src/main.js @@ -1,2 +1,2 @@ -import "./app"; +import './app'; //# sourceMappingURL=main.js.map \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 168ff510c..36c3352e9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1 +1 @@ -import "./app"; +import './app'; diff --git a/tsconfig.json b/tsconfig.json index 68b7cf1e8..432c6dd89 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { "charset": "utf-8", + "jsx": "preserve", "module": "es2015", "noImplicitAny": true, "noImplicitReturns": true, From 975a75f0c395025da1dfc72308d9825b6ca9b485 Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Sat, 23 Dec 2017 21:48:32 +0100 Subject: [PATCH 4/8] strict null checks --- tsconfig.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 432c6dd89..08bc1a430 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,8 +10,9 @@ "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, - "target": "es2015", - "sourceMap": true + "sourceMap": true, + "strictNullChecks": true, + "target": "es2015" }, "exclude": [ "./node_modules" From 09224cb18a4ecbe1b9aad5bf78396aecfe4b618d Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Sat, 23 Dec 2017 22:02:37 +0100 Subject: [PATCH 5/8] added react types --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index edd7bc930..873f4ed13 100644 --- a/package.json +++ b/package.json @@ -58,6 +58,7 @@ "which": "^1.2.4" }, "devDependencies": { + "@types/react": "^16.0.31", "babel": "^5.8.23", "babel-jest": "^5.2.0", "electron": "^1.7.10", From 805fe5a8b026ab76b5b47e7472c553bc1cf06cf7 Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Sat, 23 Dec 2017 22:35:47 +0100 Subject: [PATCH 6/8] allowJS --- tsconfig.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 08bc1a430..dabec63a3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "allowJs": true, "charset": "utf-8", "jsx": "preserve", "module": "es2015", @@ -19,8 +20,5 @@ ], "files": [ "./src/main.ts" - ], - "include": [ - "./node_modules/**/*.d.ts" ] } From 78c09d5d7fae70f4cdec3e74420f75b80ae7dbbf Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Thu, 28 Dec 2017 19:34:57 +0100 Subject: [PATCH 7/8] Added some fix in schemas and runing tslint well --- package-lock.json | 6 ++++++ package.json | 12 ++++++------ src/main.js | 2 +- src/main.ts | 2 +- tsconfig.json | 3 ++- tslint.json | 1 + 6 files changed, 17 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index dc2f79a61..b1583a60a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,12 @@ "integrity": "sha512-h5u7FnEnG+Fn44HfknTTvu199FzFWVSo97ToSRWvXl1F11UfN6wGnE7exUy23pFfDn+CeluvEoCoe4l2eCVC3g==", "dev": true }, + "@types/react": { + "version": "16.0.31", + "resolved": "https://registry.npmjs.org/@types/react/-/react-16.0.31.tgz", + "integrity": "sha512-ft7OuDGUo39e+9LGwUewf2RyEaNBOjWbHUmD5bzjNuSuDabccE/1IuO7iR0dkzLjVUKxTMq69E+FmKfbgBcfbQ==", + "dev": true + }, "JSONStream": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.1.tgz", diff --git a/package.json b/package.json index 873f4ed13..91aaccb44 100644 --- a/package.json +++ b/package.json @@ -11,16 +11,16 @@ }, "bugs": "https://github.com/kitematic/kitematic/issues", "scripts": { - "build":"npm run tslint && tsc", - "start": "grunt", - "start-dev": "NODE_ENV=development grunt", + "build": "npm run tslint && tsc", + "start": "npm run build && grunt", + "start-dev": "npm run build && NODE_ENV=development grunt", "test": "jest -c jest-unit.json", "integration": "jest -c jest-integration.json", "postinstall": "npm run build", - "release": "grunt release", - "release-verbose": "grunt --verbose release", + "release": "npm run build && grunt release", + "release-verbose": "npm run build && grunt --verbose release", "lint": "eslint src", - "tslint":"tslint --fix -p tsconfig.json" + "tslint": "tslint --fix -p tsconfig.json" }, "license": "Apache-2.0", "electron-version": "1.7.10", diff --git a/src/main.js b/src/main.js index 45dd1f0fc..540019a80 100644 --- a/src/main.js +++ b/src/main.js @@ -1,2 +1,2 @@ -import './app'; +import "./app"; //# sourceMappingURL=main.js.map \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 36c3352e9..168ff510c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1 +1 @@ -import './app'; +import "./app"; diff --git a/tsconfig.json b/tsconfig.json index dabec63a3..765d4eef8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { + "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "allowJs": true, + "checkJs": false, "charset": "utf-8", "jsx": "preserve", "module": "es2015", diff --git a/tslint.json b/tslint.json index f7bb7a710..e559cd645 100644 --- a/tslint.json +++ b/tslint.json @@ -1,3 +1,4 @@ { + "$schema": "http://json.schemastore.org/tslint", "extends": "tslint:recommended" } From df6da4934467b9302c648b8572eb99dc4c004c7d Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Tue, 27 Feb 2018 12:00:48 +0100 Subject: [PATCH 8/8] electron-build triggers build indirectly --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4933bcabc..72fa41ed8 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,9 @@ "prestart": "npm run build", "release": "npm run build && grunt release", "release-verbose": "npm run build && grunt --verbose release", - "release:linux": "grunt release && electron-builder --linux", - "release:mac": "grunt release && electron-builder --mac", - "release:windows": "grunt release && electron-builder --windows", + "release:linux": "npm run release && electron-builder --linux", + "release:mac": "npm run release && electron-builder --mac", + "release:windows": "npm run release && electron-builder --windows", "start": "grunt", "start-dev": "npm run build && NODE_ENV=development grunt", "test": "jest -c jest-unit.json",