Take example progs out of package.json

This commit is contained in:
Simon Edwards 2021-08-21 09:17:23 +02:00
parent 4f0f64884d
commit 456824c504
2 changed files with 10 additions and 7 deletions

View File

@ -162,6 +162,15 @@ Now just `rm -rf node_modules` and do `npm install` again.
The logs should say something like `CustomQt detected at <your qt path>. Hence, skipping Mini Qt installation`.
**Running example programs**
A number of small programs to show different parts of the Qt API are in `src/examples`. They can be run directly with:
```
npm run qode dist/examples/modelview_1_readonly.js
```
**Community guides**
- [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/)

View File

@ -24,13 +24,7 @@
"lint:ts": "cross-env tsc --noEmit && cross-env eslint './src/**/*.{ts,tsx,js,jsx}' --fix",
"docs": "cross-env typedoc && node ./website/docs/scripts/fixdocs.js",
"qode": "cross-env node ./scripts/qode.js",
"prepublishOnly": "cross-env npm run build",
"example-modelview_1_readonly": "node ./scripts/qode.js dist/examples/modelview_1_readonly.js",
"example-modelview_2_formatting": "node ./scripts/qode.js dist/examples/modelview_2_formatting.js",
"example-modelview_3_changingmodel": "node ./scripts/qode.js dist/examples/modelview_3_changingmodel.js",
"example-modelview_4_headers": "node ./scripts/qode.js dist/examples/modelview_4_headers.js",
"example-modelview_5_edit": "node ./scripts/qode.js dist/examples/modelview_5_edit.js",
"example-modelview_buddy": "node ./scripts/qode.js dist/examples/modelview_buddy.js"
"prepublishOnly": "cross-env npm run build"
},
"engines": {
"node": ">=14.x.x"