Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/node_modules
/dist
/.vscode
/tmp
/tmp
/.git
6 changes: 4 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{ "sourceTag": "*", "onlyDependOnLibsWithTags": ["*"] }
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
Expand All @@ -21,7 +24,6 @@
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"parserOptions": { "project": "./tsconfig.*?.json" },
"rules": {}
},
{
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/electron-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "Build electron executables"
on:
push:
branches:
- main
pull_request:

jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- name: Install wine
run: |
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt update
sudo apt install --install-recommends winehq-stable
# Checkout and install
- name: checkout
uses: actions/checkout@v2
- name: NPM Cache
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install deps
run: npm install
# Build and deploy
- name: Build frontend
run: npx nx build core --prod
env:
COMEN_ENVIRONMENT: "electron"
- name: Build electron app
run: npx nx build electron-app --prod
- name: Package electron app
run: npm run build-electron-win
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: build-windows
path: dist/executables/Comen.exe

35 changes: 35 additions & 0 deletions .github/workflows/node-backend-vercel-staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Vercel staging deployment for node backend"
on: [pull_request]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Checkout and install
- name: checkout
uses: actions/checkout@v2
- name: NPM Cache
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install deps
run: npm install
# Build and deploy
- name: Build frontend
run: npx nx build core --prod
env:
COMEN_ENVIRONMENT: "vercel"
- name: Build backend
run: npx nx build node-backend --prod
- name: Deploy production
uses: amondnet/vercel-action@v19
id: vercel-action-staging
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
scope: ${{ secrets.VERCEL_SCOPE }}

2 changes: 2 additions & 0 deletions .github/workflows/node-backend-vercel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
# Build and deploy
- name: Build frontend
run: npx nx build core --prod
env:
COMEN_ENVIRONMENT: "vercel"
- name: Build backend
run: npx nx build node-backend --prod
- name: Deploy production
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"singleQuote": true
"singleQuote": true,
"tabWidth": 2
}
Loading