Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add many electron feature for performance improvement and automatic build #37

Merged
merged 25 commits into from
Jun 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
64caaa8
feature(Electron): add many electron feature for performance improvem…
Debaerdm Jun 4, 2020
0c6b857
fix(Test): mock function
Debaerdm Jun 4, 2020
6874f62
fix(workflow): rename workflow
Debaerdm Jun 4, 2020
f0389e8
fix(workflow): rename workflow
Debaerdm Jun 4, 2020
e6bc8cb
feature(Notarize): add electron notarize and sign for macos
Debaerdm Jun 4, 2020
0ebb978
feature(update): adding auto-update of dependencies
Debaerdm Jun 4, 2020
91a4021
fix(test): fix unit test builder
Debaerdm Jun 4, 2020
6b7ed10
feature(Readme): update README.md
Debaerdm Jun 4, 2020
73516dd
fix(Log): rename log variable
Debaerdm Jun 4, 2020
b28d4cb
fix(Bundle): remove sourcemap of production app
Debaerdm Jun 4, 2020
acec954
fix(List): Manual refresh on empty list (#40)
itupix Jun 4, 2020
22b7e59
fix(Auth): Logout modal closing (#39)
itupix Jun 4, 2020
3ea8237
feature(Electron): add many electron feature for performance improvem…
Debaerdm Jun 4, 2020
c9be708
fix(Test): mock function
Debaerdm Jun 4, 2020
89edc85
fix(workflow): rename workflow
Debaerdm Jun 4, 2020
823f625
fix(workflow): rename workflow
Debaerdm Jun 4, 2020
33f0dbe
feature(Notarize): add electron notarize and sign for macos
Debaerdm Jun 4, 2020
c1cf486
feature(update): adding auto-update of dependencies
Debaerdm Jun 4, 2020
c535f81
fix(test): fix unit test builder
Debaerdm Jun 4, 2020
bb18448
feature(Readme): update README.md
Debaerdm Jun 4, 2020
deccc2a
fix(Log): rename log variable
Debaerdm Jun 4, 2020
1694ba5
fix(Bundle): remove sourcemap of production app
Debaerdm Jun 4, 2020
8844f11
fix(Logout): logout window
Debaerdm Jun 5, 2020
bc21540
fix(Electron): proxy error
Debaerdm Jun 5, 2020
484761a
fix(package): fix script
Debaerdm Jun 5, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = tab
indent_size = 1
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
5 changes: 3 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"overrides": [
{
"files": [
"**/*.svelte"
"*.svelte"
],
"processor": "svelte3/svelte3"
}
Expand All @@ -34,6 +34,7 @@
]
}
],
"arrow-parens": ["error", "as-needed"]
"arrow-parens": ["error", "as-needed"],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }]
}
}
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build/release

on:
push:
branches:
- master

jobs:
release:
runs-on: ${{ matrix.os }}

# Platforms to build on/for
strategy:
matrix:
os: [macos-latest, windows-latest]

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 12

- name: Prepare for app notarization (macOS)
if: startsWith(matrix.os, 'macos')
# Import Apple API key for app notarization on macOS
run: |
mkdir -p ~/private_keys/
echo '${{ secrets.api_key }}' > ~/private_keys/AuthKey_${{ secrets.api_key_id }}.p8
- name: Build/release Skizzle
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}

# macOS code signing certificate
mac_certs: ${{ secrets.mac_certs }}
mac_certs_password: ${{ secrets.mac_certs_password }}

# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
env:
# macOS notarization API key
API_KEY_ID: ${{ secrets.api_key_id }}
API_KEY_ISSUER_ID: ${{ secrets.api_key_issuer_id }}
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
name: Check tests
jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12

- name: Install dependencies
run: npm install

- name: Run tests
run: npm run test
20 changes: 20 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
schedule:
- cron: 0 0 * * 3
name: Update
jobs:
package-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: set remote url
run: git remote set-url --push origin https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
- name: package-update
uses: taichi/actions-package-update@master
env:
AUTHOR_EMAIL: mathieu.debaerdemaeker@gmail.com
AUTHOR_NAME: debaerdm
EXECUTE: 'true'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: -u --packageFile package.json --loglevel verbose
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ coverage
# production
build
release
dist

*.provisionprofile

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

package-lock.json
npm-debug.log*
yarn-debug.log*
yarn-error.log*
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Skizzle

![Check tests](https://github.com/AxaGuilDEv/skizzle/workflows/Check%20tests/badge.svg?branch=master)
![Check coverage](https://github.com/AxaGuilDEv/skizzle/workflows/Check%20coverage/badge.svg?branch=master)
![Build/release](https://github.com/AxaGuilDEv/skizzle/workflows/Build/release/badge.svg)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/AxaGuilDEv/skizzle?logo=github&sort=semver)](https://github.com/AxaGuilDEv/skizzle/releases)

Skizzle is a Svelte + Electron application fetch and group the pull requests from all your projects from Azure DevOps. Skizzle notify you when a new pull request is available.

This app uses the [Azure DevOps API](https://docs.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-5.1) API, and it is built with [Electron](https://electronjs.org/) and [Svelte](https://svelte.dev).
Expand Down
1 change: 1 addition & 0 deletions app-store-description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Skizzle is a Svelte + Electron application fetch and group the pull requests from all your projects from Azure DevOps. Skizzle notify you when a new pull request is available.
1 change: 1 addition & 0 deletions app-store-keywoard.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
skizzle,azure,dev,git,github,programming,code,pullrequest,pr,ops
12 changes: 12 additions & 0 deletions buildResources/entitlements.mac.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
</dict>
</plist>
10 changes: 10 additions & 0 deletions buildResources/entitlements.mas.inherit.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.inherit</key>
<true/>
</dict>
</plist>
10 changes: 10 additions & 0 deletions buildResources/entitlements.mas.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
</dict>
</plist>
Loading