Issue 281 - add @packages/root (#282)

* link: create fake @packages/root

* server: switch to loading @packages/root

* server: update tests after using @packages/root

* load root package in other places

* load root package in build using @packages/root

* update tests that mock root package

* server: fix server start whenever loading root package in updater

* fix updater test

* uncomment code
This commit is contained in:
Gleb Bahmutov
2017-07-10 10:07:52 -04:00
committed by GitHub
parent 4bb476753d
commit a364607b6b
19 changed files with 50 additions and 46 deletions
+3 -5
View File
@@ -23,6 +23,8 @@ packages = require("./util/packages")
Darwin = require("./darwin")
Linux = require("./linux")
rootPackage = require("@packages/root")
sign = Promise.promisify(signOsxApp)
fs = Promise.promisifyAll(fse)
@@ -105,6 +107,7 @@ buildCypressApp = (platform, version, options = {}) ->
fs.outputJsonAsync(distDir("package.json"), {
name: "cypress"
productName: "Cypress",
description: rootPackage.description
version: version
main: "index.js"
scripts: {}
@@ -248,11 +251,6 @@ buildCypressApp = (platform, version, options = {}) ->
.then(removeDevElectronApp)
.then(copyPackageProxies(buildAppDir))
.then(runSmokeTest)
# older build steps
# .then(@runProjectTest) # if run larger tests need to cleanup symlinks
# .then(@runFailingProjectTest)
# .then(@cleanupCy)
.then(codeSign) ## codesign after running smoke tests due to changing .cy
.then(verifyAppCanOpen)
.return({