Skip to content

Commit 4052207

Browse files
authored
Add dev file for easy dev setup (#120)
1 parent 2c6ec70 commit 4052207

File tree

9 files changed

+2013
-1928
lines changed

9 files changed

+2013
-1928
lines changed

.yarn/releases/yarn-4.0.2.cjs

Lines changed: 0 additions & 893 deletions
This file was deleted.

.yarn/releases/yarn-4.4.1.cjs

Lines changed: 925 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ nmHoistingLimits: workspaces
22

33
nodeLinker: node-modules
44

5-
yarnPath: .yarn/releases/yarn-4.0.2.cjs
5+
yarnPath: .yarn/releases/yarn-4.4.1.cjs

dev.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: checkout-sheet-kit-react-native
2+
3+
type: node
4+
5+
up:
6+
- ruby
7+
- node:
8+
version: v20.11.1
9+
yarn: 1.22.22
10+
- custom:
11+
name: Install gems
12+
met?: (cd sample/ios && bundle check)
13+
meet: |
14+
(cd sample/ios && bundle install)
15+
- custom:
16+
name: Install pods
17+
met?: (cd sample/ios && bundle exec pod check --ignore-dev-pods)
18+
meet: |
19+
yarn pod-install
20+
- custom:
21+
name: Build node module
22+
met?: (cd modules/@shopify/checkout-sheet-kit && ls -l | grep lib)
23+
meet: |
24+
yarn module build
25+
26+
packages:
27+
- xcode
28+
29+
commands:
30+
31+
server:
32+
desc: 'Start development server'
33+
run: yarn sample start --reset-cache
34+
35+
ios:
36+
desc: 'Run iOS simulator'
37+
run: yarn sample ios
38+
39+
android:
40+
desc: 'Run Android emulator'
41+
run: yarn sample android
42+
43+
clean:
44+
desc: 'rm -rf all generated directories'
45+
run: |
46+
yarn clean
47+
yarn module clean
48+
yarn sample clean
49+
echo "✅ Cleaned root, module and sample workspaces"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"clean": "watchman watch-del .",
1919
"sample": "yarn workspace sample",
2020
"module": "yarn workspace @shopify/checkout-sheet-kit",
21-
"pod-install": "pod repo update && (cd sample/ios && NO_FLIPPER=1 bundle exec pod install --repo-update)",
21+
"pod-install": "(cd sample/ios && bundle exec pod repo update && NO_FLIPPER=1 bundle exec pod install --repo-update)",
2222
"snapshot": "./scripts/create_snapshot",
2323
"compare-snapshot": "./scripts/compare_snapshot",
2424
"turbo": "turbo",
@@ -78,5 +78,5 @@
7878
"no-console": "error"
7979
}
8080
},
81-
"packageManager": "yarn@4.0.2"
81+
"packageManager": "yarn@4.4.1"
8282
}

sample/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ source 'https://rubygems.org'
44
ruby ">= 2.6.10"
55

66
gem 'cocoapods', '>= 1.15'
7+
gem 'cocoapods-check', '1.1.0'
78
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'

sample/Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ GEM
3636
nap (~> 1.0)
3737
ruby-macho (>= 2.3.0, < 3.0)
3838
xcodeproj (>= 1.23.0, < 2.0)
39+
cocoapods-check (1.1.0)
40+
cocoapods (~> 1.0)
3941
cocoapods-core (1.15.2)
4042
activesupport (>= 5.0, < 8)
4143
addressable (~> 2.8)
@@ -97,6 +99,7 @@ PLATFORMS
9799
DEPENDENCIES
98100
activesupport (>= 6.1.7.5, < 7.1.0)
99101
cocoapods (>= 1.15)
102+
cocoapods-check (= 1.1.0)
100103

101104
RUBY VERSION
102105
ruby 3.1.2p20

sample/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"android": "react-native run-android",
7-
"clean": "rm -rf node_modules ios/build ios/pods",
7+
"clean": "rm -rf node_modules ios/build ios/pods vendor",
88
"clean:android": "(cd android && ./gradlew clean)",
99
"build:android": "sh ./scripts/build_android",
1010
"build:ios": "sh ./scripts/build_ios",

yarn.lock

Lines changed: 1031 additions & 1031 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)