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

Infra/bootstrap수정 및 기본 모듈 추가 #5

Merged
merged 2 commits into from
Jun 11, 2024
Merged
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
4 changes: 0 additions & 4 deletions .github/workflows/pullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ jobs:
runs-on: macos-13
steps:
- uses: actions/checkout@v3

# - uses: maxim-lobanov/setup-xcode@v1
# with:
# xcode-version: '15.4'

- name: Access Available
run: chmod +x Scripts/onboarding.sh
Expand Down
14 changes: 2 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@ USER_NAME = $(shell python3 Scripts/author_name.py)
CURRENT_DATE = $(shell pipenv run python Scripts/current_date.py)

bootstrap:
@curl https://mise.run | sh
@echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
@echo 'export PATH="$HOME/.local/share/mise/shims:$PATH"' >> ~/.zprofile
@source ~/.zshrc
@arch -arm64 brew install pipenv
@arch -arm64 brew install fastlane
@fastlane match development --readonly
@fastlane match appstore --readonly
@mise install
@tuist install
@tuist generate
@./Scripts/bootstrap.sh

# e.g. make core name=모듈이름
core:
Expand All @@ -34,4 +24,4 @@ feature:
--author "$(USER_NAME)" \
--current-date "$(CURRENT_DATE)"

@tuist edit
@tuist edit
3 changes: 1 addition & 2 deletions Matchfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ storage_mode("git")

type("development") # The default type, can be: appstore, adhoc, enterprise or development

# app_identifier(["tools.fastlane.app", "tools.fastlane.app2"])
# username("[email protected]") # Your Apple Developer Portal username
app_identifier(["ppac.farmeme.App"])

# For all available options run `fastlane match --help`
# Remove the # in the beginning of the line to enable the other options
Expand Down
26 changes: 26 additions & 0 deletions Projects/Core/PPACUtil/Project.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//
// Project.swift
// PPACUtil
//
// Created by kimchansoo on 2024/06/09
//

import ProjectDescription
import ProjectDescriptionHelpers

let project = Project(
name: "PPACUtil",
targets: [
.configure(
name: "PPACUtil",
product: .framework,
infoPlist: .default,
sources: "Sources/**",
resources: "Resources/**",
dependencies: [

]
)
]
)

1 change: 1 addition & 0 deletions Projects/Core/PPACUtil/Resources/dummy.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
더미임미다
1 change: 1 addition & 0 deletions Projects/Core/PPACUtil/Sources/dummy.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
더미임미다
27 changes: 27 additions & 0 deletions Scripts/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/zsh

set -e

# mise 설치
curl https://mise.run | sh

# 환경설정 추가
echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
echo 'export PATH="$HOME/.local/share/mise/shims:$PATH"' >> ~/.zprofile

# zsh 다시 시작
exec zsh

# 필요한 도구 설치
arch -arm64 brew install pipenv fastlane

# fastlane 설정
fastlane match development --readonly
fastlane match appstore --readonly

# mise, tuist 설치
mise install
tuist install

# tuist generate 실행
tuist generate
1 change: 1 addition & 0 deletions Tuist/ProjectDescriptionHelpers/TargetDependency+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ extension TargetDependency {
public struct Core {
public static let DesignSystem = project(moduleName: "DesignSystem")
public static let PPACModels = project(moduleName: "PPACModels")
public static let PPACUtil = project(moduleName: "PPACUtil")
}

public struct ThirdParty {
Expand Down
Loading