From 1517453b8d2d037cd290bba6c76a28837b407dd6 Mon Sep 17 00:00:00 2001 From: develar Date: Sun, 11 Dec 2016 20:12:11 +0100 Subject: [PATCH] feat: force application signing Babel config moved to .babelrc because: * jest invalidate cache on config file modification * json5 can be used instead of ugly raw json config option added as preparation to additional config file in yaml. Closes #975 --- .babelrc | 43 ++++++++++++++++ .idea/codeStyleSettings.xml | 3 ++ .idea/dictionaries/develar.xml | 4 ++ .idea/inspectionProfiles/Project_Default.xml | 3 ++ .idea/scopes/json5.xml | 3 ++ docs/Options.md | 3 +- docs/programmaticUsage.js | 2 +- package.json | 45 ---------------- src/appInfo.ts | 29 +++++------ src/cli/install-app-deps.ts | 4 +- src/macPackager.ts | 10 ++-- src/metadata.ts | 23 +++++---- src/packager.ts | 38 +++++++++----- src/packager/dirPackager.ts | 4 +- src/packager/mac.ts | 2 +- src/platformPackager.ts | 37 ++++++++------ src/repositoryInfo.ts | 7 ++- src/targets/LinuxTargetHelper.ts | 2 +- src/targets/appImage.ts | 4 +- src/targets/appx.ts | 2 +- src/targets/dmg.ts | 6 +-- src/targets/fpm.ts | 8 +-- src/targets/nsis.ts | 6 +-- src/targets/snap.ts | 2 +- src/targets/squirrelWindows.ts | 10 ++-- src/targets/targetFactory.ts | 4 +- src/util/util.ts | 5 ++ src/winPackager.ts | 7 ++- test/fixtures/test-app/package.json | 3 +- test/src/ArtifactPublisherTest.ts | 2 - test/src/BuildTest.ts | 13 ++--- test/src/filesTest.ts | 14 ++--- test/src/globTest.ts | 12 ++--- test/src/helpers/packTester.ts | 18 +++---- test/src/ignoreTest.ts | 28 ++++------ test/src/linux/debTest.ts | 8 ++- test/src/linux/linuxPackagerTest.ts | 16 +++--- test/src/mac/dmgTest.ts | 48 ++++++++--------- test/src/mac/macPackagerTest.ts | 20 ++++---- test/src/mac/masTest.ts | 26 ++++------ test/src/windows/nsisBoring.ts | 54 +++++++++----------- test/src/windows/nsisTest.ts | 54 +++++++++----------- test/src/windows/squirrelWindowsTest.ts | 18 +++---- test/src/windows/winPackagerTest.ts | 17 +++--- yarn.lock | 4 +- 45 files changed, 328 insertions(+), 343 deletions(-) create mode 100644 .babelrc create mode 100644 .idea/scopes/json5.xml diff --git a/.babelrc b/.babelrc new file mode 100644 index 00000000000..5c5ae7d7630 --- /dev/null +++ b/.babelrc @@ -0,0 +1,43 @@ +{ + env: { + development: { + plugins: [ + [ + "transform-async-to-module-method", + { + module: "bluebird-lst-c", + method: "coroutine" + } + ], + "transform-es2015-parameters", + "transform-es2015-spread", + "transform-es2015-destructuring", + "array-includes", + [ + "transform-inline-imports-commonjs", + { + excludeModules: ["path"] + } + ], + ], + }, + test: { + sourceMaps: "inline", + plugins: [ + [ + "transform-async-to-module-method", + { + module: "bluebird-lst-c", + method: "coroutine" + } + ], + [ + "transform-inline-imports-commonjs", + { + excludeModules: ["path"] + } + ], + ] + } + } +} \ No newline at end of file diff --git a/.idea/codeStyleSettings.xml b/.idea/codeStyleSettings.xml index f9db70b81e0..1038133a841 100644 --- a/.idea/codeStyleSettings.xml +++ b/.idea/codeStyleSettings.xml @@ -20,6 +20,9 @@