Skip to content

Commit 6c305a5

Browse files
committed
chore: fastlane
1 parent e674a57 commit 6c305a5

4 files changed

Lines changed: 22 additions & 3 deletions

File tree

fastlane/Fastfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,17 @@ lane :setup do |params|
135135
ns_install
136136
end
137137

138+
desc 'Run command in fastlane "env"'
139+
lane :run_sh do |options|
140+
command = options[:command] # fetch the CLI argument
141+
unless command
142+
UI.user_error!("You must provide a command! Example: fastlane run_ns command:'ns typings ios'")
143+
end
144+
puts "run:" + command
145+
146+
sh(command) # execute the passed command
147+
end
148+
138149
desc 'Prepare the application.'
139150
lane :prepare do |params|
140151
platform = params[:platform]

fastlane/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ Ensure deps are installed
5353

5454
Setup
5555

56+
### run_sh
57+
58+
```sh
59+
[bundle exec] fastlane run_sh
60+
```
61+
62+
Run command in fastlane "env"
63+
5664
### prepare
5765

5866
```sh

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ __metadata:
2727

2828
"@akylas/nativescript-app-tools@file:tools::locator=root-workspace-0b6124%40workspace%3A.":
2929
version: 1.0.0
30-
resolution: "@akylas/nativescript-app-tools@file:tools#tools::hash=f028bd&locator=root-workspace-0b6124%40workspace%3A."
30+
resolution: "@akylas/nativescript-app-tools@file:tools#tools::hash=d9f62e&locator=root-workspace-0b6124%40workspace%3A."
3131
dependencies:
3232
"@dotenvx/dotenvx": "npm:1.51.4"
3333
"@nativescript-community/fontmin": "npm:0.9.11"
@@ -81,7 +81,7 @@ __metadata:
8181
typescript: "npm:5.9.3"
8282
typescript-eslint: "npm:8.53.0"
8383
webpack-bundle-analyzer: "npm:4.10.2"
84-
checksum: 10/edfeef50a05de1ae4db7a5394a362d1bac109efad6c0973eb2a8fa528fbc717ad0cf3b6455d17fb27e6ceacc0369ec894deccbb932de437206ac83dfc2b37435
84+
checksum: 10/c444838873b59a58fa1fdfe0f0918b35b874c7c7b57e5eea46ebfd677e74ad49e45ef4a7fb70d342ce3b1fbb3648c086e1d56232800c7b3800ff64b21c456bb8
8585
languageName: node
8686
linkType: hard
8787

0 commit comments

Comments
 (0)