Skip to content

Commit

Permalink
refactor: move apps to apps directory
Browse files Browse the repository at this point in the history
  • Loading branch information
krystxf committed May 29, 2024
1 parent 9de7755 commit de8b106
Show file tree
Hide file tree
Showing 144 changed files with 9,389 additions and 12,104 deletions.
4 changes: 3 additions & 1 deletion .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
# backend -> backend/v1
ed24de82d9190fd08bbd1e5be416b62d3a186e9d
# app/metro-now/ -> app/
197279f1e91b65577c7fdc96e292d99081c95e14
197279f1e91b65577c7fdc96e292d99081c95e14
# backend/, docs/, app/ -> apps/
3017fa90f296e92ac96f5e79b821b65f37aec8e7
6 changes: 3 additions & 3 deletions .github/workflows/app-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:

- name: Setup Xcode
run: |
cd ./app
cd ./apps/app
xcodebuild -downloadAllPlatforms
- name: Build
run: |
cd ./app
cd ./apps/app
xcodebuild build -scheme metro-now -project metro-now.xcodeproj -destination 'platform=iOS Simulator,name=iPhone ${{ matrix.device }},OS=${{ matrix.iOS }}' | xcpretty && exit ${PIPESTATUS[0]}
- name: Test
run: |
cd ./app
cd ./apps/app
xcodebuild test -scheme metro-now -project metro-now.xcodeproj -destination 'platform=iOS Simulator,name=iPhone ${{ matrix.device }},OS=${{ matrix.iOS }}' | xcpretty && exit ${PIPESTATUS[0]}
82 changes: 0 additions & 82 deletions .github/workflows/backend-ci.yaml

This file was deleted.

20 changes: 15 additions & 5 deletions .github/workflows/check-format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,19 @@ jobs:
swift-version: 5.10
- uses: actions/checkout@v4

- name: Check Swift format
run: swiftformat . --lint
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- uses: pnpm/action-setup@v3
with:
version: 8

- name: Check JS format
run: |
pnpm install
pnpm format:swift:check
js-format-check:
name: JS format check 💅
Expand All @@ -34,6 +45,5 @@ jobs:

- name: Check JS format
run: |
pnpm i -g turbo
pnpm i -r
pnpm run prettier:format:check
pnpm install
pnpm format:prettier:check
32 changes: 32 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Backend CI

on: push

jobs:
turbo-build:
name: Build 🏗️
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2

- uses: pnpm/action-setup@v3
with:
version: 8

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- run: pnpm build
38 changes: 0 additions & 38 deletions .github/workflows/docs-ci.yml

This file was deleted.

140 changes: 137 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,138 @@
**/.DS_Store
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Dependencies
node_modules
**/.env
.turbo
.pnp
.pnp.js

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

# Testing
coverage

# Turbo
.turbo

# Vercel
.vercel

# Build Outputs
.next/
out/
build
dist


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

# Misc
.DS_Store
*.pem


# typescript
*.tsbuildinfo
next-env.d.ts




# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
7 changes: 0 additions & 7 deletions .prettierrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
this project uses [turbo repo](https://turbo.build/repo/docs)

```bash
pnpm install -r # install dependencies recursively
pnpm install # install dependencies
brew install xcbeautify swiftformat # install swift dependencies

# turbo options
Expand Down
Loading

0 comments on commit de8b106

Please sign in to comment.