Skip to content

Commit

Permalink
Merge pull request #5 from mash-up-kr/infra/bootstrap수정-및-기본-모듈-추가
Browse files Browse the repository at this point in the history
Infra/bootstrap수정 및 기본 모듈 추가
  • Loading branch information
chansooo authored Jun 11, 2024
2 parents 4f1fdfd + 971ba0a commit 0d14413
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 14 deletions.
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

0 comments on commit 0d14413

Please sign in to comment.