From a33e0045e2c14d7e47a54ce1f5250bfdfb921800 Mon Sep 17 00:00:00 2001 From: develar Date: Thu, 20 Oct 2016 08:12:52 +0200 Subject: [PATCH] perf: lazy imports, get rid of tsAwaiter --- .idea/dictionaries/develar.xml | 1 + .idea/electron-builder.iml | 2 + .../ArtifactPublisherTest.xml | 2 +- .idea/runConfigurations/compile.xml | 12 + .idea/runConfigurations/lint.xml | 12 + .idea/runConfigurations/test.xml | 12 + .idea/typescript-compiler.xml | 5 +- nsis-auto-updater/package.json | 2 +- nsis-auto-updater/src/BintrayProvider.ts | 3 - nsis-auto-updater/src/NsisUpdater.ts | 16 +- nsis-auto-updater/tsconfig.json | 15 +- package.json | 35 +-- src/appInfo.ts | 5 +- src/asarUtil.ts | 89 ++++--- src/build-cli.ts | 2 +- src/builder.ts | 5 +- src/cleanup.ts | 5 +- src/cliOptions.ts | 2 +- src/codeSign.ts | 5 +- src/install-app-deps.ts | 7 +- src/linuxPackager.ts | 5 +- src/macPackager.ts | 5 +- src/node-gyp-rebuild.ts | 5 +- src/packager.ts | 9 +- src/packager/dirPackager.ts | 5 +- src/packager/mac.ts | 7 +- src/platformPackager.ts | 5 +- src/publish/BintrayPublisher.ts | 5 +- src/publish/gitHubPublisher.ts | 7 +- src/publish/restApiRequest.ts | 5 +- src/publish/uploader.ts | 4 +- src/repositoryInfo.ts | 3 - src/targets/LinuxTargetHelper.ts | 5 +- src/targets/appImage.ts | 5 +- src/targets/archive.ts | 3 - src/targets/dmg.ts | 5 +- src/targets/fpm.ts | 5 +- src/targets/nsis.ts | 9 +- src/targets/squirrelPack.ts | 5 +- src/targets/squirrelWindows.ts | 3 - src/util/awaiter.ts | 11 - src/util/binDownload.ts | 5 +- src/util/filter.ts | 5 +- src/util/httpRequest.ts | 5 +- src/util/log.ts | 4 +- src/util/promise.ts | 5 +- src/util/readPackageJson.ts | 3 - src/util/tmp.ts | 5 +- src/util/util.ts | 17 +- src/winPackager.ts | 5 +- src/windowsCodeSign.ts | 4 +- test/src/ArtifactPublisherTest.ts | 8 +- test/src/BuildTest.ts | 5 +- test/src/CodeSignTest.ts | 3 - test/src/RepoSlugTest.ts | 5 +- test/src/globTest.ts | 7 +- test/src/helpers/expectedContents.ts | 2 +- test/src/helpers/fileAssert.ts | 3 - test/src/helpers/packTester.ts | 7 +- test/src/helpers/runTests.ts | 12 +- test/src/helpers/wine.ts | 7 +- test/src/httpRequestTest.ts | 3 - test/src/linuxPackagerTest.ts | 3 - test/src/macPackagerTest.ts | 8 +- test/src/nsisTest.ts | 5 +- test/src/nsisUpdaterTest.ts | 5 +- test/src/winPackagerTest.ts | 5 +- test/tsconfig.json | 14 +- test/typings/decompress-zip.d.ts | 2 +- tsconfig.json | 23 +- tslint.json | 5 +- typings/chalk.d.ts | 219 +++++++++--------- typings/debug.d.ts | 13 ++ typings/lib.es2016.array.include.d.ts | 107 +-------- typings/mime.d.ts | 21 ++ typings/path-sort.d.ts | 2 +- typings/pretty-ms.d.ts | 2 +- typings/progress-stream.d.ts | 2 +- typings/progress.d.ts | 115 +++++++++ typings/sanitize-filename.d.ts | 2 +- typings/semver.d.ts | 175 ++++++++++++++ typings/updateNotifier.d.ts | 2 +- typings/yargs.d.ts | 2 +- yarn.lock | 89 +++---- 84 files changed, 704 insertions(+), 590 deletions(-) create mode 100644 .idea/runConfigurations/compile.xml create mode 100644 .idea/runConfigurations/lint.xml create mode 100644 .idea/runConfigurations/test.xml delete mode 100644 src/util/awaiter.ts create mode 100644 typings/debug.d.ts create mode 100644 typings/mime.d.ts create mode 100644 typings/progress.d.ts create mode 100644 typings/semver.d.ts diff --git a/.idea/dictionaries/develar.xml b/.idea/dictionaries/develar.xml index 1c07cfcd61f..640b20b1ebd 100644 --- a/.idea/dictionaries/develar.xml +++ b/.idea/dictionaries/develar.xml @@ -123,6 +123,7 @@ rels repos rimraf + scripthost semver shorthash signcode diff --git a/.idea/electron-builder.iml b/.idea/electron-builder.iml index 86576276fb4..bac7a39926f 100644 --- a/.idea/electron-builder.iml +++ b/.idea/electron-builder.iml @@ -3,8 +3,10 @@ + + diff --git a/.idea/runConfigurations/ArtifactPublisherTest.xml b/.idea/runConfigurations/ArtifactPublisherTest.xml index 5705e49b0a6..78bee45d503 100644 --- a/.idea/runConfigurations/ArtifactPublisherTest.xml +++ b/.idea/runConfigurations/ArtifactPublisherTest.xml @@ -1,5 +1,5 @@ - + diff --git a/.idea/runConfigurations/compile.xml b/.idea/runConfigurations/compile.xml new file mode 100644 index 00000000000..03a53acba8c --- /dev/null +++ b/.idea/runConfigurations/compile.xml @@ -0,0 +1,12 @@ + + + + + +