Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

feat: add a command-line-interface for launching #378

Merged
merged 2 commits into from
Jul 24, 2018
Merged

feat: add a command-line-interface for launching #378

merged 2 commits into from
Jul 24, 2018

Conversation

zeke
Copy link
Contributor

@zeke zeke commented Jul 9, 2018

@codebytere had a great idea: what if we could install and launch the demos app right from the command line?!

This change moves us in that direction:

  • updates name to be a valid npm package name
  • removes private so package can be published to npm
  • adds a bin script

Once we publish this, folks should be able to run the demos app with npx electron-api-demos.

Caveat: this approach will essentially be running the application in "dev" mode, as if you were downloading the repo and running npm install && npm start. So the app icon will be the stock Electron icon, and the behavior of the app maybe be slightly different if there are an "dev vs packaged" checks in the code.

@zeke zeke requested a review from codebytere July 9, 2018 19:34
@zeke
Copy link
Contributor Author

zeke commented Jul 9, 2018

cc @Trott

@zeke zeke merged commit 1236c1c into master Jul 24, 2018
@zeke zeke deleted the cli branch July 24, 2018 17:27
This was referenced Jul 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant