Skip to content

Commit 27ef4f8

Browse files
committed
Update project setup
1 parent 7477513 commit 27ef4f8

23 files changed

+6619
-3713
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
lib/

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"root": true,
3-
"extends": ["tienph6m"]
3+
"extends": "tienphaw"
44
}

.gitignore

Lines changed: 9 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,15 @@
1-
# OSX
2-
#
1+
# macOS
32
.DS_Store
43

5-
# Xcode
6-
#
7-
build/
8-
*.pbxuser
9-
!default.pbxuser
10-
*.mode1v3
11-
!default.mode1v3
12-
*.mode2v3
13-
!default.mode2v3
14-
*.perspectivev3
15-
!default.perspectivev3
16-
xcuserdata
17-
*.xccheckout
18-
*.moved-aside
19-
DerivedData
20-
*.hmap
21-
*.ipa
22-
*.xcuserstate
23-
project.xcworkspace
24-
25-
# Android/IJ
26-
#
27-
*.iml
28-
.idea
29-
.gradle
30-
local.properties
31-
32-
# node.js
33-
#
4+
# Node
345
node_modules/
356
npm-debug.log
36-
package-lock.json
37-
38-
# vscode
39-
jsconfig.json
40-
.project
41-
.vscode
7+
yarn-debug.log
8+
yarn-error.log
429

43-
# BUCK
44-
buck-out/
45-
bin/
46-
\.buckd/
47-
android/app/libs
48-
android/keystores/debug.keystore
10+
# Expo
11+
.expo/
4912

50-
# generated by bob
51-
lib/
13+
# Build
14+
dist/
15+
lib/

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname $0)/_/husky.sh"
3+
4+
yarn lint

.prettierrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"tabWidth": 2,
44
"trailingComma": "es5",
55
"useTabs": false,
6-
"semi": false
6+
"semi": false,
7+
"quoteProps": "consistent"
78
}

_/husky.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
if [ -z "$husky_skip_init" ]; then
3+
debug () {
4+
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
5+
}
6+
7+
readonly hook_name="$(basename "$0")"
8+
debug "starting $hook_name..."
9+
10+
if [ "$HUSKY" = "0" ]; then
11+
debug "HUSKY env variable is set to 0, skipping hook"
12+
exit 0
13+
fi
14+
15+
if [ -f ~/.huskyrc ]; then
16+
debug "sourcing ~/.huskyrc"
17+
. ~/.huskyrc
18+
fi
19+
20+
export readonly husky_skip_init=1
21+
sh -e "$0" "$@"
22+
exitCode="$?"
23+
24+
if [ $exitCode != 0 ]; then
25+
echo "husky - $hook_name hook exited with code $exitCode (error)"
26+
exit $exitCode
27+
fi
28+
29+
exit 0
30+
fi

example/.expo-shared/assets.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"f9155ac790fd02fadcdeca367b02581c04a353aa6d5aa84409a59f6804c87acd": true,
3-
"89ed26367cdb9b771858e026f2eb95bfdb90e5ae943e716575327ec325f39c44": true
4-
}
2+
"12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true,
3+
"40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true
4+
}

example/.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
node_modules/**/*
1+
node_modules/
22
.expo/*
33
npm-debug.*
44
*.jks
@@ -8,7 +8,6 @@ npm-debug.*
88
*.mobileprovision
99
*.orig.*
1010
web-build/
11-
web-report/
1211

1312
# macOS
1413
.DS_Store

example/app.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
"expo": {
33
"name": "example",
44
"slug": "example",
5-
"privacy": "public",
6-
"platforms": [
7-
"ios",
8-
"android",
9-
"web"
10-
],
115
"version": "1.0.0",
126
"orientation": "portrait",
137
"icon": "./assets/icon.png",
@@ -24,6 +18,15 @@
2418
],
2519
"ios": {
2620
"supportsTablet": true
21+
},
22+
"android": {
23+
"adaptiveIcon": {
24+
"foregroundImage": "./assets/adaptive-icon.png",
25+
"backgroundColor": "#FFFFFF"
26+
}
27+
},
28+
"web": {
29+
"favicon": "./assets/favicon.png"
2730
}
2831
}
2932
}

0 commit comments

Comments
 (0)