mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-26 19:09:32 -06:00
Build app for both platforms (#249)
* binary: check platform, throw exception on mismatch * binary: build script actually builds linux platform app * zip from Mac both linux and darwin apps * quiet npm installs during builds
This commit is contained in:
@@ -29,10 +29,10 @@ npmRun = (args, cwd) ->
|
||||
reject(new Error(msg))
|
||||
|
||||
|
||||
runAllBuildJs = _.partial(npmRun, ["run", "all", "build-js"])
|
||||
runAllBuildJs = _.partial(npmRun, ["run", "all", "build-js", "--skip-packages", "cli,docs"])
|
||||
|
||||
# removes transpiled JS files in the original package folders
|
||||
runAllCleanJs = _.partial(npmRun, ["run", "all", "clean-js"])
|
||||
runAllCleanJs = _.partial(npmRun, ["run", "all", "clean-js", "--skip-packages", "cli,docs"])
|
||||
|
||||
# builds all the packages except for cli and docs
|
||||
runAllBuild = _.partial(npmRun,
|
||||
@@ -100,7 +100,7 @@ npmInstallAll = (pathToPackages) ->
|
||||
|
||||
|
||||
retryNpmInstall = (pkg) ->
|
||||
npmInstall = _.partial(npmRun, ["install", "--production"])
|
||||
npmInstall = _.partial(npmRun, ["install", "--production", "--quiet"])
|
||||
npmInstall(pkg)
|
||||
.catch {code: "EMFILE"}, ->
|
||||
Promise
|
||||
@@ -114,7 +114,7 @@ npmInstallAll = (pathToPackages) ->
|
||||
## prunes out all of the devDependencies
|
||||
## from what was copied
|
||||
retryGlobbing()
|
||||
.map(retryNpmInstall)
|
||||
.mapSeries(retryNpmInstall)
|
||||
.then ->
|
||||
console.log("Finished NPM Installing", new Date() - started)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user