Skip to content

Commit

Permalink
сhore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
develar committed Dec 11, 2018
1 parent f698f08 commit ddd2b76
Show file tree
Hide file tree
Showing 6 changed files with 491 additions and 477 deletions.
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"hosted-git-info": "^2.7.1",
"iconv-lite": "^0.4.24",
"ini": "^1.3.5",
"is-ci": "^1.2.1",
"is-ci": "^2.0.0",
"isbinaryfile": "^3.0.3",
"js-yaml": "^3.12.0",
"lazy-val": "^1.0.3",
Expand All @@ -69,28 +69,28 @@
"yargs": "^12.0.5"
},
"devDependencies": {
"@babel/core": "^7.1.6",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-decorators": "^7.1.6",
"@babel/plugin-proposal-do-expressions": "^7.0.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
"@babel/plugin-proposal-function-bind": "^7.0.0",
"@babel/plugin-proposal-function-sent": "^7.1.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/preset-env": "^7.1.6",
"@babel/core": "^7.2.0",
"@babel/plugin-proposal-class-properties": "^7.2.1",
"@babel/plugin-proposal-decorators": "^7.2.0",
"@babel/plugin-proposal-do-expressions": "^7.2.0",
"@babel/plugin-proposal-export-default-from": "^7.2.0",
"@babel/plugin-proposal-export-namespace-from": "^7.2.0",
"@babel/plugin-proposal-function-bind": "^7.2.0",
"@babel/plugin-proposal-function-sent": "^7.2.0",
"@babel/plugin-proposal-json-strings": "^7.2.0",
"@babel/plugin-proposal-logical-assignment-operators": "^7.2.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.2.0",
"@babel/plugin-proposal-numeric-separator": "^7.2.0",
"@babel/plugin-proposal-optional-chaining": "^7.2.0",
"@babel/plugin-proposal-pipeline-operator": "^7.2.0",
"@babel/plugin-proposal-throw-expressions": "^7.2.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-syntax-import-meta": "^7.2.0",
"@babel/preset-env": "^7.2.0",
"@babel/preset-react": "^7.0.0",
"@types/debug": "^0.0.31",
"@types/ejs": "^2.6.0",
"@types/ini": "^1.3.29",
"@types/ejs": "^2.6.1",
"@types/ini": "^1.3.30",
"@types/jest": "^23.3.10",
"@types/js-yaml": "^3.11.2",
"@types/lodash.isequal": "^4.5.3",
Expand All @@ -116,7 +116,7 @@
"ts-babel": "6.1.2",
"ts-jsdoc": "^3.0.1",
"tslint": "^5.11.0",
"typescript": "~3.1.6",
"typescript": "~3.2.2",
"whitespace": "^2.1.0",
"worker-farm": "^1.6.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/app-builder-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"electron-publish": "0.0.0-semantic-release",
"fs-extra-p": "^7.0.0",
"hosted-git-info": "^2.7.1",
"is-ci": "^1.2.1",
"is-ci": "^2.0.0",
"isbinaryfile": "^3.0.3",
"js-yaml": "^3.12.0",
"read-config-file": "3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/builder-util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"app-builder-bin": "2.6.0",
"temp-file": "^3.3.2",
"fs-extra-p": "^7.0.0",
"is-ci": "^1.2.1",
"is-ci": "^2.0.0",
"stat-mode": "^0.2.2",
"bluebird-lst": "^1.0.6",
"chalk": "^2.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"builder-util-runtime": "0.0.0-semantic-release",
"builder-util": "0.0.0-semantic-release",
"fs-extra-p": "^7.0.0",
"is-ci": "^1.2.1",
"is-ci": "^2.0.0",
"read-config-file": "3.2.0",
"sanitize-filename": "^1.6.1",
"update-notifier": "^2.5.0",
Expand Down
58 changes: 30 additions & 28 deletions test/src/PublishManagerTest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { createTargets, Platform } from "electron-builder"
import { outputFile } from "fs-extra-p"
import * as path from "path"
import { GithubOptions, GenericServerOptions, SpacesOptions } from "builder-util-runtime"
import { assertThat } from "./helpers/fileAssert"
import { app, checkDirContents } from "./helpers/packTester"

Expand All @@ -12,40 +13,45 @@ test.ifDevOrLinuxCi("generic, github and spaces", app({
electronUpdaterCompatibility: ">=2.16",
},
publish: [
{
provider: "generic",
url: "https://example.com/downloads"
},
{
provider: "github",
repo: "foo/foo"
},
{
provider: "spaces",
name: "mySpaceName",
region: "nyc3"
},
genericPublisher("https://example.com/downloads"),
githubPublisher("foo/foo"),
spacesPublisher(),
]
},
}))

function spacesPublisher(publishAutoUpdate: boolean = true): SpacesOptions {
return {
provider: "spaces",
name: "mySpaceName",
region: "nyc3",
publishAutoUpdate,
}
}

function githubPublisher(repo: string): GithubOptions {
return {
provider: "github",
repo,
}
}

function genericPublisher(url: string): GenericServerOptions {
return {
provider: "generic",
url,
}
}

test.ifDevOrLinuxCi("github and spaces (publishAutoUpdate)", app({
targets: Platform.LINUX.createTarget("AppImage"),
config: {
mac: {
electronUpdaterCompatibility: ">=2.16",
},
publish: [
{
provider: "github",
repo: "foo/foo"
},
{
provider: "spaces",
name: "mySpaceName",
region: "nyc3",
publishAutoUpdate: false
},
githubPublisher("foo/foo"),
spacesPublisher(false),
]
},
}))
Expand All @@ -59,11 +65,7 @@ test.ifAll("mac artifactName ", app({
electronUpdaterCompatibility: ">=2.16",
},
publish: [
{
provider: "spaces",
name: "mySpaceName",
region: "nyc3"
},
spacesPublisher(),
]
},
}, {
Expand Down
Loading

0 comments on commit ddd2b76

Please sign in to comment.