Skip to content

Commit

Permalink
Merge branch 'release/0.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
devMinseok committed Aug 23, 2024
2 parents 7590cb9 + d8788a5 commit c267587
Show file tree
Hide file tree
Showing 474 changed files with 17,816 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## [#100] FEAT : 로그인 구현

## 관련된 문서 📄

## 무엇에 관한 PR 인가요? 🙋

## 어떤 것을 작업하셨나요? 🛠
- 작업1
- 작업2

## 🌱 PR Point
- PR Point 1
- PR Point 2
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI

on:
pull_request:
workflow_dispatch:

jobs:
lint:
name: Run Swiftlint
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Run Swiftlint
run: |
SwiftLint/swiftlint lint --config SwiftLint/swiftlint.yml --quiet --reporter github-actions-logging
76 changes: 76 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Created by https://www.gitignore.io/api/swift,macos

### macOS ###
*.DS_Store
.AppleDouble
.LSOverride

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Swift ###
# Xcode

## Build generated
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
.build/
.swiftpm

# End of https://www.gitignore.io/api/swift,macos

## Projects ##
**/*.xcodeproj
**/*.xcworkspace

## LicensePlist ##
**/Settings.bundle/License
**/Settings.bundle/License.plist

## Tuist ##
graph.dot
Derived/
Tuist/Dependencies/SwiftPackageManager
Tuist/Dependencies/graph.json

## XCFramework ##
XCFramework/Cartfile.resolved
XCFramework/Carthage
2 changes: 2 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tools]
tuist = "4.21.1"
12 changes: 12 additions & 0 deletions DependencyGraph/graphMaker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
TUIST_BUILD_CONFIG=prod tuist graph Mohanyang -d -t -f dot
sed -i '' '/ThirdParty_/d' graph.dot
dot -Tpng graph.dot -o DependencyGraph/mohanyang_prod_graph.png
rm graph.dot

TUIST_BUILD_CONFIG=dev tuist graph -d -f dot
sed -i '' '/ThirdParty_/d' graph.dot
dot -Tpng graph.dot -o DependencyGraph/mohanyang_dev_graph.png
rm graph.dot

open DependencyGraph/mohanyang_dev_graph.png
open DependencyGraph/mohanyang_prod_graph.png
Binary file added DependencyGraph/mohanyang_dev_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DependencyGraph/mohanyang_prod_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions FileTemplate/TCA.xctemplate/Default/___FILEBASENAME___Core.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//___FILEHEADER___

import ComposableArchitecture

@Reducer
struct ___VARIABLE_productName___Core {
@ObservableState
struct State: Equatable {
<#properties#>
}

enum Action {
<#case#>
}

<#@Dependency() var#>

init() {}

var body: some ReducerOf<Self> {
Reduce(self.core)
}

private func core(state: inout State, action: Action) -> EffectOf<Self> {
switch action {
case <#pattern#>:
<#code#>
}
}
}
19 changes: 19 additions & 0 deletions FileTemplate/TCA.xctemplate/Default/___FILEBASENAME___View.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//___FILEHEADER___

import SwiftUI

import DesignSystem

import ComposableArchitecture

struct ___FILEBASENAME___: View {
@Bindable var store: StoreOf<___VARIABLE_productName___Core>

init(store: StoreOf<___VARIABLE_productName___Core>) {
self.store = store
}

var body: some View {
<#code#>
}
}
30 changes: 30 additions & 0 deletions FileTemplate/TCA.xctemplate/Public/___FILEBASENAME___Core.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//___FILEHEADER___

import ComposableArchitecture

@Reducer
public struct ___VARIABLE_productName___Core {
@ObservableState
public struct State: Equatable {
<#properties#>
}

public enum Action {
<#case#>
}

<#@Dependency() var#>

public init() {}

public var body: some ReducerOf<Self> {
Reduce(self.core)
}

private func core(state: inout State, action: Action) -> EffectOf<Self> {
switch action {
case <#pattern#>:
<#code#>
}
}
}
19 changes: 19 additions & 0 deletions FileTemplate/TCA.xctemplate/Public/___FILEBASENAME___View.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//___FILEHEADER___

