-
Notifications
You must be signed in to change notification settings - Fork 190
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
1 parent
9e59270
commit 83ad209
Showing
3 changed files
with
84 additions
and
13 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
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,19 @@ | ||
Copyright (c) 2019 Pixel Point | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 |
---|---|---|
@@ -1,41 +1,93 @@ | ||
# Kube Forwarder | ||
|
||
> A tool for managing port forwarding configs for kubernetes clusters | ||
A tool for managing port forwarding configs for kubernetes clusters. | ||
Built with [Electron](https://electronjs.org) | ||
|
||
#### Build Setup | ||
## Getting Started | ||
|
||
``` bash | ||
### Prerequisites | ||
|
||
* Node 10.8+ | ||
* MacOS (if you want to build `.dmg` target) | ||
* Docker (if you want to run tests) | ||
|
||
### Installing | ||
|
||
``` | ||
# install dependencies | ||
npm install | ||
# serve with hot reload at localhost:9080 | ||
npm run dev | ||
# build electron application for production | ||
# serve WEB version with hot reload at localhost:9081 | ||
npm run web | ||
``` | ||
|
||
### Build | ||
|
||
Build an application for production | ||
``` | ||
# Build a target for current OS | ||
npm run build | ||
# run unit & end-to-end tests | ||
npm test | ||
# Build a target for Windows | ||
npm run build -- -- --win | ||
# Build a target for Linux | ||
npm run build -- -- --linux | ||
# lint all JS/Vue component files in `src/` | ||
npm run lint | ||
# You can mix targets | ||
npm run build -- -- --win --linux | ||
# You can build static and target separately | ||
npm run build:dist | ||
npm run build:target -- --win | ||
``` | ||
|
||
### Release guide | ||
A built version will be appear in `build` directory. | ||
|
||
## Running the tests | ||
|
||
We are using [Cypress](https://www.cypress.io) to run integration tests. | ||
There are visual regression tests. It's important to run them inside docker | ||
container to get same screenshots as in Drone CI. | ||
|
||
``` | ||
npm run test:cypress | ||
``` | ||
|
||
Or you can run it manually on a local machine. | ||
``` | ||
npm run web | ||
# In a separate terminal tab | ||
npm run test:cypress:onhost | ||
# Or you can open Cypress GUI | ||
npm run test:cypress:open | ||
``` | ||
|
||
## Release guide | ||
|
||
1) Update the version in `package.json`. | ||
2) Push to `release` branch. | ||
3) Run `npm run release` on a Mac computer to build `.dmg` target. | ||
4) Go to Releases tab in the repository, test and release the created draft. | ||
2) Push to `release` branch. [Drone(pixel-point/kube-forwarder)](https://drone.pixelpoint.io/pixel-point/kube-forwarder/) | ||
will build packages for Windows and Linux and upload them to [releases](https://github.com/pixel-point/kube-forwarder/releases) | ||
3) Run `npm run release` on a Mac computer to build `.dmg` target. | ||
It will be automatically pushed to releases at Github. | ||
4) Go to [Releases](https://github.com/pixel-point/kube-forwarder/releases) in the repository. | ||
Make sure that the created draft is OK and release it (Edit -> Release). | ||
|
||
Notes: | ||
1) `.dmg` target is added to release by your mac computer. | ||
`.AppImage` and `.exe` have to be added to the release by drone CI. | ||
2) A release tag (for example: `v1.0.3`) will be added automatically | ||
by Github when you release your draft. | ||
|
||
## License | ||
|
||
This project is licensed under the MIT License - see the LICENSE.md file for details | ||
|
||
--- | ||
|
||
This project was generated with [electron-vue](https://github.com/SimulatedGREG/electron-vue)@[8fae476](https://github.com/SimulatedGREG/electron-vue/tree/8fae4763e9d225d3691b627e83b9e09b56f6c935) using [vue-cli](https://github.com/vuejs/vue-cli). Documentation about the original structure can be found [here](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html). |