esbuild-helpers 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addIndex.d.ts +1 -1
- package/dist/addIndex.js +7 -7
- package/dist/addIndex.js.map +1 -1
- package/dist/builder.js +20 -20
- package/dist/builder.js.map +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/copy.js +5 -5
- package/dist/copy.js.map +1 -1
- package/dist/electron.js +2 -2
- package/dist/electron.js.map +1 -1
- package/dist/exported.d.ts +1 -1
- package/dist/exported.js +1 -2
- package/dist/exported.js.map +1 -1
- package/dist/interfaces.d.ts +8 -8
- package/dist/log.js +1 -1
- package/dist/log.js.map +1 -1
- package/dist/makeAllPackagesExternalPlugin.js.map +1 -1
- package/dist/minifyHTMLLiteralsPlugin.js +2 -2
- package/dist/minifyHTMLLiteralsPlugin.js.map +1 -1
- package/dist/nodejs.js +2 -2
- package/dist/nodejs.js.map +1 -1
- package/dist/postCSSplugin.js +2 -2
- package/dist/postCSSplugin.js.map +1 -1
- package/dist/runElectronApp.js +11 -7
- package/dist/runElectronApp.js.map +1 -1
- package/dist/runNodeApp.js +3 -3
- package/dist/runNodeApp.js.map +1 -1
- package/dist/single.js +2 -2
- package/dist/single.js.map +1 -1
- package/dist/typechecker/getPath.js +5 -1
- package/dist/typechecker/getPath.js.map +1 -1
- package/dist/typechecker/index.js +15 -11
- package/dist/typechecker/index.js.map +1 -1
- package/dist/typechecker/inspectCode.js +10 -6
- package/dist/typechecker/inspectCode.js.map +1 -1
- package/dist/typechecker/interfaces.d.ts +3 -3
- package/dist/typechecker/printResult.js +17 -13
- package/dist/typechecker/printResult.js.map +1 -1
- package/dist/typechecker/printSettings.js +5 -5
- package/dist/typechecker/printSettings.js.map +1 -1
- package/dist/typechecker/processTsDiagnostics.js +7 -3
- package/dist/typechecker/processTsDiagnostics.js.map +1 -1
- package/dist/typechecker/register.json.js +1 -1
- package/dist/typechecker/register.json.js.map +1 -1
- package/dist/typechecker/throwIfErrors.js +2 -2
- package/dist/typechecker/throwIfErrors.js.map +1 -1
- package/dist/typechecker/watchSrc.js +12 -8
- package/dist/typechecker/watchSrc.js.map +1 -1
- package/dist/typechecker/worker.js +15 -15
- package/dist/typechecker/worker.js.map +1 -1
- package/dist/webDevServer.js +3 -3
- package/dist/webDevServer.js.map +1 -1
- package/dist/websocketServer.js +3 -3
- package/dist/websocketServer.js.map +1 -1
- package/package.json +17 -21
- package/tailwind.config.js +7 -10
package/dist/websocketServer.js
CHANGED
|
@@ -18,17 +18,17 @@ var connections = new Set();
|
|
|
18
18
|
function startWebsocketServer(port) {
|
|
19
19
|
webSocketServerInstance = new ws_1.default.Server({ port: port });
|
|
20
20
|
webSocketServerInstance.on("connection", function connection(wsConnection) {
|
|
21
|
-
log_1.log("WEBSOCKET", "client connected");
|
|
21
|
+
(0, log_1.log)("WEBSOCKET", "client connected");
|
|
22
22
|
connections.add(wsConnection);
|
|
23
23
|
});
|
|
24
24
|
webSocketServerInstance.on("close", function close(wsConnection) {
|
|
25
|
-
log_1.log("WEBSOCKET", "client disconnected");
|
|
25
|
+
(0, log_1.log)("WEBSOCKET", "client disconnected");
|
|
26
26
|
connections.delete(wsConnection);
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
exports.startWebsocketServer = startWebsocketServer;
|
|
30
30
|
function callWebsocketClient(msg) {
|
|
31
|
-
log_1.log("WEBSOCKET", "client update call");
|
|
31
|
+
(0, log_1.log)("WEBSOCKET", "client update call");
|
|
32
32
|
Array.from(connections).forEach(function (wsConnection) {
|
|
33
33
|
wsConnection.send(msg);
|
|
34
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocketServer.js","sourceRoot":"","sources":["../src/websocketServer.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;AAEH,0CAA2B;AAC3B,6BAA4B;AAG5B,IAAI,uBAAuB,GAAG,IAAI,CAAC;AACn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AG,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC;AALD,kDAKC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "esbuild-helpers",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "Simple helper lib to help make js bundles for web, nodejs server and electron",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"rimraf": "./node_modules/rimraf/bin.js",
|
|
@@ -19,34 +19,30 @@
|
|
|
19
19
|
"author": "Vegar Ringdal",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@types/compression": "^1.7.
|
|
23
|
-
"chokidar": "^3.5.
|
|
22
|
+
"@types/compression": "^1.7.2",
|
|
23
|
+
"chokidar": "^3.5.3",
|
|
24
24
|
"compression": "^1.7.4",
|
|
25
|
-
"express": "^4.
|
|
26
|
-
"
|
|
25
|
+
"express": "^4.18.2",
|
|
26
|
+
"fast-glob": "^3.2.12",
|
|
27
27
|
"rimraf": "^3.0.2",
|
|
28
|
-
"ws": "^8.
|
|
28
|
+
"ws": "^8.11.0",
|
|
29
29
|
"zlib": "^1.0.5"
|
|
30
30
|
},
|
|
31
31
|
"main": "dist/exported.js",
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"
|
|
37
|
-
"@types/express": "^4.17.13",
|
|
38
|
-
"@types/rimraf": "^3.0.1",
|
|
39
|
-
"@types/ws": "^7.4.7",
|
|
40
|
-
"cssnano": "^5.0.7",
|
|
33
|
+
"@types/express": "^4.17.14",
|
|
34
|
+
"@types/rimraf": "^3.0.2",
|
|
35
|
+
"@types/ws": "^8.5.3",
|
|
36
|
+
"cssnano": "^5.1.14",
|
|
41
37
|
"custom-elements-hmr-polyfill": "^1.0.3",
|
|
42
|
-
"electron": "^
|
|
38
|
+
"electron": "^22.0.0",
|
|
43
39
|
"electron-squirrel-startup": "^1.0.0",
|
|
44
|
-
"esbuild": "^0.
|
|
45
|
-
"lit-html": "^
|
|
40
|
+
"esbuild": "^0.16.4",
|
|
41
|
+
"lit-html": "^2.5.0",
|
|
46
42
|
"minify-html-literals": "^1.3.5",
|
|
47
|
-
"postcss": "^8.
|
|
48
|
-
"tailwindcss": "^
|
|
49
|
-
"ts-node": "^10.1
|
|
50
|
-
"typescript": "^4.
|
|
43
|
+
"postcss": "^8.4.20",
|
|
44
|
+
"tailwindcss": "^3.2.4",
|
|
45
|
+
"ts-node": "^10.9.1",
|
|
46
|
+
"typescript": "^4.9.4"
|
|
51
47
|
}
|
|
52
48
|
}
|
package/tailwind.config.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
1
|
module.exports = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
},
|
|
7
|
-
darkMode: false, // or 'media' or 'class'
|
|
2
|
+
mode: "jit",
|
|
3
|
+
content: ["./src_client/index.html"],
|
|
4
|
+
darkMode: "class", // or 'media' or 'class'
|
|
8
5
|
theme: {
|
|
9
|
-
|
|
6
|
+
extend: {}
|
|
10
7
|
},
|
|
11
8
|
variants: {
|
|
12
|
-
|
|
9
|
+
extend: {}
|
|
13
10
|
},
|
|
14
|
-
plugins: []
|
|
15
|
-
};
|
|
11
|
+
plugins: []
|
|
12
|
+
};
|