Skip to content

Commit 2acc461

Browse files
committed
πŸŽ‰ Initial Commit
0 parents  commit 2acc461

File tree

4 files changed

+152
-0
lines changed

4 files changed

+152
-0
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# macOS
2+
.DS_Store
3+
4+
# Xcode
5+
#
6+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
7+
8+
## User settings
9+
xcuserdata/
10+
11+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
12+
*.xcscmblueprint
13+
*.xccheckout
14+
15+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
16+
build/
17+
DerivedData/
18+
*.moved-aside
19+
*.pbxuser
20+
!default.pbxuser
21+
*.mode1v3
22+
!default.mode1v3
23+
*.mode2v3
24+
!default.mode2v3
25+
*.perspectivev3
26+
!default.perspectivev3
27+
28+
## Obj-C/Swift specific
29+
*.hmap
30+
31+
## App packaging
32+
*.ipa
33+
*.dSYM.zip
34+
*.dSYM
35+
36+
## Playgrounds
37+
timeline.xctimeline
38+
playground.xcworkspace
39+
40+
# Swift Package Manager
41+
#
42+
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
43+
# Packages/
44+
# Package.pins
45+
# Package.resolved
46+
# *.xcodeproj
47+
#
48+
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
49+
# hence it is not needed unless you have added a package configuration file to your project
50+
# .swiftpm
51+
52+
.build/
53+
54+
# CocoaPods
55+
#
56+
# We recommend against adding the Pods directory to your .gitignore. However
57+
# you should judge for yourself, the pros and cons are mentioned at:
58+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
59+
#
60+
# Pods/
61+
#
62+
# Add this line if you want to avoid checking in source code from the Xcode workspace
63+
# *.xcworkspace
64+
65+
# Carthage
66+
#
67+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
68+
# Carthage/Checkouts
69+
70+
Carthage/Build/
71+
72+
# Accio dependency management
73+
Dependencies/
74+
.accio/
75+
76+
# fastlane
77+
#
78+
# It is recommended to not store the screenshots in the git repo.
79+
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
80+
# For more information about the recommended setup visit:
81+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
82+
83+
fastlane/report.xml
84+
fastlane/Preview.html
85+
fastlane/screenshots/**/*.png
86+
fastlane/test_output
87+
88+
# Code Injection
89+
#
90+
# After new code Injection tools there's a generated folder /iOSInjectionProject
91+
# https://github.com/johnno1962/injectionforxcode
92+
93+
iOSInjectionProject/

β€ŽLICENSEβ€Ž

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Connor Ricks
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

β€ŽUtilities/Hooks/commit-msgβ€Ž

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# #!/bin/bash
2+
3+
IFS="="
4+
COMMIT_MSG_FILE=$1
5+
declare -a EMOJI_COMMANDS=(
6+
"initial=πŸŽ‰"
7+
"tag=πŸ”–"
8+
"feature=✨"
9+
"bug=πŸ›"
10+
"refactor=♻️"
11+
"docs=πŸ“š"
12+
"a11y=β™Ώ"
13+
"performance=🏎"
14+
"styling=🎨"
15+
"tooling=🧰"
16+
"tests=🚨"
17+
"removal=πŸ—‘οΈ"
18+
"wip=🚧"
19+
"fixup=πŸ› "
20+
"dependency=πŸ“¦"
21+
"crash=πŸ’₯"
22+
)
23+
24+
for COMMAND in "${EMOJI_COMMANDS[@]}"; do
25+
read -ra ARRAY <<< "${COMMAND}"
26+
if egrep --quiet ":${ARRAY[0]}:" "$1"; then
27+
sed -i -n -e "s/:${ARRAY[0]}://g" "$1"
28+
sed -i -n -e "1s/^/${ARRAY[1]} /" "$1"
29+
fi
30+
done
31+
exit 0

β€ŽUtilities/setup.shβ€Ž

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
echo "πŸ› οΈ Setting up local git hooks..."
4+
PROJECT_DIR="$(git rev-parse --show-toplevel)"
5+
git config --local core.hooksPath "${PROJECT_DIR}/Utilities/Hooks/"
6+
chmod u+x "${PROJECT_DIR}/Utilities/Hooks/commit-msg"
7+
echo "βœ… Local git hooks setup."

0 commit comments

Comments
Β (0)