No commit activity in last 3 years
No release in over 3 years
Execute Yarn commands from your Fastfile
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.1.3
>= 0
>= 0
>= 0
 Project Readme

yarn plugin

fastlane Plugin Badge Gem

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-yarn, add it to your project by running:

fastlane add_plugin yarn

About yarn

Execute Yarn commands from your Fastfile

When using the yarn action in your fastfile, it will install any dependencies that may have changed in your package.json file It will by default look for your package.json file in the root directory, or you can choose a different location.

yarn(
  command: "test",
  package_path: "../package.json"
)

Yarn Options

+---------------------------+---------------------------+---------------------------+---------+
|                                        yarn Options                                         |
+---------------------------+---------------------------+---------------------------+---------+
| Key                       | Description               | Env Var                   | Default |
+---------------------------+---------------------------+---------------------------+---------+
| flags                     | Flags you want Yarn to    | YARN_FLAGS                |         |
|                           | perform as listed in      |                           |         |
|                           | package.json file         |                           |         |
| command                   | Command you want Yarn to  | YARN_COMMAND              |         |
|                           | perform, e.g. 'add' or    |                           |         |
|                           | 'upgrade'                 |                           |         |
| package_path              | Path to package.json file | PACKAGE_PATH              |         |
| project_root              | package.json folder       | PROJECT_ROOT              |         |
| options                   | Options to pass to Yarn   | YARN_OPTIONS              |         |
| auto_install_dependencies | Runs yarn install before  | AUTO_INSTALL_DEPENDENCIES | false   |
|                           | executing any yarn        |                           |         |
|                           | command                   |                           |         |
+---------------------------+---------------------------+---------------------------+---------+

Example

Check out the example Fastfile to see how to use this plugin. Try it by cloning the repo, running fastlane install_plugins and bundle exec fastlane test.

Run tests for this plugin

To run both the tests, and code style validation, run

rake

To automatically fix many of the styling issues, use

rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.