Skip to content

Commit

Permalink
Electron and NW.js demo in separate packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ddmitov committed Jan 13, 2017
1 parent 7fd2be3 commit d8b1f15
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 325 deletions.
2 changes: 0 additions & 2 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ https://nodejs.org/api/child_process.html
https://docs.npmjs.com/getting-started/installing-npm-packages-locally

http://stackoverflow.com/questions/13230370/nodejs-child-process-write-to-stdin-from-an-already-initialised-process
http://stackoverflow.com/questions/31529772/setting-app-icon-for-electron-atom-shell-app
http://stackoverflow.com/questions/14989081/node-js-to-get-determine-os-version
http://stackoverflow.com/questions/359788/how-to-execute-a-javascript-function-when-i-have-its-name-as-a-string
http://stackoverflow.com/questions/1070760/javascript-function-in-href-vs-onclick
http://stackoverflow.com/questions/15515549/node-js-writing-a-function-to-return-spawn-stdout-as-a-string
http://stackoverflow.com/questions/9781214/parse-output-of-spawned-node-js-child-process-line-by-line
http://stackoverflow.com/questions/3133243/how-do-i-get-the-path-to-the-current-script-with-node-js
Expand Down
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ elephantHarness.startScript(phpScriptObject);
## External Dependency
The only external dependency of elephant-harness is a PHP interpreter on PATH or any other PHP interpreter identified by its full pathname.
elephant-harness npm package test will fail if no ``php`` binary is available on PATH.
[Electron](http://electron.atom.io/) and [NW.js](http://nwjs.io/) demo application will fail if no ``php-cgi`` binary is available on PATH.
``php`` binary should be used in all [Node.js](http://nodejs.org/) command-line applications and test scripts.
``php-cgi`` binary should be used in all [Electron](http://electron.atom.io/) and [NW.js](http://nwjs.io/) applications.
``php-cgi`` binary should be used in all [Node.js](http://nodejs.org/) web applications, as well as in all [Electron](http://electron.atom.io/) and [NW.js](http://nwjs.io/) applications.

## API

Expand Down Expand Up @@ -118,18 +117,11 @@ var data = document.getElementById('interactive-script-input').value;
phpScriptObject.scriptHandler.stdin.write(data + '\n');
```

## Electron Demo
* Download and extract the [elephant-harness package](https://github.com/ddmitov/elephant-harness).
* Download the [Electron binary package for your operating system](https://github.com/electron/electron/releases) and extract it inside the previously extracted ``elephant-harness-master/demo`` folder. Confirm merging of the ``resources`` subfolder of Electron with the ``resources`` subfolder of the demo.
* Start the Electron binary.
## [Electron Demo](https://www.npmjs.com/package/elephant-harness-demo-electron)

## NW.js Demo
* Download and extract the [elephant-harness package](https://github.com/ddmitov/elephant-harness).
* Download and extract the [NW.js binary package for your operating system](http://nwjs.io/downloads/). It will create its own folder.
* Copy everything inside the ``elephant-harness-master/demo`` folder in the folder of the NW.js binary.
* Start the NW.js binary.
## [NW.js Demo](https://www.npmjs.com/package/elephant-harness-demo-nwjs)

## [Thanks and Credits](./CREDITS.md)

## License
## [License](./LICENSE.md)
MIT © 2016 - 2017 Dimitar D. Mitov
32 changes: 0 additions & 32 deletions demo/package.json

This file was deleted.

Binary file removed demo/resources/app.png
Binary file not shown.
134 changes: 0 additions & 134 deletions demo/resources/app/elephant-harness/elephant-harness.js

This file was deleted.

13 changes: 0 additions & 13 deletions demo/resources/app/index.html

This file was deleted.

47 changes: 0 additions & 47 deletions demo/resources/app/index.js

This file was deleted.

51 changes: 0 additions & 51 deletions demo/resources/app/main.js

This file was deleted.

28 changes: 0 additions & 28 deletions demo/resources/app/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions demo/resources/app/php/phpinfo.php

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elephant-harness",
"version": "0.4.2",
"version": "0.5.0",
"description": "Node.js - Electron - NW.js controller for PHP scripts",
"main": "elephant-harness.js",
"directories": {
Expand Down

0 comments on commit d8b1f15

Please sign in to comment.