Skip to content

Commit

Permalink
Node: Added support for Worker threads
Browse files Browse the repository at this point in the history
Examples: Electron: Split up compilation of Node and Browser parts to avoid class name clashes that have different implementations in them.
Updated NPM packages.
  • Loading branch information
FunctionPoint committed Jan 1, 2025
1 parent 1c8ca7e commit b91dc01
Show file tree
Hide file tree
Showing 37 changed files with 334 additions and 111 deletions.
30 changes: 15 additions & 15 deletions Compiler/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Compiler/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"dependencies": {
"@types/node": "^22.9.3",
"@types/node": "^22.10.3",
"source-map": "^0.7.4"
}
}
21 changes: 17 additions & 4 deletions Examples/Electron/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,30 @@
"cwd": "${workspaceFolder}"
},
"problemMatcher": [],
"dependsOn": "Compile Smalltalk"
"dependsOn": "Compile Smalltalk Node"
},
// Must compile Node and Browser file separately
// because of same class names with different implementations.
{
"label": "Compile Smalltalk",
"label": "Compile Smalltalk Node",
"type": "shell",
"command": "node",
"args": [ "../../Compiler/out/main.js", "-t", "../../Smalltalk/Core", "../../Smalltalk/Node", "../../Smalltalk/Browser", "+t", "../../Smalltalk/Electron", "src", "out" ],
"args": [ "../../Compiler/out/main.js", "-t", "../../Smalltalk/Core", "../../Smalltalk/Node", "+t", "../../Smalltalk/Electron/Node", "src/Node", "out" ],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
"problemMatcher": [],
"dependsOn": "Compile Smalltalk Browser"
},
{
"label": "Compile Smalltalk Browser",
"type": "shell",
"command": "node",
"args": [ "../../Compiler/out/main.js", "-t", "../../Smalltalk/Core", "../../Smalltalk/Browser", "+t", "../../Smalltalk/Electron/Browser", "src/Browser", "out" ],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
}
]
}
24 changes: 15 additions & 9 deletions Examples/Electron/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Examples/Electron/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"type": "module",
"dependencies": {
"@types/node": "^22.9.3",
"electron": "^33.2.0",
"@types/node": "^22.10.3",
"electron": "^33.2.1",
"node-fetch": "^3.3.2"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions Examples/NodeGui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Examples/NodeGui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"nodegui"
],
"devDependencies": {
"@types/node": "^22.9.3"
"@types/node": "^22.10.3"
},
"dependencies": {
"@nodegui/nodegui": "^0.69.0"
"@nodegui/nodegui": "^0.70.0"
}
}
Loading

0 comments on commit b91dc01

Please sign in to comment.