Skip to content

Commit

Permalink
update: migrate to turborepo & feat: tauri
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigercrl committed Jan 12, 2025
1 parent 61a8f90 commit 1da36ab
Show file tree
Hide file tree
Showing 260 changed files with 25,661 additions and 22,801 deletions.
17 changes: 13 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@

version: 2
updates:
# Enable version updates for npm
# Web
- package-ecosystem: 'npm'
# Look for `package.json` and `lock` files in the `root` directory
directory: '/'
# Check for updates once a week
directory: '/apps/web'
schedule:
interval: 'weekly'

# Commons
- package-ecosystem: 'npm'
directory: '/package/commons'
schedule:
interval: 'weekly'
# Configs
- package-ecosystem: 'npm'
directory: '/package/configs'
schedule:
interval: 'monthly'
73 changes: 73 additions & 0 deletions .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Auto Build App Artifacts
on:
push:
branches:
- main
paths:
- .github/workflows/build-app.yml
- 'apps/app/**'
- 'packages/commons/**'
- 'packages/configs/**'
pull_request:
branches:
- main
paths:
- .github/workflows/build-app.yml
- 'apps/app/**'
- 'packages/commons/**'
- 'packages/configs/**'
workflow_dispatch:

jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [ macos-latest, windows-latest, ubuntu-22.04 ]

runs-on: ${{ matrix.platform }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Install PNPM
run: npm i -g pnpm

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

- name: Build app
run: pnpm app:build

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.platform }}
path: |
target/*/release/bundle/*/*.dmg
target/*/release/bundle/*/*.app.tar.gz
target/*/release/bundle/*/*.app.tar.gz.sig
target/release/bundle/*/*.dmg
target/release/bundle/*/*.app.tar.gz
target/release/bundle/*/*.app.tar.gz.sig
target/release/bundle/*/*.AppImage
target/release/bundle/*/*.AppImage.tar.gz
target/release/bundle/*/*.AppImage.tar.gz.sig
target/release/bundle/*/*.deb
target/release/bundle/*/*.rpm
target/release/bundle/msi/*.msi
target/release/bundle/msi/*.msi.zip
target/release/bundle/msi/*.msi.zip.sig
target/release/bundle/nsis/*.exe
target/release/bundle/nsis/*.nsis.zip
target/release/bundle/nsis/*.nsis.zip.sig
47 changes: 47 additions & 0 deletions .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Auto Build Web Artifacts
on:
push:
branches:
- main
paths:
- .github/workflows/build-app.yml
- 'apps/web/**'
- 'packages/commons/**'
- 'packages/configs/**'
pull_request:
branches:
- main
paths:
- .github/workflows/build-app.yml
- 'apps/web/**'
- 'packages/commons/**'
- 'packages/configs/**'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Install PNPM
run: npm i -g pnpm

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

- name: Build website
run: pnpm web:build

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: MCSL-Future-Web
path: ./apps/web/.output
37 changes: 0 additions & 37 deletions .github/workflows/build.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/docs.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/release.yml

This file was deleted.

55 changes: 39 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,50 @@
# Nuxt dev/build outputs
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Dependencies
node_modules
.pnp
.pnp.js

# Local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# Testing
coverage

# Turbo
.turbo

# Build Outputs
out
build
dist
.output
.data
.nuxt
.nitro
.cache
dist

# Node dependencies
node_modules

# Logs
logs
*.log
# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Misc
.DS_Store
.fleet
*.pem
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Local env files
.env
.env.*
!.env.example

# MCSL Future Web data
docs
# Cargo
/target
File renamed without changes.
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"Vue.volar",
"tauri-apps.tauri-vscode",
"rust-lang.rust-analyzer"
]
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"eslint.workingDirectories": [
{
"mode": "auto"
}
]
}
Loading

0 comments on commit 1da36ab

Please sign in to comment.