Align workspace dev commands in root dev.yml#69
Conversation
7077869 to
c4188d2
Compare
c4188d2 to
cf8541b
Compare
f9cf466 to
79b74a1
Compare
79b74a1 to
fa6fa57
Compare
cf27458 to
ea11c12
Compare
fa6fa57 to
87da5c4
Compare
| supported_exts = %w[.swift .h .mm .java .js .ts .tsx] | ||
|
|
||
| Find.find(dir) do |path| | ||
| next if path.include?('/build/generated/') |
There was a problem hiding this comment.
This keeps the RN license check focused on source-controlled files. Generated Android build output can exist locally after builds/codegen and does not reliably include our license header, which made dev check depend on local build state
| @@ -292,7 +292,7 @@ class RCTShopifyCheckoutSheetKit: RCTEventEmitter, CheckoutDelegate { | |||
| return NSNumber(value: available) | |||
| } | |||
|
|
|||
| @objc func initiateGeolocationRequest(_ allow: Bool) { | |||
| @objc func initiateGeolocationRequest(_: Bool) { | |||
There was a problem hiding this comment.
Root dev check surfaced an existing SwiftFormat issue. The parameter is intentionally unused, so _ is the correct shape here.
ea11c12 to
f46976e
Compare
87da5c4 to
3604836
Compare
9514af8 to
de4dcf6
Compare
|
|
||
| ## Dev workflow | ||
|
|
||
| Run `dev` commands from the repo root. Use `dev up` before running commands when |
There was a problem hiding this comment.
Not sure if you've had success with this locally but I think telling it to use shadoenv and where to get dev from helped with certain ai sandboxing
All commands require `shadowenv exec --` prefix.
shadowenv exec --dir DIR -- /opt/dev/bin/dev up
shadowenv exec --dir DIR -- /opt/dev/bin/dev test [ARGS]
| - [Privacy compliance](https://shopify.dev/docs/storefronts/mobile/checkout-kit/privacy-compliance) - pass GDPR, CCPA, and ATT consent through to Shopify. | ||
| - [Accelerated checkouts](https://shopify.dev/docs/storefronts/mobile/checkout-kit/accelerated-checkouts?extension=react-native) - Shop Pay and Apple Pay buttons for one-tap purchase on product and cart pages. | ||
|
|
||
| ## Development |
There was a problem hiding this comment.
I think we can move this section into the CONTRIBUTING.md to help keep the readme slim
de4dcf6 to
d4ac612
Compare
3604836 to
14080fe
Compare
85710fe to
8496e6e
Compare
|
@kieran-osgood-shopify Thanks for the review. I did another pass now that the lower stack merged in. I cleaned up the root |
| react-native-lint-module: cd platforms/react-native && pnpm module lint | ||
| react-native-lint-sample: cd platforms/react-native && pnpm sample lint | ||
| react-native-license-headers: cd platforms/react-native && ./scripts/copy_license --check | ||
| protocol-build: swift build --target ShopifyCheckoutProtocol |
There was a problem hiding this comment.
I believe dev check is mainly for lint checks (supposed to finish fast) so a build might be a bit heavy for check
8496e6e to
c4e0c6b
Compare
1bf5d08 to
8575e24
Compare
83df290 to
9580dc7
Compare
9580dc7 to
d73ca4c
Compare
d73ca4c to
3028a16
Compare
Closes shop/issues-checkout-kit#908.
Stack position
This is the bottom PR in the dev-command stack after moving RN, Swift, and Android under root
dev.yml. It establishes the root command shape, platform command naming conventions, and self-contained local check wiring. Follow-up PRs build on this by centralizing storefront sample configuration and adding setup orchestration.What changes
dev build,dev test,dev lint, anddev format.formatthe canonical auto-fix command while preservingfixas an alias for existing workflows.dev rnforwarding command sodev help rnanddev rn ...work alongsidedev react-native ....dev protocol checkbuild both the protocol target and protocol test target.Gemfilefor CocoaPods lint, and resolving React Native Swift lint tools consistently.dev <platform> ...commands.shadowenv exec --requirement for AI agents.Review notes
This PR intentionally does not introduce the shared storefront
.envflow or the repo setup/bootstrap orchestration. Those are separated into later PRs so this foundation can be reviewed on its own.dev protocol testcurrently builds the protocol test target withswift build --build-tests. That keeps the command useful for local validation without relying on the current SwiftPM test-runner behavior for this package.How to test
From the repo root, verify representative root and platform-scoped commands:
dev checkdev android checkdev swift checkdev rn checkdev protocol checkdev help rndev web buildBefore you merge
Important
platforms/swift/README.mdand/orplatforms/android/README.md)Releasing a new Swift version?
platforms/swift/ShopifyCheckoutKit.podspecplatforms/swift/Sources/ShopifyCheckoutKit/ShopifyCheckoutKit.swiftplatforms/swift/CHANGELOG.mdplatforms/swift/README.md(major version only)Releasing a new Android version?
versionNameinplatforms/android/lib/build.gradleplatforms/android/CHANGELOG.mdplatforms/android/README.mdTip
See the Contributing documentation for the full release process per platform.