Skip to content

Commit

Permalink
feat: use interactive dev server output from Vite
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier committed May 8, 2024
1 parent 6f2b0bd commit a0ccf72
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.6.0",
"@dhis2/app-shell": "11.2.0",
"@dhis2/cli-helpers-engine": "^3.2.0",
"@dhis2/cli-helpers-engine": "^3.2.2",
"@jest/core": "^27.0.6",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
"@yarnpkg/lockfile": "^1.1.0",
Expand Down
3 changes: 2 additions & 1 deletion cli/src/lib/shell/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ module.exports = ({ config, paths }) => {
args: ['start'],
cwd: paths.shell,
env: getEnv({ ...baseEnvVars, port, ...getPWAEnvVars(config) }),
pipe: false,
// this option allows the colorful and interactive output from Vite:
stdio: 'inherit',
})
},
// TODO: remove? Test command does not seem to call this method
Expand Down
17 changes: 16 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2008,7 +2008,7 @@
update-notifier "^3.0.0"
yargs "^13.1.0"

"@dhis2/cli-helpers-engine@^3.0.0", "@dhis2/cli-helpers-engine@^3.2.0":
"@dhis2/cli-helpers-engine@^3.0.0":
version "3.2.0"
resolved "https://registry.yarnpkg.com/@dhis2/cli-helpers-engine/-/cli-helpers-engine-3.2.0.tgz#081699f6553dcfe26ef6c90ae6521e467b5bd3a5"
integrity sha512-BVvBf+4BEGNsf4hpEVButGoLTIGULb6DUMmFetYCQPVvyuqfK7PcDfa3KBJsZL0xxjhTjmj9iiJ+YMf64z1PnA==
Expand All @@ -2023,6 +2023,21 @@
update-notifier "^3.0.0"
yargs "^13.1.0"

"@dhis2/cli-helpers-engine@^3.2.2":
version "3.2.2"
resolved "https://registry.yarnpkg.com/@dhis2/cli-helpers-engine/-/cli-helpers-engine-3.2.2.tgz#e3ab24d3da46c7ecb79a31cb332548ebdac72d1c"
integrity sha512-zMBm33WzYbjmb/eqIfpZS1ZZWbFaRHoHZoVhKWvOX0TDAEmdPtEmfG5fc5keV3CU9lDBIyXCfmca0KJeNvs5/w==
dependencies:
chalk "^3.0.0"
cross-spawn "^7.0.3"
find-up "^5.0.0"
fs-extra "^8.0.1"
inquirer "^7.3.3"
request "^2.88.0"
tar "^4.4.8"
update-notifier "^3.0.0"
yargs "^13.1.0"

"@dhis2/cli-helpers-template@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@dhis2/cli-helpers-template/-/cli-helpers-template-3.0.0.tgz#1cfb625a6e1a6a824386bd0cfd3ba646783920c3"
Expand Down

0 comments on commit a0ccf72

Please sign in to comment.