Added instructions to run the example

This commit is contained in:
Atul R 2019-06-10 23:02:32 +02:00
parent d0206221dc
commit 1ec4160eeb
3 changed files with 10 additions and 5 deletions

View File

@ -1,7 +1,13 @@
# Calculator app
This example showcases how to build a basic mac calculator clone.
This example showcases how to build a basic calculator clone.
The app should look like this:
**Screenshot:**
![demo](https://github.com/master-atul/node-native-ui/raw/master/examples/calculator/calculator.png "Calculator screenshot")
To run the demo:
1. `yarn build`
2. `yarn qode dist/examples/calculator/index.js`

Binary file not shown.

Before

Width:  |  Height:  |  Size: 300 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View File

@ -15,14 +15,13 @@
"typescript": "^3.4.5"
},
"scripts": {
"build": "npm run build:addon&&npm run build:lib",
"build": "npm run rebuild:addon && npm run build:lib",
"build:lib": "tsc",
"build:addon": "node-gyp -j 8 build",
"rebuild:addon": "node-gyp -j 8 rebuild",
"clean": "rm -rf ./dist ./build",
"automoc": "node ./scripts/automoc.js",
"dev": "tsc && qode dist/demo.js",
"demo": "tsc && qode dist/examples/calculator/index.js"
"dev": "tsc && qode dist/demo.js"
},
"dependencies": {
"bindings": "^1.5.0",