Files
Hippy/scripts/build-debug-server.js
T
2021-12-28 22:31:37 +08:00

24 lines
548 B
JavaScript

/* eslint-disable no-console */
const path = require('path');
const {
exec,
pushd,
popd,
} = require('shelljs');
module.exports = buildDebugServer;
function buildDebugServer() {
const DEBUG_SERVER_PATH = path.join(__dirname, '../framework/js/packages/hippy-debug-server');
pushd(DEBUG_SERVER_PATH);
const execOptions = { stdio: 'inherit' };
console.log('1/1 Start to build project @hippy/debug-server');
exec('npm run build', execOptions);
console.log('👌 All done, you can debug your hippy app now, enjoy.');
popd();
}