Skip to content

Commit

Permalink
refactor: use cp.fork to preserve stdout for packages/extension build (
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachJW34 committed Jul 29, 2022
1 parent 91de9cf commit 2fd495c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/extension/gulpfile.ts
Expand Up @@ -2,8 +2,9 @@ import gulp from 'gulp'
import rimraf from 'rimraf'
import * as cypressIcons from '@packages/icons'
import cp from 'child_process'
import util from 'util'
const exec = util.promisify(cp.exec)
import * as path from 'path'

const nodeWebpack = path.join(__dirname, '..', '..', 'scripts', 'run-webpack.js')

const clean = (done) => {
rimraf('dist', done)
Expand All @@ -15,7 +16,9 @@ const manifest = () => {
}

const background = (cb) => {
exec('node ../../scripts/run-webpack.js').then(() => cb()).catch(cb)
cp.fork(nodeWebpack, { stdio: 'inherit' }).on('exit', (code) => {
cb(code === 0 ? null : new Error(`Webpack process exited with code ${code}`))
})
}

const html = () => {
Expand Down

5 comments on commit 2fd495c

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 2fd495c Jul 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.4.0/linux-x64/develop-2fd495ca1caf3754bc77ea5af5e0e3a7ee057697/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 2fd495c Jul 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.4.0/linux-arm64/develop-2fd495ca1caf3754bc77ea5af5e0e3a7ee057697/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 2fd495c Jul 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.4.0/darwin-arm64/develop-2fd495ca1caf3754bc77ea5af5e0e3a7ee057697/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 2fd495c Jul 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.4.0/darwin-x64/develop-2fd495ca1caf3754bc77ea5af5e0e3a7ee057697/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 2fd495c Jul 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.4.0/win32-x64/develop-2fd495ca1caf3754bc77ea5af5e0e3a7ee057697/cypress.tgz

Please sign in to comment.