git0 0.2.9 → 0.2.11
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/TypeScript-React-Starter/LICENSE +21 -0
- package/TypeScript-React-Starter/README-CRA.md +1281 -0
- package/TypeScript-React-Starter/README.md +810 -0
- package/TypeScript-React-Starter/package.json +28 -0
- package/TypeScript-React-Starter/public/favicon.ico +0 -0
- package/TypeScript-React-Starter/public/index.html +31 -0
- package/TypeScript-React-Starter/src/App.css +24 -0
- package/TypeScript-React-Starter/src/App.test.tsx +8 -0
- package/TypeScript-React-Starter/src/App.tsx +23 -0
- package/TypeScript-React-Starter/src/actions/index.tsx +24 -0
- package/TypeScript-React-Starter/src/components/Hello.css +13 -0
- package/TypeScript-React-Starter/src/components/Hello.test.tsx +30 -0
- package/TypeScript-React-Starter/src/components/Hello.tsx +35 -0
- package/TypeScript-React-Starter/src/constants/index.tsx +6 -0
- package/TypeScript-React-Starter/src/containers/Hello.tsx +20 -0
- package/TypeScript-React-Starter/src/index.css +5 -0
- package/TypeScript-React-Starter/src/index.tsx +22 -0
- package/TypeScript-React-Starter/src/logo.svg +7 -0
- package/TypeScript-React-Starter/src/reducers/index.tsx +15 -0
- package/TypeScript-React-Starter/src/types/index.tsx +5 -0
- package/TypeScript-React-Starter/tsconfig.json +29 -0
- package/TypeScript-React-Starter/tslint.json +11 -0
- package/TypeScript-React-Starter/yarn.lock +4785 -0
- package/package.json +2 -2
- package/src/github-api.js +3 -3
- package/svelte-nodegui/.all-contributorsrc +60 -0
- package/svelte-nodegui/.vscode/launch.json +29 -0
- package/svelte-nodegui/CHANGELOG.md +153 -0
- package/svelte-nodegui/LICENSE +22 -0
- package/svelte-nodegui/README.md +151 -0
- package/svelte-nodegui/demo/.editorconfig +15 -0
- package/svelte-nodegui/demo/.vscode/extensions.json +3 -0
- package/svelte-nodegui/demo/livereload.js +29 -0
- package/svelte-nodegui/demo/package-lock.json +3514 -0
- package/svelte-nodegui/demo/package.json +35 -0
- package/svelte-nodegui/demo/src/App.svelte +29 -0
- package/svelte-nodegui/demo/src/app.ts +31 -0
- package/svelte-nodegui/demo/tsconfig.json +40 -0
- package/svelte-nodegui/demo/webpack.config.js +110 -0
- package/svelte-nodegui/extras/assets/kitchen.png +0 -0
- package/svelte-nodegui/extras/assets/nodegui.png +0 -0
- package/svelte-nodegui/extras/assets/nodegui_white.png +0 -0
- package/svelte-nodegui/extras/assets/start_icon.png +0 -0
- package/svelte-nodegui/extras/legal/logo/thanks.md +13 -0
- package/svelte-nodegui/extras/legal/yode/LICENSE +21 -0
- package/svelte-nodegui/extras/legal/yoga/LICENSE +0 -0
- package/svelte-nodegui/extras/logo/nodegui-circle.png +0 -0
- package/svelte-nodegui/extras/logo/nodegui.png +0 -0
- package/svelte-nodegui/extras/logo/nodegui.svg +4 -0
- package/svelte-nodegui/nativescript-svelte-todo.gif +0 -0
- package/svelte-nodegui/package-lock.json +1749 -0
- package/svelte-nodegui/package.json +44 -0
- package/svelte-nodegui/repl-workers/bundler/commonjs.js +58 -0
- package/svelte-nodegui/repl-workers/bundler/index.js +353 -0
- package/svelte-nodegui/repl-workers/package-lock.json +484 -0
- package/svelte-nodegui/repl-workers/package.json +21 -0
- package/svelte-nodegui/repl-workers/rollup.config.js +21 -0
- package/svelte-nodegui/rollup.config.js +81 -0
- package/svelte-nodegui/scripts/create-pkg.js +42 -0
- package/svelte-nodegui/src/components/AsComponent.svelte +16 -0
- package/svelte-nodegui/src/components/SlotComponent.svelte +4 -0
- package/svelte-nodegui/src/components/Template.svelte +10 -0
- package/svelte-nodegui/src/components/Template.svelte.d.ts +6 -0
- package/svelte-nodegui/src/components/index.ts +2 -0
- package/svelte-nodegui/src/dom/index.ts +132 -0
- package/svelte-nodegui/src/dom/nativescript-vue-next/LICENCE +21 -0
- package/svelte-nodegui/src/dom/nativescript-vue-next/index.ts +19 -0
- package/svelte-nodegui/src/dom/nativescript-vue-next/runtime/index.ts +21 -0
- package/svelte-nodegui/src/dom/nativescript-vue-next/runtime/nodes.ts +890 -0
- package/svelte-nodegui/src/dom/nativescript-vue-next/runtime/registry.ts +262 -0
- package/svelte-nodegui/src/dom/nativescript-vue-next/runtime/runtimeHelpers.ts +20 -0
- package/svelte-nodegui/src/dom/react-nodegui/LICENSE +21 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/AbstractComponents/RNAbstractButton.ts +67 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Action/RNAction.ts +146 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Action/index.ts +37 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/AnimatedImage/RNAnimatedImage.ts +76 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/AnimatedImage/index.ts +45 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/BoxView/RNBoxView.ts +99 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/BoxView/index.ts +49 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Button/RNButton.ts +71 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Button/index.ts +49 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/CheckBox/RNCheckBox.ts +71 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/CheckBox/index.ts +50 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/ComboBox/RNComboBox.ts +118 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/ComboBox/index.ts +50 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Dial/RNDial.ts +69 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Dial/index.ts +41 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/GridView/GridColumn/RNGridColumn.ts +95 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/GridView/GridColumn/index.ts +49 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/GridView/GridRow/RNGridRow.ts +141 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/GridView/GridRow/index.ts +47 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/GridView/RNGridView.ts +185 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/GridView/index.ts +51 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/GridView/utils.ts +59 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Image/RNImage.ts +135 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Image/index.ts +46 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/LineEdit/RNLineEdit.ts +82 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/LineEdit/index.ts +41 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Menu/RNMenu.ts +49 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Menu/index.ts +44 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/MenuBar/RNMenuBar.ts +51 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/MenuBar/index.ts +42 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/PlainTextEdit/RNPlainTextEdit.ts +82 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/PlainTextEdit/index.ts +44 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/ProgressBar/RNProgressBar.ts +78 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/ProgressBar/index.ts +43 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/RadioButton/RNRadioButton.ts +50 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/RadioButton/index.ts +43 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/ScrollArea/RNScrollArea.ts +51 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/ScrollArea/index.ts +44 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Slider/RNSlider.ts +97 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Slider/index.ts +46 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/SpinBox/RNSpinBox.ts +88 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/SpinBox/index.ts +49 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Svg/RNSvg.ts +67 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Svg/index.ts +43 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/SystemTrayIcon/RNSystemTrayIcon.ts +141 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/SystemTrayIcon/index.ts +43 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Tab/RNTab.ts +69 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Tab/index.ts +48 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/TabItem/RNTabItem.ts +72 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/TabItem/index.ts +40 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Text/RNText.ts +65 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Text/index.ts +49 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/View/RNView.ts +306 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/View/index.ts +44 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Window/RNWindow.ts +66 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/Window/index.ts +50 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/components/config.ts +95 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/index.ts +52 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/reconciler/index.ts +226 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/utils/decoupleFromReact.ts +2 -0
- package/svelte-nodegui/src/dom/react-nodegui/src/utils/helpers.ts +14 -0
- package/svelte-nodegui/src/dom/shared/Logger.ts +16 -0
- package/svelte-nodegui/src/dom/shared/index.ts +1 -0
- package/svelte-nodegui/src/dom/svelte/HeadElement.ts +41 -0
- package/svelte-nodegui/src/dom/svelte/RNObject.ts +95 -0
- package/svelte-nodegui/src/dom/svelte/StyleElement.ts +92 -0
- package/svelte-nodegui/src/dom/svelte/SvelteNodeGUIDocument.ts +124 -0
- package/svelte-nodegui/src/dom/svelte/TemplateElement.ts +16 -0
- package/svelte-nodegui/src/dom/svelte-elements.ts +111 -0
- package/svelte-nodegui/src/index.ts +62 -0
- package/svelte-nodegui/src/svelte-nodegui.ts +159 -0
- package/svelte-nodegui/src/transitions/bezier.ts +112 -0
- package/svelte-nodegui/src/transitions/index.ts +227 -0
- package/svelte-nodegui/tsconfig.json +19 -0
- package/svelte-nodegui/website/README.md +33 -0
- package/svelte-nodegui/website/blog/2019-05-30-welcome.md +12 -0
- package/svelte-nodegui/website/docs/api/classes/renderer.md +49 -0
- package/svelte-nodegui/website/docs/api/classes/rnaction.md +608 -0
- package/svelte-nodegui/website/docs/api/classes/rngridcolumn.md +232 -0
- package/svelte-nodegui/website/docs/api/classes/rngridrow.md +247 -0
- package/svelte-nodegui/website/docs/api/classes/rnmenu.md +1337 -0
- package/svelte-nodegui/website/docs/api/classes/rnmenubar.md +1341 -0
- package/svelte-nodegui/website/docs/api/globals.md +832 -0
- package/svelte-nodegui/website/docs/api/index.md +0 -0
- package/svelte-nodegui/website/docs/api/interfaces/_react_proxy_.reactproxycomponent.md +38 -0
- package/svelte-nodegui/website/docs/api/interfaces/abstractbuttonprops.md +306 -0
- package/svelte-nodegui/website/docs/api/interfaces/actionprops.md +115 -0
- package/svelte-nodegui/website/docs/api/interfaces/animatedimageprops.md +297 -0
- package/svelte-nodegui/website/docs/api/interfaces/boxviewprops.md +245 -0
- package/svelte-nodegui/website/docs/api/interfaces/buttonprops.md +313 -0
- package/svelte-nodegui/website/docs/api/interfaces/checkboxprops.md +313 -0
- package/svelte-nodegui/website/docs/api/interfaces/comboboxprops.md +343 -0
- package/svelte-nodegui/website/docs/api/interfaces/datawithoffset.md +32 -0
- package/svelte-nodegui/website/docs/api/interfaces/dialprops.md +259 -0
- package/svelte-nodegui/website/docs/api/interfaces/gridviewprops.md +273 -0
- package/svelte-nodegui/website/docs/api/interfaces/imageprops.md +311 -0
- package/svelte-nodegui/website/docs/api/interfaces/lineeditprops.md +266 -0
- package/svelte-nodegui/website/docs/api/interfaces/menubarprops.md +245 -0
- package/svelte-nodegui/website/docs/api/interfaces/menuprops.md +245 -0
- package/svelte-nodegui/website/docs/api/interfaces/plaintexteditprops.md +259 -0
- package/svelte-nodegui/website/docs/api/interfaces/progressbarprops.md +266 -0
- package/svelte-nodegui/website/docs/api/interfaces/radiobuttonprops.md +282 -0
- package/svelte-nodegui/website/docs/api/interfaces/scrollareaprops.md +245 -0
- package/svelte-nodegui/website/docs/api/interfaces/sliderprops.md +329 -0
- package/svelte-nodegui/website/docs/api/interfaces/spinboxprops.md +273 -0
- package/svelte-nodegui/website/docs/api/interfaces/systemtrayiconprops.md +97 -0
- package/svelte-nodegui/website/docs/api/interfaces/tabitemprops.md +28 -0
- package/svelte-nodegui/website/docs/api/interfaces/tabprops.md +245 -0
- package/svelte-nodegui/website/docs/api/interfaces/textprops.md +277 -0
- package/svelte-nodegui/website/docs/api/interfaces/viewprops.md +261 -0
- package/svelte-nodegui/website/docs/api/interfaces/windowprops.md +245 -0
- package/svelte-nodegui/website/docs/api/modules/_react_proxy_.md +29 -0
- package/svelte-nodegui/website/docs/doc1.md +162 -0
- package/svelte-nodegui/website/docs/guides/custom-nodegui-native-plugin.md +6 -0
- package/svelte-nodegui/website/docs/guides/debugging-in-vscode.md +39 -0
- package/svelte-nodegui/website/docs/guides/debugging.md +59 -0
- package/svelte-nodegui/website/docs/guides/getting-started.md +141 -0
- package/svelte-nodegui/website/docs/guides/handle-events.md +188 -0
- package/svelte-nodegui/website/docs/guides/images.md +62 -0
- package/svelte-nodegui/website/docs/guides/layout.md +281 -0
- package/svelte-nodegui/website/docs/guides/networking.md +31 -0
- package/svelte-nodegui/website/docs/guides/packaging.md +32 -0
- package/svelte-nodegui/website/docs/guides/scroll-view.md +69 -0
- package/svelte-nodegui/website/docs/guides/styling.md +208 -0
- package/svelte-nodegui/website/docs/guides/tutorial.md +82 -0
- package/svelte-nodegui/website/docs/guides/using-native-node-modules.md +55 -0
- package/svelte-nodegui/website/docs/mdx.md +22 -0
- package/svelte-nodegui/website/docs/scripts/fixdocs.js +21 -0
- package/svelte-nodegui/website/docusaurus.config.js +131 -0
- package/svelte-nodegui/website/package.json +33 -0
- package/svelte-nodegui/website/sidebars.js +77 -0
- package/svelte-nodegui/website/src/components/CodeExample.js +42 -0
- package/svelte-nodegui/website/src/components/CreateNativeApps.js +46 -0
- package/svelte-nodegui/website/src/components/Features.js +62 -0
- package/svelte-nodegui/website/src/components/Hero.js +85 -0
- package/svelte-nodegui/website/src/components/SplitView.js +18 -0
- package/svelte-nodegui/website/src/components/Talks.js +68 -0
- package/svelte-nodegui/website/src/components/Try.js +83 -0
- package/svelte-nodegui/website/src/components/common.js +41 -0
- package/svelte-nodegui/website/src/components/styles.css +61 -0
- package/svelte-nodegui/website/src/css/custom.css +34 -0
- package/svelte-nodegui/website/src/pages/index.js +32 -0
- package/svelte-nodegui/website/src/pages/styles.module.css +35 -0
- package/svelte-nodegui/website/static/CNAME +1 -0
- package/svelte-nodegui/website/static/img/box-layout-1.png +0 -0
- package/svelte-nodegui/website/static/img/box-layout-2.png +0 -0
- package/svelte-nodegui/website/static/img/code-sample.png +0 -0
- package/svelte-nodegui/website/static/img/demo.png +0 -0
- package/svelte-nodegui/website/static/img/favicon.ico +0 -0
- package/svelte-nodegui/website/static/img/flex-layout-1.png +0 -0
- package/svelte-nodegui/website/static/img/grid-layout-1.png +0 -0
- package/svelte-nodegui/website/static/img/logo-circle.png +0 -0
- package/svelte-nodegui/website/static/img/logo.png +0 -0
- package/svelte-nodegui/website/static/img/logo.svg +5 -0
- package/svelte-nodegui/website/static/img/logox200.png +0 -0
- package/svelte-nodegui/website/static/img/undraw_building_websites.svg +1 -0
- package/svelte-nodegui/website/static/img/undraw_code_review.svg +1 -0
- package/svelte-nodegui/website/static/img/undraw_docusaurus_mountain.svg +170 -0
- package/svelte-nodegui/website/static/img/undraw_docusaurus_react.svg +169 -0
- package/svelte-nodegui/website/static/img/undraw_docusaurus_tree.svg +1 -0
- package/svelte-nodegui/website/static/img/undraw_react.svg +1 -0
- package/svelte-nodegui/website/static/img/undraw_website_setup.svg +1 -0
- package/svelte-nodegui/website/static/img/undraw_windows.svg +11 -0
- package/svelte-nodegui/website/website/sidebars.js +32 -0
- package/svelte-nodegui/website/yarn.lock +10533 -0
- package/bun.lock +0 -159
- package/docs-config/bun.lock +0 -6139
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "git0",
|
|
3
3
|
"description": "CLI tool to search GitHub repositories, download source & releases for your system, and instantly set up, then install dependencies and open code editor.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.11",
|
|
5
5
|
"author": "vtempest",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"chalk": "^5.4.1",
|
|
8
8
|
"git-url-parse": "^16.1.0",
|
|
9
|
-
"grab-api.js": "^0.9.
|
|
9
|
+
"grab-api.js": "^0.9.127",
|
|
10
10
|
"inquirer": "^12.6.3",
|
|
11
11
|
"ora": "^8.2.0",
|
|
12
12
|
"tar": "^7.4.3"
|
package/src/github-api.js
CHANGED
|
@@ -41,6 +41,7 @@ class GithubAPI {
|
|
|
41
41
|
this.client = grab.instance({
|
|
42
42
|
debug: this.debug,
|
|
43
43
|
baseURL: this.baseURL,
|
|
44
|
+
timeout: 500,
|
|
44
45
|
headers: this.token ? { Authorization: `token ${this.token}` } : {},
|
|
45
46
|
onError: (error) => {
|
|
46
47
|
if (error.includes('403')) {
|
|
@@ -213,7 +214,7 @@ class GithubAPI {
|
|
|
213
214
|
}
|
|
214
215
|
|
|
215
216
|
// Provide installation instructions
|
|
216
|
-
this._provideInstallationInstructions(downloadPath,
|
|
217
|
+
this._provideInstallationInstructions(downloadPath, fileName);
|
|
217
218
|
|
|
218
219
|
return downloadPath;
|
|
219
220
|
} catch (error) {
|
|
@@ -430,8 +431,7 @@ class GithubAPI {
|
|
|
430
431
|
* @param {Object} asset - GitHub release asset object
|
|
431
432
|
* @param {string} asset.name - Name of the asset file
|
|
432
433
|
*/
|
|
433
|
-
_provideInstallationInstructions(filePath,
|
|
434
|
-
const fileName = asset.name;
|
|
434
|
+
_provideInstallationInstructions(filePath, fileName) {
|
|
435
435
|
const platform = this.getCurrentPlatform();
|
|
436
436
|
|
|
437
437
|
if (platform.platform === 'win32') {
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": [
|
|
3
|
+
"README.md"
|
|
4
|
+
],
|
|
5
|
+
"imageSize": 100,
|
|
6
|
+
"commit": false,
|
|
7
|
+
"contributors": [
|
|
8
|
+
{
|
|
9
|
+
"login": "shirakaba",
|
|
10
|
+
"name": "Jamie Birch",
|
|
11
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/14055146?v=4",
|
|
12
|
+
"profile": "https://twitter.com/LinguaBrowse",
|
|
13
|
+
"contributions": [
|
|
14
|
+
"code"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"login": "mrsauravsahu",
|
|
19
|
+
"name": "Saurav Sahu",
|
|
20
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/9134050?v=4",
|
|
21
|
+
"profile": "https://mrsauravsahu.github.io",
|
|
22
|
+
"contributions": [
|
|
23
|
+
"code"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"login": "mperreir",
|
|
28
|
+
"name": "Matthieu PERREIRA DA SILVA",
|
|
29
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/4592373?v=4",
|
|
30
|
+
"profile": "http://matthieu.perreira.net",
|
|
31
|
+
"contributions": [
|
|
32
|
+
"code"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"login": "jonasgrunert",
|
|
37
|
+
"name": "Jonas Grunert",
|
|
38
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/22677197?v=4",
|
|
39
|
+
"profile": "https://github.com/jonasgrunert",
|
|
40
|
+
"contributions": [
|
|
41
|
+
"code"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"login": "LukeyBeachBoy",
|
|
46
|
+
"name": "LukeyBeachBoy",
|
|
47
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/26151787?v=4",
|
|
48
|
+
"profile": "https://github.com/LukeyBeachBoy",
|
|
49
|
+
"contributions": [
|
|
50
|
+
"code"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"contributorsPerLine": 7,
|
|
55
|
+
"projectName": "svelte-nodegui",
|
|
56
|
+
"projectOwner": "nodegui",
|
|
57
|
+
"repoType": "github",
|
|
58
|
+
"repoHost": "https://github.com",
|
|
59
|
+
"skipCi": true
|
|
60
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Debug Qode Process",
|
|
9
|
+
"type": "node",
|
|
10
|
+
"request": "launch",
|
|
11
|
+
"cwd": "${workspaceRoot}/demo",
|
|
12
|
+
"runtimeExecutable": "${workspaceRoot}/demo/node_modules/.bin/qode",
|
|
13
|
+
"windows": {
|
|
14
|
+
"runtimeExecutable": "${workspaceRoot}/demo/node_modules/.bin/qode.exe"
|
|
15
|
+
},
|
|
16
|
+
"args": [
|
|
17
|
+
"--inspect",
|
|
18
|
+
"./dist/index.js"
|
|
19
|
+
],
|
|
20
|
+
"skipFiles": [
|
|
21
|
+
"<node_internals>/**/*.js"
|
|
22
|
+
],
|
|
23
|
+
"outFiles": [
|
|
24
|
+
"${workspaceFolder}/demo/node_modules/svelte-desktop/**/*.js"
|
|
25
|
+
],
|
|
26
|
+
"outputCapture": "std"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
|
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [0.9.4]
|
|
8
|
+
- Only include children that set the same property on parent when calculating index.
|
|
9
|
+
|
|
10
|
+
## [0.9.3]
|
|
11
|
+
- Fix regression in attribute setter logic
|
|
12
|
+
|
|
13
|
+
## [0.9.2]
|
|
14
|
+
- Test harness is working again
|
|
15
|
+
- Fixed regression for tabstrip item removal
|
|
16
|
+
- Resolved more property names
|
|
17
|
+
|
|
18
|
+
## [0.9.1]
|
|
19
|
+
- Nativescript 7 support
|
|
20
|
+
- Resolve [Object object] in listview when using itemTemplateSelector
|
|
21
|
+
|
|
22
|
+
## [0.8.5]
|
|
23
|
+
- Resolve Formatted string reactivity [#166](https://github.com/halfnelson/svelte-native/issues/166)
|
|
24
|
+
- Prevent resolving of log messages when trace is not enabled
|
|
25
|
+
|
|
26
|
+
## [0.8.4]
|
|
27
|
+
- Remove calls to deprecated "topmost()"
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [0.8.3]
|
|
31
|
+
- Fix animations by overwriting NativeScripts slightly non-compliant requestAnimationFrame
|
|
32
|
+
- Fix slide animation
|
|
33
|
+
|
|
34
|
+
## [0.8.2]
|
|
35
|
+
- Fix event bubbling with less monkey patching.
|
|
36
|
+
|
|
37
|
+
## [0.8.1]
|
|
38
|
+
- Fix event bubbling [#124](https://github.com/halfnelson/svelte-native/issues/124)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## [0.8.0]
|
|
42
|
+
- Fix bug in segmented bar (re)creation closes [#118](https://github.com/halfnelson/svelte-native/issues/118) and [#119](https://github.com/halfnelson/svelte-native/issues/119)
|
|
43
|
+
- Correctly handle multiple child text nodes
|
|
44
|
+
- Added ability to override nativescript tags with your own. Closes [#105](https://github.com/halfnelson/svelte-native/issues/105)
|
|
45
|
+
- Swap to @nativescript/core from tns-core-modules. Closes [#103](https://github.com/halfnelson/svelte-native/issues/103)
|
|
46
|
+
- Internal logger now skips evaluation of template strings when logging is disabled
|
|
47
|
+
- Upgrade to nativescript 6.4
|
|
48
|
+
- Upgrade to svelte 3.19.*
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## [0.7.3]
|
|
52
|
+
- provide timestamp to requestAnimationFrame shim,fixes transition problems with svelte 3.16+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## [0.7.2]
|
|
56
|
+
- use most recent patch of svelte and tns-core-modules instead of most recent minor, this should help prevent breakages by upstream dependencies
|
|
57
|
+
- Require svelte 3.16.*
|
|
58
|
+
- Detect nativescripts own requestAnimationFrame polyfill and don't try to overwrite
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## [0.7.1]
|
|
62
|
+
- Fix Tabs component rendering on iOS
|
|
63
|
+
- Fix Tabs component on start page crashes app on iOS
|
|
64
|
+
|
|
65
|
+
## [0.7.0]
|
|
66
|
+
- Support for Nativescript 6.2
|
|
67
|
+
- Clear history when frame direct child change causes a navigation, closes [#96](https://github.com/halfnelson/svelte-native/issues/96)
|
|
68
|
+
|
|
69
|
+
## [0.6.1]
|
|
70
|
+
- Restored custom TabStrip element implementation to work around [problem with tabstripitem view creation](https://github.com/NativeScript/NativeScript/issues/7608)
|
|
71
|
+
|
|
72
|
+
## [0.6.0]
|
|
73
|
+
|
|
74
|
+
### Breaking Changes
|
|
75
|
+
- Renamed NativeElementNode to NativeViewElementNode and added a parent class NativeElementNode which handles nativescript entities not derived from View
|
|
76
|
+
- Removed "meta" legacy onInsert and Remove hook container
|
|
77
|
+
|
|
78
|
+
### Added
|
|
79
|
+
- support for `prop:` directive to set the value of the containing node to the nativeView of the current node e.g `<gridLayout prop:mainContent>` for sideDrawer
|
|
80
|
+
- Added a parameter to NativeElementNode that configures the prop: behaviour and defines the correct casing of any property
|
|
81
|
+
- Added a parameter `setsParentProp` to NativeElementNode that specifies a property on the perent node to set to constructed element when inserted.
|
|
82
|
+
- Added registerNativeViewElement and registerNativeConfigElement exports. These help change:
|
|
83
|
+
```
|
|
84
|
+
registerElement('myTag', () => new NativeViewElementNode('myTag', require('some-tns-plugin/mytag').MyTag))
|
|
85
|
+
```
|
|
86
|
+
into
|
|
87
|
+
```
|
|
88
|
+
registerNativeViewElement('myTag', () => require('some-tns-plugin/mytag').MyTag )
|
|
89
|
+
```
|
|
90
|
+
- Added `svelteNativeNoFrame` which allows you to launch your app without an implicit root frame. Great for when you are using RadSidebar
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Changes
|
|
94
|
+
- Refactored property name normalization to cache based on object prototype so we aren't walking all defined properties every time we get or set.
|
|
95
|
+
- Use the new 'scoped styles' boolean parameter when calling addCss if we don't detect any :global() styles. This should improve perf.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
## [0.5.3]
|
|
99
|
+
- Add support for itemTemplateSelector closes [#86](https://github.com/halfnelson/svelte-native/issues/86)
|
|
100
|
+
|
|
101
|
+
## [0.5.2]
|
|
102
|
+
- Fix frame not found by Id [#82](https://github.com/halfnelson/svelte-native/issues/82)
|
|
103
|
+
|
|
104
|
+
## [0.5.1]
|
|
105
|
+
- Fix animations when using latest svelte
|
|
106
|
+
|
|
107
|
+
## [0.5.0]
|
|
108
|
+
- Updated to [NativeScript 6.1](https://www.nativescript.org/blog/nativescript-6.1-kotlin-support-is-here)
|
|
109
|
+
- Support Tabs, TabStrip, and Bottom Navigation components
|
|
110
|
+
|
|
111
|
+
## [0.4.3]
|
|
112
|
+
- Support sveltes new dev document.dispatch calls
|
|
113
|
+
- Update to svelte 3.12.1
|
|
114
|
+
|
|
115
|
+
## [0.4.2]
|
|
116
|
+
- Update to svelte 3.7.1 and add workaround for https://github.com/sveltejs/svelte/issues/3364
|
|
117
|
+
|
|
118
|
+
## [0.4.1]
|
|
119
|
+
- Pin against svelte 3.6.1 to resolve #44 while waiting for https://github.com/sveltejs/svelte/issues/3354
|
|
120
|
+
|
|
121
|
+
## [0.4.0] -
|
|
122
|
+
- Built against latest svelte 3.6.7 and Nativescript 6.0
|
|
123
|
+
|
|
124
|
+
## [0.3.4] - 2019-06-15
|
|
125
|
+
- ListItem template components are now created with `intro: true`
|
|
126
|
+
|
|
127
|
+
## [0.3.3] - 2019-05-22
|
|
128
|
+
|
|
129
|
+
### Fixed
|
|
130
|
+
- mounting with anchor uses correct index during insert (fixes #30)
|
|
131
|
+
|
|
132
|
+
## [0.3.2] - 2019-05-16
|
|
133
|
+
|
|
134
|
+
### Fixed
|
|
135
|
+
- class: directives now work with falsy values
|
|
136
|
+
|
|
137
|
+
### Changed
|
|
138
|
+
- Bumped Nativescript to 5.4
|
|
139
|
+
- Bumped Svelte to 3.4
|
|
140
|
+
- Updated unit tests to use bundled svelte components instead of compiling as part of test.
|
|
141
|
+
|
|
142
|
+
## [0.3.1] - 2019-04-30
|
|
143
|
+
|
|
144
|
+
### Added
|
|
145
|
+
- Removed console log spam and added to a NativeScript trace category exported as `DomTraceCategory`
|
|
146
|
+
|
|
147
|
+
## [0.3.0] - 2019-04-23
|
|
148
|
+
|
|
149
|
+
### Added
|
|
150
|
+
- Introduced a Changelog
|
|
151
|
+
|
|
152
|
+
### Changed
|
|
153
|
+
- Bumped versions to use freshly released Svelte 3.0.0
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 David Pershouse
|
|
4
|
+
Copyright (c) 2020 Jamie Birch
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# Svelte NodeGUI
|
|
2
|
+
|
|
3
|
+
> [!WARNING]
|
|
4
|
+
> No longer being maintained. Recommended you use the main [NodeGUI](https://github.com/nodegui/nodegui) flavour instead.
|
|
5
|
+
|
|
6
|
+
[](https://spectrum.chat/nodegui)
|
|
7
|
+
[](https://svelte.dev/chat)
|
|
8
|
+
[](#contributors)
|
|
9
|
+
[](https://changelog.com/jsparty/96)
|
|
10
|
+
|
|
11
|
+
[](https://github.com/nodegui/nodegui/actions)
|
|
12
|
+
|
|
13
|
+
Build **performant**, **native** and **cross-platform** desktop applications with **Node.js** and **Svelte**.🚀
|
|
14
|
+
|
|
15
|
+
Svelte NodeGUI is powered by **Svelte** and **Qt5** 💚 which makes it CPU- and memory-efficient when compared to Chromium-based solutions like Electron. Svelte NodeGUI is essentially a [Svelte](https://svelte.dev) renderer for [NodeGUI](https://github.com/nodegui/nodegui).
|
|
16
|
+
|
|
17
|
+
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/React-icon.svg/1024px-React-icon.svg.png" alt="" width="25"> If you are looking for the **React**-based version, check out: **[React NodeGUI](https://github.com/nodegui/react-nodegui)**.
|
|
18
|
+
|
|
19
|
+
<img src="https://vuejs.org/images/logo.png" alt="" width="25" /> If you are looking for the **Vue**-based version, check out: **[Vue NodeGUI](https://github.com/nodegui/vue-nodegui)**.
|
|
20
|
+
|
|
21
|
+
Visit: https://svelte.nodegui.org for docs.
|
|
22
|
+
|
|
23
|
+
<img alt="logo" src="https://github.com/nodegui/nodegui/raw/master/extras/logo/nodegui.png" height="200" />
|
|
24
|
+
|
|
25
|
+
## How does it look?
|
|
26
|
+
|
|
27
|
+
<div style="display:inline; margin: 0 auto;">
|
|
28
|
+
<img alt="demo_linux" src="https://github.com/nodegui/examples/raw/master/nodegui/calculator/calculator_linux.png" height="280" />
|
|
29
|
+
<img alt="demo_win" src="https://github.com/nodegui/examples/raw/master/nodegui/calculator/calculator_win.jpg" height="280" />
|
|
30
|
+
<img alt="demo_mac" src="https://github.com/nodegui/examples/raw/master/nodegui/calculator/calculator_mac.png" height="280" />
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div style="display:inline; margin: 0 auto;"><img alt="kitchen" src="https://github.com/nodegui/nodegui/raw/master/extras/assets/kitchen.png" height="280" /><img alt="demo_mac" src="https://github.com/nodegui/examples/raw/master/react-nodegui/weather-app-widget/weather_widget_mac.png" height="280" /><img alt="demo_win" src="https://github.com/nodegui/examples/raw/master/react-nodegui/image-view/image_view_win.jpg" height="280" />
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
**More screenshots?**
|
|
37
|
+
|
|
38
|
+
### More Examples:
|
|
39
|
+
|
|
40
|
+
https://github.com/nodegui/examples
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Features
|
|
45
|
+
|
|
46
|
+
- 🧬 Cross platform. Should work on major Linux flavours, Windows and macOS.
|
|
47
|
+
- 📉 Low CPU and memory footprint. Current CPU stays at 0% on idle and memory usage is under 20 MB for a Hello World program.
|
|
48
|
+
- 💅 Styling with CSS (includes actual cascading). Also has full support for Flexbox layout (thanks to Yoga).
|
|
49
|
+
- ✅ Complete Node.js api support (Currently runs on Node v12.x - and is easily upgradable). Hence has access to all Node.js-compatible npm modules.
|
|
50
|
+
- 🎪 Native widget event listener support. Supports all events available from Qt / NodeJs.
|
|
51
|
+
- 💸 Can be used for Commercial applications.
|
|
52
|
+
- 🕵️♂️ Good Devtools support.
|
|
53
|
+
- 📚 Good documentation and website.
|
|
54
|
+
- 🧙♂️ Good documentation for contributors.
|
|
55
|
+
- 🦹🏻♀️ Good support for dark mode (Thanks to Qt).
|
|
56
|
+
- 🏅 First class TypeScript support. (Works on regular JS projects too 😉).
|
|
57
|
+
|
|
58
|
+
## Getting Started
|
|
59
|
+
|
|
60
|
+
- Check out [svelte-nodegui-starter](https://github.com/nodegui/svelte-nodegui-starter) to get up and running with your own Svelte NodeGUI app!
|
|
61
|
+
- Read through the [Svelte NodeGUI docs](https://svelte.nodegui.org/)
|
|
62
|
+
- Check out the examples: https://github.com/nodegui/examples.
|
|
63
|
+
- [Tutorial: Build a native Meme Search Desktop app with Javascript (NodeGUI) and Giphy API](https://www.sitepoint.com/build-native-desktop-gif-searcher-app-using-nodegui/)
|
|
64
|
+
|
|
65
|
+
## Docs for contributing
|
|
66
|
+
|
|
67
|
+
### Svelte NodeGUI
|
|
68
|
+
|
|
69
|
+
File issues and get in touch (e.g. on the [Svelte Discord](https://svelte.dev/chat)'s `#nativedev` channel), and we can guide you to something broken that needs fixing!
|
|
70
|
+
|
|
71
|
+
### NodeGUI
|
|
72
|
+
|
|
73
|
+
Looking to contribute to NodeGUI? If you wish to implement a new widget/add more features and need help understanding the codebase, you can start here: [Contributing developer docs](https://github.com/nodegui/nodegui/tree/master/website/docs/development).
|
|
74
|
+
|
|
75
|
+
Please read https://github.com/nodegui/.github/blob/master/CONTRIBUTING.md
|
|
76
|
+
|
|
77
|
+
## Building
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
npm run build
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Optionally set `QT_INSTALL_DIR='/path/to/qt'` environment variable to build using your own version of Qt.
|
|
84
|
+
|
|
85
|
+
## Updating docs
|
|
86
|
+
|
|
87
|
+
### Generating docs from source code
|
|
88
|
+
|
|
89
|
+
The docs generation process is currently a manual operation (text edit everything yourself). The docs are a copy-paste of the React NodeGUI docs, with some text replacement. We're also carrying around a slight fork of the React NodeGUI source in the codebase. In future we hope to clean up this workflow and make it more automatable using `typedoc` just like the original React NodeGUI workflow.
|
|
90
|
+
|
|
91
|
+
### Deploying docs to GitHub Pages
|
|
92
|
+
|
|
93
|
+
```sh
|
|
94
|
+
cd website && GIT_USER=<your_git_username> npm run deploy
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Funding
|
|
98
|
+
|
|
99
|
+
As no funding infrastructure is in place for Svelte NodeGUI specifically, please consider supporting [NodeGUI](https://github.com/nodegui/nodegui) instead, which would be just as productive!
|
|
100
|
+
|
|
101
|
+
## Special Thanks
|
|
102
|
+
|
|
103
|
+
- [NodeGUI logo: Thanks to Vishwas Shetty from the Noun Project.](https://github.com/nodegui/nodegui/blob/master/extras/legal/logo/thanks.md)
|
|
104
|
+
- [halfnelson](https://github.com/halfnelson) for [Svelte Native](https://github.com/halfnelson/svelte-native), which Svelte NodeGUI forks (as it is an excellent example of building a custom Svelte renderer).
|
|
105
|
+
- [rigor789](https://github.com/rigor789) for [NativeScript Vue Next](https://github.com/rigor789/nativescript-vue-next), from which Svelte NodeGUI takes (and adapts) its DOM implementation.
|
|
106
|
+
- [a7ul](https://github.com/a7ul) for creating [NodeGUI](https://github.com/nodegui/nodegui) and unwittingly teaching me [how to build renderers](https://blog.atulr.com/react-custom-renderer-1/) in the first place.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
## Code of Conduct
|
|
110
|
+
|
|
111
|
+
https://github.com/nodegui/.github/blob/master/CODE_OF_CONDUCT.md
|
|
112
|
+
|
|
113
|
+
## License
|
|
114
|
+
|
|
115
|
+
MIT
|
|
116
|
+
|
|
117
|
+
## Maintainers ✨
|
|
118
|
+
|
|
119
|
+
People maintaining this project.
|
|
120
|
+
|
|
121
|
+
<!-- prettier-ignore -->
|
|
122
|
+
<table>
|
|
123
|
+
<tr>
|
|
124
|
+
<td align="center"><a href="https://twitter.com/LinguaBrowse"><img src="https://avatars.githubusercontent.com/u/14055146?v=4" width="100px;" alt="Jamie Birch"/><br /><sub><b>Jamie Birch</b></sub></a></td>
|
|
125
|
+
</tr>
|
|
126
|
+
</table>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
## Contributors ✨
|
|
130
|
+
|
|
131
|
+
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
132
|
+
|
|
133
|
+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
134
|
+
<!-- prettier-ignore-start -->
|
|
135
|
+
<!-- markdownlint-disable -->
|
|
136
|
+
<table>
|
|
137
|
+
<tr>
|
|
138
|
+
<td align="center"><a href="https://twitter.com/LinguaBrowse"><img src="https://avatars.githubusercontent.com/u/14055146?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jamie Birch</b></sub></a><br /><a href="https://github.com/nodegui/svelte-nodegui/commits?author=shirakaba" title="Code">💻</a></td>
|
|
139
|
+
<td align="center"><a href="https://mrsauravsahu.github.io"><img src="https://avatars.githubusercontent.com/u/9134050?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Saurav Sahu</b></sub></a><br /><a href="https://github.com/nodegui/svelte-nodegui/commits?author=mrsauravsahu" title="Code">💻</a></td>
|
|
140
|
+
<td align="center"><a href="http://matthieu.perreira.net"><img src="https://avatars.githubusercontent.com/u/4592373?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Matthieu PERREIRA DA SILVA</b></sub></a><br /><a href="https://github.com/nodegui/svelte-nodegui/commits?author=mperreir" title="Code">💻</a></td>
|
|
141
|
+
<td align="center"><a href="https://github.com/jonasgrunert"><img src="https://avatars.githubusercontent.com/u/22677197?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jonas Grunert</b></sub></a><br /><a href="https://github.com/nodegui/svelte-nodegui/commits?author=jonasgrunert" title="Code">💻</a></td>
|
|
142
|
+
<td align="center"><a href="https://github.com/LukeyBeachBoy"><img src="https://avatars.githubusercontent.com/u/26151787?v=4?s=100" width="100px;" alt=""/><br /><sub><b>LukeyBeachBoy</b></sub></a><br /><a href="https://github.com/nodegui/svelte-nodegui/commits?author=LukeyBeachBoy" title="Code">💻</a></td>
|
|
143
|
+
</tr>
|
|
144
|
+
</table>
|
|
145
|
+
|
|
146
|
+
<!-- markdownlint-restore -->
|
|
147
|
+
<!-- prettier-ignore-end -->
|
|
148
|
+
|
|
149
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
150
|
+
|
|
151
|
+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const { spawn } = require("child_process");
|
|
3
|
+
const { normalize } = require("path");
|
|
4
|
+
|
|
5
|
+
// 'disconnect' is not needed as it will only be raised, when either the child process or this process calss disconnect explicitly.
|
|
6
|
+
// We are abel to ensure, that this will never happen, as we do not need communication with the spawned subprocess
|
|
7
|
+
const terminationSignals = ["close", "exit"];
|
|
8
|
+
|
|
9
|
+
function startSubprocess() {
|
|
10
|
+
return new Promise((res, rej) => {
|
|
11
|
+
const [command, ...args] = process.argv.slice(2);
|
|
12
|
+
const proc = spawn(normalize(command), args, {
|
|
13
|
+
// use parents stdio
|
|
14
|
+
stdio: "inherit",
|
|
15
|
+
shell:
|
|
16
|
+
process.platform === "win32" ||
|
|
17
|
+
/^(msys|cygwin)$/.test(process.env.OSTYPE),
|
|
18
|
+
});
|
|
19
|
+
terminationSignals.forEach((event) => proc.on(event, res));
|
|
20
|
+
proc.on("error", rej);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
async function loop() {
|
|
25
|
+
let code = 64;
|
|
26
|
+
while (code === 64) code = await startSubprocess();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
loop();
|