Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
release: 0.13.2
Browse files Browse the repository at this point in the history
  • Loading branch information
andycall committed Jan 5, 2023
1 parent 11f4610 commit 953f871
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ environment:
sdk: ">=2.12.0 <3.0.0"

# dependency_overrides:
# kraken:
# path: ../../kraken/kraken
# webf:
# path: ../../webf/webf

dependencies:
flutter:
sdk: flutter

webf: ^0.13.1
webf: ^0.13.2
webf_websocket: ^1.1.0
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
Expand Down
18 changes: 9 additions & 9 deletions bin/webf.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ program
"Source code. pass source directory from command line"
)
.option("--enable-webf-js-log", "print webf js to dart log", false)
.option("--remote-debugging-port <port>", "The debug websocket server listenering port.", 9222)
.option(
"--show-performance-monitor",
"show render performance monitor",
Expand All @@ -41,7 +42,7 @@ program
.option("-d, --debug-layout", "debug element's paint layout", false)
.action((bundleOrUrl, command) => {
let options;
let { bundle, url, source, instruct } = (options = command.opts());
let { bundle, url, source, instruct } = (options = program.opts());

if (!bundle && !url && !source && !bundleOrUrl) {
command.help();
Expand Down Expand Up @@ -75,6 +76,7 @@ program
"-s, --source <source>",
"Source code. pass source directory from command line"
)
.option("--remote-debugging-port <port>", "The debug websocket server listenering port.", 9222)
.option("--enable-webf-js-log", "print webf js to dart log", false)
.option(
"--show-performance-monitor",
Expand All @@ -83,7 +85,7 @@ program
)
.option("-d, --debug-layout", "debug element's paint layout", false)
.action((options) => {
let { bundle, url, source, instruct } = options;
let { bundle, url, source, instruct } = options.opts();

if (!bundle && !url && !source && !options.args) {
program.help();
Expand All @@ -99,7 +101,7 @@ program
}
}

handleRun(bundle, url, source, instruct, options);
handleRun(bundle, url, source, instruct, options.opts());
});

function handleRun(bundle, url, source, instruct, options) {
Expand All @@ -114,6 +116,8 @@ function handleRun(bundle, url, source, instruct, options) {
env["WEBF_LIBRARY_PATH"] = resolve(__dirname, "../build/lib");
}

env['WEBF_REMOTE_DEBUGGING_PORT'] = options.remoteDebuggingPort;

if (options.enableWebfJsLog) {
env["ENABLE_WEBF_JS_LOG"] = "true";
}
Expand Down Expand Up @@ -151,12 +155,8 @@ function handleRun(bundle, url, source, instruct, options) {
env,
});
childProcess.stdout.pipe(process.stdout);
childProcess.stderr.on("data", (data) => {
let errlog = data.toString();
errlog = errlog
.split("\n")
.filter((line) => line.indexOf("JavaScriptCore.framework") < 0);
process.stderr.write(errlog.join("\n"));
process.on('SIGTERM', () => {
childProcess.kill();
});
} else {
console.error(chalk.red("WebF Binary NOT exists, try reinstall."));
Expand Down

0 comments on commit 953f871

Please sign in to comment.