Skip to content

Commit

Permalink
Readme and License
Browse files Browse the repository at this point in the history
  • Loading branch information
proAlexandr committed Jun 5, 2019
1 parent 9e59270 commit 83ad209
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .electron-vue/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async function build() {

async function setBuildVersionAndNumber() {
const { version } = packageJson
const buildNumber = dateFormat(new Date(), 'yyyyddmm-HHMMss', true)
const buildNumber = dateFormat(new Date(), 'yyyymmdd-HHMMss', true)

await mkdirp(path.resolve(__dirname, '../build'))
await Promise.all([
Expand Down
19 changes: 19 additions & 0 deletions LICENSE.md
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.
76 changes: 64 additions & 12 deletions README.md
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).

0 comments on commit 83ad209

Please sign in to comment.