Skip to content

Commit 96f02fc

Browse files
update template for building playground
- Remove unuseful files: .mailmap - Update .gitignore: ignore Pods - Fix bug in nef-markdown when receives as ouput a relative path with only ’.’
1 parent ef1d8db commit 96f02fc

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

β€Žbin/nef-markdown

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ fi
137137

138138
# 1. fix `outputPath`
139139
if [ -d "$root/$outputPath" ]; then
140-
outputPath="$root/$outputPath"
140+
if [ "$outputPath" = "." ]; then
141+
outputPath="$root/nef-markdown"
142+
else
143+
outputPath="$root/$outputPath"
144+
fi
141145
else
142146
mkdir -p "$outputPath"
143147

β€Žsetup/TemplateConfigurator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def run_pod_install
4747
end
4848

4949
def clean_unuseful_files
50-
[".git", ".gitignore", ".travis.yml", "LICENSE", "README.md", "bin", "configure", "lib", "markdown", "setup", "assets", "docs"].each do |asset|
50+
[".git", ".gitignore", ".travis.yml", ".mailmap", "LICENSE", "README.md", "bin", "configure", "lib", "markdown", "setup", "assets", "docs"].each do |asset|
5151
`rm -rf #{asset}`
5252
end
5353
end

β€Žtemplate/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ podfile.lock
1313
*.ipa
1414
*.dSYM.zip
1515
*.dSYM
16+
17+
## CocoaPods
18+
**Pods**

0 commit comments

Comments
Β (0)