Skip to content

Commit

Permalink
fix(ui): backport from Qv2 - open page in browser from umd test scrip…
Browse files Browse the repository at this point in the history
…t (chrome by default)
  • Loading branch information
pdanpdan committed Oct 21, 2023
1 parent 7e3c19b commit 38f0c00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ui/build/script.test-umd.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const
fs = require('fs'),
{ resolve } = require('path'),
open = require('open'),
rimraf = require('rimraf').sync

const
Expand All @@ -16,6 +15,11 @@ if (!fs.existsSync(src)) {
rimraf(dest)
fs.symlinkSync(src, dest, 'dir')

open(
resolve(__dirname, '../dev-umd/index.umd.html')
)
import('open').then(({ default: open }) => {
open(
resolve(__dirname, '../dev-umd/index.umd.html'),
{
app: { name: 'google chrome' }
}
)
})
1 change: 1 addition & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"friendly-errors-webpack-plugin": "^1.7.0",
"json-beautify": "^1.1.1",
"module-alias": "^2.2.2",
"open": "^9.1.0",
"recast": "^0.20.0",
"rimraf": "^3.0.1",
"rollup": "^2.0.0",
Expand Down

0 comments on commit 38f0c00

Please sign in to comment.