-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 77bf676
Showing
31 changed files
with
869 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"presets": ["es2015", "stage-0", "react"], | ||
"plugins": ["add-module-exports"], | ||
"env": { | ||
"production": { | ||
"presets": ["react-optimize"], | ||
"plugins": [ | ||
"babel-plugin-dev-expression" | ||
] | ||
}, | ||
"development": { | ||
"presets": ["react-hmre"] | ||
}, | ||
"test": { | ||
"plugins": [ | ||
["webpack-loaders", { "config": "webpack.config.test.js", "verbose": false }] | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules | ||
|
||
# OSX | ||
.DS_Store | ||
|
||
# App packaged | ||
dist | ||
release | ||
|
||
#ide | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Copyright 2016 WalmartLabs | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Electrode OTA Desktop | ||
=== | ||
A GUI for the code-push command line. | ||
|
||
Download the latest [here](releases) | ||
|
||
|
||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
|
||
|
||
|
||
###Development | ||
The Electrode OTA Desktop is an electron app. Most of the UI code is in [electrode-ota-ui](../electrode-ota-ui). Due | ||
to various technical and time constraints both need to be installed for this to work correctly. They have not been publicly | ||
published yet so bear with the nuttyness. | ||
|
||
First you need node/npm install >6.5.0 [node](https://nodejs.org/en/) from https://nodejs.org/en/ | ||
|
||
```sh | ||
$ mkdir electrode-ota | ||
$ cd electrode-ota | ||
$ git clone https://gecgithub01.walmart.com/jspear1/electrode-ota-ui | ||
$ git clone https://gecgithub01.walmart.com/jspear1/electrode-ota-desktop | ||
$ cd electrode-ota-ui | ||
$ npm install | ||
$ npm run electron | ||
$ cd ../electrode-ota-desktop | ||
$ npm install | ||
$ npm run distro | ||
$ #To test the app | ||
$ open dist/mac/ElectrodeOTA.app | ||
$ #To test the dmg | ||
$ open dist/mac/ElectrodeOTA-{version}.dmg | ||
``` | ||
### To debug/develop | ||
To develop, it runs a webpack-dev-server in the background, for hmr. However app/browser/main is not webpacked or | ||
transpiled, its plain old javascript. But all the ui is there under ../electrode-ota-ui so have fun, and send PR's. | ||
|
||
```sh | ||
$ npm run hot | ||
``` | ||
|
||
This project uses [electron-builder](https://github.com/electron-userland/electron-builder) to buid the dmg and .app. | ||
To add an app signature there are some tools [see](https://github.com/electron-userland/electron-osx-sign/wiki/1.-Getting-Started) | ||
and for more [details](https://github.com/electron-userland/electron-builder/wiki/Options) |
Oops, something went wrong.