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

Support native platform #4

Open
wants to merge 160 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
1d5e8e4
Change slug usage to encoded text (#261)
minai621 Aug 2, 2024
16e8d91
Bump JamesIves/github-pages-deploy-action from 4.6.1 to 4.6.3 (#262)
dependabot[bot] Aug 2, 2024
f6d4997
Change `encodeURIComponent` to `encodeURI` (#265)
devleejb Aug 2, 2024
640c735
Fix Checking Conflict in Note Creation (#266)
devleejb Aug 3, 2024
8a95c62
Add shortcut for text formatting and FormatBar component (#263)
beberiche Aug 3, 2024
6b26087
Add notifications when there is an error in the service (#264)
wet6123 Aug 3, 2024
108e7e3
Implement navigate to 404 error page when accessing non-existent URL …
KimKyuHoi Aug 5, 2024
72c4030
Fix 'Additional Users' Popover Display Logic for Profile Clicks (#270)
choidabom Aug 6, 2024
59f3065
Add description for tag system in `CONTIRBUTING.md` (#271)
devleejb Aug 7, 2024
f2e1160
Remove unnecessary `package-lock.json` file (#277)
choidabom Aug 10, 2024
7df0fc0
Add pre-commit hook using husky for linting and formatting (#281)
choidabom Aug 12, 2024
b8b1400
Update GitHub Actions to trigger when a new version is released (#283)
devleejb Aug 12, 2024
2fddea4
Update version to `v0.1.1` (#284)
devleejb Aug 12, 2024
1fdad14
Integrate `.gitignore` into root project directory (#280)
sihyeong671 Aug 13, 2024
c4cd7f5
Add document writing intelligence (#289)
devleejb Aug 13, 2024
963a42a
Change model to `gpt-4o-mini` (#291)
devleejb Aug 13, 2024
1f10dff
Update version to `0.1.2` (#295)
devleejb Aug 14, 2024
aaa1270
Introduce `MAINTAINING.md` and `CHANGELOG.md` files (#296)
devleejb Aug 14, 2024
2734563
Intergrate `YorkieIntelligence` into `ToolBar` (#301)
beberiche Aug 20, 2024
60657f8
Update `rehype-katex` version to prevent errors in CodePair when ente…
devleejb Aug 20, 2024
e098395
Update `CHANGELOG.md` for `v0.1.3` (#303)
devleejb Aug 20, 2024
95d8a1f
Add Ollama Model for local usage of yorkie intelligence (#297)
sihyeong671 Aug 20, 2024
f595c97
Update and fix environment setup for Ollama model (#304)
devleejb Aug 20, 2024
90fb7ca
Apply the design of sidebar (#306)
devleejb Aug 24, 2024
b437556
Bump up `yorkie-js-sdk` to v0.4.31 (#307)
devleejb Aug 24, 2024
7945026
Update `CHANGELOG.md` for `v0.1.4` (#309)
devleejb Aug 24, 2024
48c1195
Add build test on GitHub Actions CI and regenerate `package-lock.json…
devleejb Aug 24, 2024
15679ad
Update `CHANGELOG.md` for `v0.1.5` (#311)
devleejb Aug 24, 2024
186e8e8
Fix slidebar overlapping (#312)
devleejb Aug 24, 2024
9143454
Fix npm install command in `gh_pages` Actions to use `npm ci` (#313)
devleejb Aug 24, 2024
2ca8d32
Update `CHANGELOG.md` for `v0.1.6` (#314)
devleejb Aug 24, 2024
995e4d0
Add scroll navigation to user's location from profile view (#316)
choidabom Aug 26, 2024
09fd1f8
Added rehypeSanitize to fix preview xss issues (#323)
taeng0204 Aug 28, 2024
75df2ae
Update `CHANGELOG.md` for `v0.1.7` (#324)
devleejb Aug 29, 2024
02e92de
Disable retry logic for 401 errors during API call (#325)
devleejb Aug 31, 2024
ec76b55
Downgrade `yorkie-js-sdk` to `v0.4.27` (#327)
devleejb Sep 1, 2024
01f5744
Update `CHANGELOG.md` for `v0.1.8` (#328)
devleejb Sep 1, 2024
9868b7a
Change version of `codemirror`, `yorkie-js-sdk` dependencies (#329)
devleejb Sep 2, 2024
ef94119
Update `CHANGELOG.md` for `v0.1.9` (#330)
devleejb Sep 2, 2024
3682417
Update `yorkie-js-sdk` to 0.4.31 (#331)
devleejb Sep 2, 2024
0485293
Fix user nickname display in shared document (#333)
choidabom Sep 5, 2024
ba3d54d
Add hyperlink creation feature (#332)
choidabom Sep 5, 2024
9ece2bd
Bump up `yorkie-js-sdk` to `0.5.0` (#334)
devleejb Sep 5, 2024
95edac3
Update `CHANGELOG.md` for `v0.1.10` (#335)
devleejb Sep 5, 2024
94f2a63
Change the backend environment for LangSmith (#336)
devleejb Sep 7, 2024
70beff7
Add Vim binding support using CodeMirror 6 (#340)
choidabom Sep 11, 2024
5d5ed73
Implement Refresh Token (#317)
xet-a Sep 11, 2024
c7f3600
Update `CHANGELOG.md` for `v0.1.11` (#343)
devleejb Sep 12, 2024
34a52c3
Add missing refresh token settings in `docker-compose-full.yml` (#344)
choidabom Sep 13, 2024
5d681e0
Fix duplicate text selection issue (#345)
choidabom Sep 13, 2024
c75c6af
Change the order of vim key binding (#346)
devleejb Sep 13, 2024
03635fa
Fix issue where `jj` could not be entered in Vim mode (#347)
hackerwins Sep 13, 2024
2e438c9
Change the font color in VIM panel (#349)
devleejb Sep 13, 2024
0a75db5
Update `CHANGELOG.md` for `v0.1.12` (#350)
devleejb Sep 13, 2024
12f4340
Fix excessive line break (#353)
devleejb Sep 18, 2024
5913e92
Add ability to modify document titles (#342)
hugosandsjo Sep 21, 2024
6495c6f
Fix Race Condition in Axios Interceptor for Refresh Token (#356)
devleejb Sep 23, 2024
ead93c7
Apply design changes for document title update feature (#357)
devleejb Sep 23, 2024
b0d80a3
Update `CHANGELOG.md` for `v0.1.13` (#358)
devleejb Sep 23, 2024
92e4509
Fix loading behavior when Access Token is absent (#359)
devleejb Sep 27, 2024
35d99df
Update `CHANGELOG.md` for `v0.1.14` (#360)
devleejb Sep 28, 2024
c0fc551
Add bottom padding to MarkdownPreview (#363)
blurfx Oct 1, 2024
1dbd668
Bump JamesIves/github-pages-deploy-action from 4.6.3 to 4.6.8 (#364)
dependabot[bot] Oct 4, 2024
7063137
Introduce `pnpm` for package manager (#361)
choidabom Oct 10, 2024
beb8c8d
Fix `Dockerfile` image build error (#367)
choidabom Oct 11, 2024
c418c32
Update `CHANGELOG.md` for `v0.1.15` (#368)
devleejb Oct 14, 2024
bc5c353
Update `yorkie-js-sdk` to `0.5.1` (#369)
devleejb Oct 15, 2024
0262bd5
feat: support electron applcation
minai621 Oct 17, 2024
9780eef
chore: add step to checkout pnpm in electron-build scripts
minai621 Oct 17, 2024
e26dcb9
feat: update electron-build.yaml to use minai621/action-electron-buil…
minai621 Oct 17, 2024
8bc73ce
chore: update repository URL in native/package.json
minai621 Oct 17, 2024
adbcd6c
chore: update repository URL in native/package.json
minai621 Oct 17, 2024
159e83f
chore: update repository URL in native/package.json
minai621 Oct 17, 2024
9878fd8
chore: update repository URL in native/package.json
minai621 Oct 17, 2024
77c263f
chore: update start:dev script and build:app command in native/packag…
minai621 Oct 17, 2024
08c79e9
chore: update build script name in electron-build.yaml
minai621 Oct 17, 2024
6bfb357
chore: update build script name in electron-build.yaml
minai621 Oct 17, 2024
e432762
chore: update build script name in native/package.json
minai621 Oct 17, 2024
7e8de9f
chore: downgrade electron-builder version
minai621 Oct 17, 2024
f1d97b0
chore: bump native package version to 1.0.1
minai621 Oct 17, 2024
5adfb5c
chore: Add NSIS installation step for Windows builds
minai621 Oct 17, 2024
e362c78
chore: Add NSIS installation step for Windows builds and update build…
minai621 Oct 17, 2024
1af7cf2
chore: Update build script name in electron-build.yaml
minai621 Oct 17, 2024
9b89c72
chore: Update build script command in electron-build.yaml
minai621 Oct 17, 2024
52000d9
chore: Update build script command and clear cache in electron-build.…
minai621 Oct 17, 2024
49692ed
chore: Update build script to add NSIS installation step for Windows …
minai621 Oct 17, 2024
eb1dd6b
chore: Update build script to remove Electron Builder cache in electr…
minai621 Oct 17, 2024
eb2fe88
chore: Update build script to remove Electron Builder cache and add N…
minai621 Oct 17, 2024
93c662c
chore: Update build script to remove unused Electron Builder cache an…
minai621 Oct 17, 2024
f93bb2a
chore: Update build script to check for makensis installation on Windows
minai621 Oct 17, 2024
e019911
chore: Update build script to add NSIS installation step for Windows …
minai621 Oct 17, 2024
2708c52
chore: Update build script to force reinstall NSIS on Windows and add…
minai621 Oct 17, 2024
a81bc8f
chore: Update build script to force reinstall NSIS on Windows and add…
minai621 Oct 17, 2024
5a01b18
chore: Update build script to add NSIS executable path for Windows bu…
minai621 Oct 17, 2024
ccfd292
chore: Update build script to remove NSIS installation step for Windo…
minai621 Oct 17, 2024
0ee6c0f
chore: Update build script to modify NSIS configuration for Windows b…
minai621 Oct 17, 2024
2bf61d6
chore: Update electron-builder version to 25.1.8
minai621 Oct 17, 2024
e151a0b
chore: Update build script to download and install NSIS manually for …
minai621 Oct 17, 2024
c85fc04
chore: Update build script to install NSIS using Chocolatey for Windo…
minai621 Oct 17, 2024
6a0f4b4
chore: Update build script to set NSIS_ROOT environment variable for …
minai621 Oct 17, 2024
8cbc6a9
chore: Update build script to install NSIS using Chocolatey for Windo…
minai621 Oct 17, 2024
8d521f8
chore: Update build script to remove manual NSIS installation for Win…
minai621 Oct 17, 2024
510327b
chore: Update build script to download and install NSIS 3.0.4.1 for W…
minai621 Oct 17, 2024
f002224
chore: Update build script to install NSIS using Chocolatey for Windo…
minai621 Oct 17, 2024
8797e0b
chore: Update build script to remove manual NSIS installation for Win…
minai621 Oct 17, 2024
bf83faa
chore: Update build script to download and install NSIS 3.0.4.1 for W…
minai621 Oct 17, 2024
341a6ef
chore: Update build script to check NSIS version
minai621 Oct 17, 2024
aa94d1d
chore: Update build script to check NSIS version on Windows
minai621 Oct 17, 2024
4eb40f6
chore: Update build script to install NSIS 3.0.4.1 using Chocolatey f…
minai621 Oct 17, 2024
fd30035
chore: Update build script to remove redundant NSIS version check
minai621 Oct 17, 2024
fa4fe17
chore: Remove redundant NSIS configuration in package.json
minai621 Oct 17, 2024
00a36dc
chore: Update NSIS download link in build script
minai621 Oct 17, 2024
f25438c
chore: Update build script to create .npmrc with node-linker hoisted
minai621 Oct 17, 2024
e378fc8
chore: Update build script to use Yarn instead of pnpm and set node-l…
minai621 Oct 18, 2024
db2d319
chore: Update package.json to use Yarn as the package manager
minai621 Oct 18, 2024
089ff21
chore: Update build script to install dependencies in native folder
minai621 Oct 18, 2024
6c316aa
chore: Enable Corepack and update Yarn installation in build script
minai621 Oct 18, 2024
4ea57ac
chore: Update build script to use Corepack for Yarn and pnpm installa…
minai621 Oct 18, 2024
7e0828b
chore: Update build script to use Yarn instead of pnpm and set node-l…
minai621 Oct 18, 2024
fa431ab
chore: Update native/package.json ignore patterns
minai621 Oct 18, 2024
8aa5915
chore: Refactor native project deployment in electron-build.yaml
minai621 Oct 18, 2024
7b80e5c
Refactor native project deployment in electron-build.yaml
minai621 Oct 18, 2024
2f74445
Refactor native project deployment in electron-build.yaml
minai621 Oct 18, 2024
3e6a61e
Refactor native project deployment in electron-build.yaml: Update ele…
minai621 Oct 18, 2024
fe94bee
Refactor native project deployment in electron-build.yaml: Update ele…
minai621 Oct 18, 2024
9b35557
Refactor native project deployment in electron-build.yaml: Update ele…
minai621 Oct 18, 2024
bf85a4b
Refactor native project deployment in electron-build.yaml: Update ele…
minai621 Oct 18, 2024
5c3826d
Refactor branch filtering in windows-build.yml
minai621 Oct 18, 2024
a5a5caf
Refactor NSIS installation in windows-build.yml
minai621 Oct 18, 2024
321c3c6
Refactor NSIS installation and branch filtering in windows-build.yml
minai621 Oct 18, 2024
213dbca
Refactor dependency installation in windows-build.yml
minai621 Oct 18, 2024
d68cc2a
Refactor NSIS installation in windows-build.yml: Remove redundant --a…
minai621 Oct 18, 2024
5a7e925
Refactor dependency installation and platform configuration in window…
minai621 Oct 18, 2024
c0826fe
Refactor pnpm version in windows-build.yml
minai621 Oct 18, 2024
5ea324a
Refactor build command in windows-build.yml
minai621 Oct 18, 2024
a2419b3
Refactor build command and dependency installation in windows-build.yml
minai621 Oct 18, 2024
930619b
Refactor build command and dependency installation in windows-build.y…
minai621 Oct 18, 2024
c12789e
Refactor build command in windows-build.yml: Update electron-builder …
minai621 Oct 18, 2024
db761db
Refactor build command in windows-build.yml: Update Wine installation…
minai621 Oct 18, 2024
e5faa4b
Refactor build command in windows-build.yml: Update Wine installation…
minai621 Oct 18, 2024
fd79eea
Refactor build command in windows-build.yml: Update platform and depe…
minai621 Oct 18, 2024
52e2d0b
Refactor build command in windows-build.yml: Remove pnpm version spec…
minai621 Oct 18, 2024
2df2a13
Refactor build command in windows-build.yml: Update NSIS installation…
minai621 Oct 18, 2024
e887acb
Refactor build command in windows-build.yml: Update NSIS installation…
minai621 Oct 18, 2024
1a17007
Refactor build command in windows-build.yml: Update pnpm version and …
minai621 Oct 18, 2024
161a3a4
Refactor build command in windows-build.yml: Remove pnpm version spec…
minai621 Oct 18, 2024
a4a3132
Refactor build command in windows-build.yml: Update NSIS installation…
minai621 Oct 18, 2024
14b62d5
Refactor build command in windows-build.yml: Update NSIS installation…
minai621 Oct 18, 2024
4882ea0
Update electron-builder version in native/package.json
minai621 Oct 18, 2024
376741f
Refactor build command in windows-build.yml: Update NSIS installation…
minai621 Oct 18, 2024
c57dc44
Refactor build command in windows-build.yml: Update runs-on to window…
minai621 Oct 18, 2024
f50807c
Refactor build command in windows-build.yml: Update runs-on to window…
minai621 Oct 18, 2024
4e363f9
Refactor build command in windows-build.yml: Update runs-on to macos-…
minai621 Oct 18, 2024
1b8d010
Refactor build command in windows-build.yml: Remove NSIS version chec…
minai621 Oct 18, 2024
3bbe99b
Update electron-builder version in native/package.json
minai621 Oct 18, 2024
f1a2e8d
Refactor build command in windows-build.yml: Update runs-on to window…
minai621 Oct 21, 2024
ca6a0c1
Refactor electron-build.yaml: Add ubuntu-latest to build matrix and u…
minai621 Nov 5, 2024
7c9da92
Refactor electron-build.yaml: Update pnpm install command and set wor…
minai621 Nov 5, 2024
2736297
Refactor package.json: Replace pnpx electron-builder with direct call…
minai621 Nov 5, 2024
64af802
Refactor electron-build.yaml: Simplify electron-builder command by re…
minai621 Nov 5, 2024
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
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/base-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
- name: Build & Push Image
env:
VERSION: ${{ inputs.version }}
run: docker buildx build --platform linux/amd64,linux/arm64 -t yorkieteam/codepair:$VERSION --push ./backend
run: docker buildx build --platform linux/amd64,linux/arm64 -t yorkieteam/codepair:$VERSION --push .
19 changes: 15 additions & 4 deletions .github/workflows/ci_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
branches:
- main
paths:
- ".github/workflows/ci_backend.yaml"
- "backend/**"

jobs:
Expand All @@ -21,17 +22,27 @@ jobs:
env:
working-directory: ./backend
steps:
- uses: actions/checkout@v4
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install packages
run: npm ci
run: pnpm install --frozen-lockfile
working-directory: ${{ env.working-directory }}
- name: Generate prisma
run: pnpm db:generate
working-directory: ${{ env.working-directory }}
- name: Prettier
run: npm run format:check
run: pnpm run format:check
working-directory: ${{ env.working-directory }}
- name: Lint
run: npm run lint
run: pnpm run lint
working-directory: ${{ env.working-directory }}
- name: Build
run: pnpm run build
working-directory: ${{ env.working-directory }}
16 changes: 12 additions & 4 deletions .github/workflows/ci_frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
branches:
- main
paths:
- ".github/workflows/ci_frontend.yaml"
- "frontend/**"

jobs:
Expand All @@ -21,17 +22,24 @@ jobs:
env:
working-directory: ./frontend
steps:
- uses: actions/checkout@v4
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install packages
run: npm ci
run: pnpm install --frozen-lockfile
working-directory: ${{ env.working-directory }}
- name: Prettier
run: npm run format:check
run: pnpm run format:check
working-directory: ${{ env.working-directory }}
- name: Lint
run: npm run lint
run: pnpm run lint
working-directory: ${{ env.working-directory }}
- name: Build
run: pnpm run build
working-directory: ${{ env.working-directory }}
1 change: 1 addition & 0 deletions .github/workflows/docker-publish-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
paths:
- ".github/workflows/docker-publish-latest.yaml"
- "backend/**"
- "Dockerfile"
jobs:
call-base-docker-publish:
uses: ./.github/workflows/base-docker-publish.yml
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: docker-publish
on:
release:
types: [published]

jobs:
process-version:
runs-on: ubuntu-latest
outputs:
cleaned_version: ${{ steps.remove_v.outputs.cleaned_version }}
steps:
- name: Remove 'v' prefix from version
id: remove_v
run: |
VERSION=${{ github.event.release.tag_name }}
CLEANED_VERSION=${VERSION#v}
echo "cleaned_version=$CLEANED_VERSION" >> $GITHUB_OUTPUT

call-base-docker-publish:
needs: process-version
uses: ./.github/workflows/base-docker-publish.yml
secrets: inherit
with:
version: ${{ needs.process-version.outputs.cleaned_version }}
44 changes: 44 additions & 0 deletions .github/workflows/electron-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: electron-build
on: push

jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node-version: [18.x]

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

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Set up pnpm
uses: pnpm/action-setup@v4

- name: Install Dependencies
run: pnpm install --no-frozen-lockfile

- name: Build Electron App
run: pnpm run build
working-directory: ./native

- name: Build and publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pnpm run electron-builder --publish always
working-directory: ./native

- name: Upload Release Assets
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./release/**/*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22 changes: 11 additions & 11 deletions .github/workflows/gh_pages.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: GitHub Page Publish

on:
push:
branches: main
paths:
- ".github/workflows/gh_pages.yaml"
- "frontend/**"
release:
types: [published]

jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand All @@ -13,13 +12,14 @@ jobs:
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node 🔧
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "npm"
cache-dependency-path: frontend/package-lock.json
cache: "pnpm"
cache-dependency-path: pnpm-lock.yaml

- name: Setup Sentry Env 🛠️
working-directory: ${{ env.working-directory }}
Expand All @@ -33,11 +33,11 @@ jobs:
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: |
npm install -f
npm run build
pnpm install --frozen-lockfile
pnpm run build

- name: Deploy 🚀
uses: JamesIves/[email protected].1
uses: JamesIves/[email protected].8
with:
branch: gh-pages
folder: frontend/dist
47 changes: 47 additions & 0 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: electron-windows-nsis-build

on:
push:
branches:
- "**"

jobs:
build:
runs-on: macos-latest
strategy:
matrix:
node-version: [18.x]

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

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Set up pnpm
uses: pnpm/action-setup@v4

- name: Install Dependencies
run: pnpm install --prefer-offline --no-frozen-lockfile
working-directory: ./native

- name: Build Electron App
run: pnpm run build
working-directory: ./native

- name: build
run: pnpx electron-builder --win --publish always
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: ./native

- name: Upload Release Assets
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./native/release/**/*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56 changes: 32 additions & 24 deletions backend/.gitignore → .gitignore
Original file line number Diff line number Diff line change
@@ -1,42 +1,50 @@
# compiled output
/dist
/node_modules

# Logs
logs
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# OS
.DS_Store

# Tests
/coverage
/.nyc_output
node_modules/
dist/
dist-ssr/
*.local

# IDEs and editors
/.idea
# Editor directories and files
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# OS
.DS_Store


# Environment
.env
.env.development
.env.sentry-build-plugin

# Sqlite
dev.db
dev.db-journal

# env
.env
# Tests
coverage/
.nyc_output/

# native
native/frontend
native/release
34 changes: 34 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
CHANGED_FILES=$(git diff --cached --name-only)

LINT_FRONTEND=false
LINT_BACKEND=false

for FILE in $CHANGED_FILES; do
if [[ "$FILE" =~ ^frontend/ ]]; then
LINT_FRONTEND=true
elif [[ "$FILE" =~ ^backend/ ]]; then
LINT_BACKEND=true
fi
done

if [ "$LINT_FRONTEND" = true ]; then
echo "Changes detected in the frontend. Linting & Formatting frontend..."
cd frontend
npx lint-staged
if [ $? -ne 0 ]; then
echo "Frontend Linting & Formatting failed. Commit aborted."
exit 1
fi
cd ..
fi

if [ "$LINT_BACKEND" = true ]; then
echo "Changes detected in the backend. Linting & Formatting backend..."
cd backend
npx lint-staged
if [ $? -ne 0 ]; then
echo "Backend Linting & Formatting failed. Commit aborted."
exit 1
fi
cd ..
fi
Loading
Loading