Skip to content

Commit

Permalink
Complete migration to monorepo architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonni committed Oct 31, 2023
1 parent 77f28e2 commit d49034b
Show file tree
Hide file tree
Showing 346 changed files with 17,870 additions and 322 deletions.
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

7 changes: 6 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: cawa-93
assignees: ''

---

Expand All @@ -24,5 +24,10 @@ A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.

**Versions (please complete the following information):**

- OS: [e.g. MacOS, Windows, Linux]
- Synectic Version: [e.g. 0.8.5-beta, 0.9.0]

**Additional context**
Add any other context about the problem here.
5 changes: 0 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: cawa-93
labels: feature
assignees: ''

---

Expand Down
10 changes: 10 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
*[Briefly describe the overall purpose of the included changes and their effect on the overall project.]*

This PR resolves #*[XXXX]*, ... *[Remove this block if no issues are related.]*

## **Changes:**

This PR makes the following changes:

* *[Provide a brief descriptive statement for each change, e.g. "Adds `react-hooks/rules-of-hooks` to ESLint for verifying React Rule of Hooks"]*
* *[Include as many descriptive statements as necessary to describe all proposed changes]*
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Configurations for GitHub Dependabot

version: 2
updates:
# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
target-branch: "main"
labels:
- "dependencies"
open-pull-requests-limit: 7
rebase-strategy: "disabled"
27 changes: 0 additions & 27 deletions .github/renovate.json

This file was deleted.

6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
# This workflow is the entry point for all CI processes.
# It is from here that all other workflows are launched.
name: CI Dispatcher
on:
workflow_dispatch:
push:
branches:
- main
- 'renovate/**'
paths-ignore:
- '.github/**'
- '!.github/workflows/ci.yml'
- '!.github/workflows/typechecking.yml'
- '!.github/workflows/tests.yml'
- '!.github/workflows/release.yml'
- '**.md'
- 'LICENSE'
- .editorconfig
- .gitignore
- '.idea/**'
- '.vscode/**'
- '.yarn/**'
pull_request:
paths-ignore:
- '.github/**'
Expand All @@ -25,10 +27,12 @@ on:
- '!.github/workflows/tests.yml'
- '!.github/workflows/release.yml'
- '**.md'
- 'LICENSE'
- .editorconfig
- .gitignore
- '.idea/**'
- '.vscode/**'
- '.yarn/**'

concurrency:
group: ci-${{ github.ref }}
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: Linting
on:
workflow_dispatch:
push:
Expand All @@ -10,7 +11,6 @@ on:
- '**.mts'
- '**.cts'
- '**.tsx'
- '**.vue'
- '**.json'
pull_request:
paths:
Expand All @@ -22,7 +22,6 @@ on:
- '**.mts'
- '**.cts'
- '**.tsx'
- '**.vue'
- '**.json'

concurrency:
Expand All @@ -38,7 +37,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
cache: 'npm'
Expand All @@ -49,15 +48,15 @@ jobs:

- run: npm run lint --if-present

# This job just check code style for in-template contributions.
# This job just checks code style for in-template contributions.
code-style:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
cache: 'npm'

- run: npm i prettier
- run: npx prettier --check "**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json}"
- run: npx prettier --check "**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,json}"
48 changes: 20 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_call:
inputs:
dry-run:
description: 'Compiles the app but not upload artifacts to distribution server'
description: 'Compiles the app and uploads to GitHub Pages'
default: false
required: false
type: boolean
Expand All @@ -26,40 +26,32 @@ jobs:

strategy:
fail-fast: true
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]

runs-on: ${{ matrix.os }}
# Important: Conveyor must be run from Linux.
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
cache: 'npm'
cache: 'yarn'

- run: npm ci
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1

- run: npm run build

- name: Compile artifacts ${{ inputs.dry-run && '' || 'and upload them to github release' }}
# I use this action because it is capable of retrying multiple times if there are any issues with the distribution server
uses: nick-fields/retry@v2
with:
timeout_minutes: 15
max_attempts: 6
retry_wait_seconds: 15
retry_on: error
shell: 'bash'
# Due to this issue https://github.com/electron-userland/electron-builder/issues/6411 the build with npx when rebuilding native dependencies hangs forever
# see https://github.com/cawa-93/vite-electron-builder/pull/953
command: ./node_modules/.bin/electron-builder --config .electron-builder.config.js --publish ${{ inputs.dry-run && 'never' || 'always' }}
env:
# Code Signing params
# See https://www.electron.build/code-signing
# CSC_LINK: ''
# CSC_KEY_PASSWORD: ''
# Publishing artifacts
GH_TOKEN: ${{ secrets.github_token }} # GitHub token, automatically provided (No need to define this secret in the repo settings)
- run: yarn build

- name: Release Agent
run: echo "Release Agent"

# - name: Run Conveyor
# uses: hydraulic-software/conveyor/actions/[email protected]
# env:
# # secrets.GITHUB_TOKEN is automatically setup by GitHub
# OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# command: make copied-site
# extra_flags: -f ci.conveyor.conf
# signing_key: ${{ secrets.SIGNING_KEY }}
# agree_to_license: 1
14 changes: 7 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ jobs:
os: [ windows-latest, ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
cache: 'npm'
- run: npm ci
cache: 'yarn'
- run: yarn ci
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
- run: npm run test:main --if-present
- run: npm run test:preload --if-present
- run: npm run test:renderer --if-present
- run: yarn test:main --if-present
- run: yarn test:preload --if-present
- run: yarn test:renderer --if-present

# I ran into problems trying to run an electron window in ubuntu due to a missing graphics server.
# That's why this special command for Ubuntu is here
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test:e2e --if-present
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn test:e2e --if-present
if: matrix.os == 'ubuntu-latest'

- run: npm run test:e2e --if-present
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/typechecking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
cache: 'npm'
cache: 'yarn'

- run: npm ci
- run: yarn ci
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1

- run: npm run typecheck --if-present
- run: yarn typecheck --if-present
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ package-lock.json
.electron-vendors.cache.json

.github
.idea
.idea

LICENSE
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
Loading

0 comments on commit d49034b

Please sign in to comment.