import SwiftUI

import DesignSystem

import ComposableArchitecture

public struct ___FILEBASENAME___: View {
@Bindable var store: StoreOf<___VARIABLE_productName___Core>

public init(store: StoreOf<___VARIABLE_productName___Core>) {
self.store = store
}

public var body: some View {
<#code#>
}
}
57 changes: 57 additions & 0 deletions FileTemplate/TCA.xctemplate/TemplateInfo.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Kind</key>
<string>Xcode.IDEFoundation.TextSubstitutionFileTemplateKind</string>
<key>Summary</key>
<string>TCA file template</string>
<key>Description</key>
<string>TCA file template</string>
<key>SortOrder</key>
<string>1</string>
<key>AllowedTypes</key>
<array>
<string>public.swift-source</string>
</array>
<key>DefaultCompletionName</key>
<string>View</string>
<key>MainTemplateFiles</key>
<string>___FILEBASENAME___.swift</string>
<key>Platforms</key>
<array>
<string>com.apple.platform.iphoneos</string>
</array>
<key>Options</key>
<array>
<dict>
<key>Identifier</key>
<string>productName</string>
<key>Required</key>
<string>true</string>
<key>Name</key>
<string>{Name}View, {Name}Core</string>
<key>Description</key>
<string></string>
<key>Type</key>
<string>text</string>
<key>NotPersisted</key>
<string>true</string>
</dict>
<dict>
<key>Identifier</key>
<string>Public</string>
<key>Required</key>
<string>false</string>
<key>Name</key>
<string>Make Public</string>
<key>Description</key>
<string></string>
<key>Type</key>
<string>checkbox</string>
<key>NotPersisted</key>
<string>true</string>
</dict>
</array>
</dict>
</plist>
19 changes: 19 additions & 0 deletions FileTemplate/install_template.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env sh

XCODE_TEMPLATE_DIR=$HOME'/Library/Developer/Xcode/Templates/File Templates/PomoNyang'
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

xcodeTemplate () {
echo "==> Copying up templates..."

if [ -d "$XCODE_TEMPLATE_DIR" ]; then
rm -R "$XCODE_TEMPLATE_DIR"
fi
mkdir -p "$XCODE_TEMPLATE_DIR"

cp -R $SCRIPT_DIR/*.xctemplate "$XCODE_TEMPLATE_DIR"
}

xcodeTemplate

echo "==> ... success!"
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 PomoNyang

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
51 changes: 51 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
### Tuist ###

.PHONY: manifests
manifests:
tuist edit

.PHONY: install
install:
carthage update --platform iOS --use-xcframeworks --use-netrc --cache-builds --verbose --project-directory "XCFramework/"
tuist install

.PHONY: generate
generate:
TUIST_ROOT_DIR=${PWD} TUIST_BUILD_CONFIG=${config} tuist generate ${target}

.PHONY: cache
cache:
TUIST_ROOT_DIR=${PWD} tuist cache ${target} --external-only

.PHONY: module
module:
tuist scaffold Framework --layer ${layer} --name ${name}

.PHONY: clean
clean:
tuist clean
rm -rf XCFramework/Carthage
rm -rf *.xcworkspace
find Projects -name "*.xcodeproj" -exec rm -rf {} \;


### SUGAR ###

.PHONY: dev
dev:
make generate config=dev

.PHONY: prod
prod:
make generate config=prod target=Mohanyang


### Script ###

.PHONY: graph
graph:
sh DependencyGraph/graphMaker.sh

.PHONY: template
template:
sh FileTemplate/install_template.sh
Loading

0 comments on commit c267587

Please sign in to comment.