Skip to content

Commit

Permalink
Add dev file for easy dev setup (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
markmur authored Sep 6, 2024
1 parent 2c6ec70 commit 4052207
Show file tree
Hide file tree
Showing 9 changed files with 2,013 additions and 1,928 deletions.
893 changes: 0 additions & 893 deletions .yarn/releases/yarn-4.0.2.cjs

This file was deleted.

925 changes: 925 additions & 0 deletions .yarn/releases/yarn-4.4.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ nmHoistingLimits: workspaces

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.0.2.cjs
yarnPath: .yarn/releases/yarn-4.4.1.cjs
49 changes: 49 additions & 0 deletions dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: checkout-sheet-kit-react-native

type: node

up:
- ruby
- node:
version: v20.11.1
yarn: 1.22.22
- custom:
name: Install gems
met?: (cd sample/ios && bundle check)
meet: |
(cd sample/ios && bundle install)
- custom:
name: Install pods
met?: (cd sample/ios && bundle exec pod check --ignore-dev-pods)
meet: |
yarn pod-install
- custom:
name: Build node module
met?: (cd modules/@shopify/checkout-sheet-kit && ls -l | grep lib)
meet: |
yarn module build
packages:
- xcode

commands:

server:
desc: 'Start development server'
run: yarn sample start --reset-cache

ios:
desc: 'Run iOS simulator'
run: yarn sample ios

android:
desc: 'Run Android emulator'
run: yarn sample android

clean:
desc: 'rm -rf all generated directories'
run: |
yarn clean
yarn module clean
yarn sample clean
echo "✅ Cleaned root, module and sample workspaces"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"clean": "watchman watch-del .",
"sample": "yarn workspace sample",
"module": "yarn workspace @shopify/checkout-sheet-kit",
"pod-install": "pod repo update && (cd sample/ios && NO_FLIPPER=1 bundle exec pod install --repo-update)",
"pod-install": "(cd sample/ios && bundle exec pod repo update && NO_FLIPPER=1 bundle exec pod install --repo-update)",
"snapshot": "./scripts/create_snapshot",
"compare-snapshot": "./scripts/compare_snapshot",
"turbo": "turbo",
Expand Down Expand Up @@ -78,5 +78,5 @@
"no-console": "error"
}
},
"packageManager": "yarn@4.0.2"
"packageManager": "yarn@4.4.1"
}
1 change: 1 addition & 0 deletions sample/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ source 'https://rubygems.org'
ruby ">= 2.6.10"

gem 'cocoapods', '>= 1.15'
gem 'cocoapods-check', '1.1.0'
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
3 changes: 3 additions & 0 deletions sample/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ GEM
nap (~> 1.0)
ruby-macho (>= 2.3.0, < 3.0)
xcodeproj (>= 1.23.0, < 2.0)
cocoapods-check (1.1.0)
cocoapods (~> 1.0)
cocoapods-core (1.15.2)
activesupport (>= 5.0, < 8)
addressable (~> 2.8)
Expand Down Expand Up @@ -97,6 +99,7 @@ PLATFORMS
DEPENDENCIES
activesupport (>= 6.1.7.5, < 7.1.0)
cocoapods (>= 1.15)
cocoapods-check (= 1.1.0)

RUBY VERSION
ruby 3.1.2p20
Expand Down
2 changes: 1 addition & 1 deletion sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"android": "react-native run-android",
"clean": "rm -rf node_modules ios/build ios/pods",
"clean": "rm -rf node_modules ios/build ios/pods vendor",
"clean:android": "(cd android && ./gradlew clean)",
"build:android": "sh ./scripts/build_android",
"build:ios": "sh ./scripts/build_ios",
Expand Down
2,062 changes: 1,031 additions & 1,031 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 4052207

Please sign in to comment.