Some refactorings
This commit is contained in:
2
example-project/.vscode/launch.json
vendored
2
example-project/.vscode/launch.json
vendored
@@ -8,7 +8,7 @@
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Launch Program",
|
||||
"program": "${workspaceFolder}\\src\\index.ts",
|
||||
"program": "${workspaceFolder}\\dist\\index.js",
|
||||
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
|
||||
"preLaunchTask": "npm: dev"
|
||||
}
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
"version": "1.0.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@hediet/std": "^0.4.0",
|
||||
"@hediet/live-debug": "^0.5.2",
|
||||
"@hediet/node-reload": "0.7.0",
|
||||
"@hediet/std": "^0.4.0",
|
||||
"typescript": "^3.5.3"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -11,11 +11,19 @@ import {
|
||||
} from "@hediet/debug-visualizer-data-extraction";
|
||||
enableHotReload();
|
||||
import * as ts from "typescript";
|
||||
import { liveLogId, liveLog } from "@hediet/live-debug";
|
||||
|
||||
registerUpdateReconciler(module);
|
||||
|
||||
getDataExtractorApi().registerExtractor(new TypeScriptAstDataExtractor());
|
||||
|
||||
let i = 0;
|
||||
setInterval(() => {
|
||||
i++;
|
||||
liveLog("bla" + i * 2);
|
||||
liveLog("test" + i);
|
||||
}, 1000);
|
||||
|
||||
@hotClass(module)
|
||||
class Main {
|
||||
run() {
|
||||
@@ -25,9 +33,9 @@ class Main {
|
||||
class Test {
|
||||
public test() {
|
||||
console.log("aaa");
|
||||
const x = 4 + 1;
|
||||
const x = ;
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
ts.ScriptTarget.Latest,
|
||||
true
|
||||
@@ -35,8 +43,10 @@ class Test {
|
||||
|
||||
console.log(sf);
|
||||
//new TypeScriptAstDataExtractor().getExtractions(sf, );
|
||||
}
|
||||
|
||||
debugger;
|
||||
toString() {
|
||||
return "hihi";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@hediet/live-debug@^0.5.1":
|
||||
"@hediet/live-debug@^0.5.1", "@hediet/live-debug@^0.5.2":
|
||||
version "0.5.2"
|
||||
resolved "https://registry.yarnpkg.com/@hediet/live-debug/-/live-debug-0.5.2.tgz#f2ee0034f014836bfd68e26c35a168ab42b15486"
|
||||
integrity sha512-HBqVbyFez1oQlIPO9dzkFi7/9Gvt6ZpssgURzYaVFREl9Oq03nPd6V7Ay4bW03xFHPo3YT2Yff9mFmGQUX7JEg==
|
||||
|
||||
Reference in New Issue
Block a user