Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonahsnider/netlify-plugin-cache-yarn2
Save the Yarn 2 cache folder between Netlify builds
https://github.com/jonahsnider/netlify-plugin-cache-yarn2
Last synced: about 3 hours ago
JSON representation
Save the Yarn 2 cache folder between Netlify builds
- Host: GitHub
- URL: https://github.com/jonahsnider/netlify-plugin-cache-yarn2
- Owner: jonahsnider
- Archived: true
- Created: 2021-01-18T00:46:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-10T07:13:20.000Z (about 3 years ago)
- Last Synced: 2024-09-22T21:02:20.208Z (5 days ago)
- Language: TypeScript
- Size: 5.48 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# [Netlify Yarn 2 cache](https://app.netlify.com/plugins/netlify-plugin-cache-yarn2/install)
Save the Yarn 2 cache folder between Netlify builds.
[![add to netlify](https://img.shields.io/badge/add%20to-netlify-00AD9F)](https://app.netlify.com/plugins/netlify-plugin-cache-yarn2/install)
[![npm](https://img.shields.io/npm/v/netlify-plugin-cache-yarn2)](https://www.npmjs.com/package/netlify-plugin-cache-yarn2)
[![downloads per week](https://img.shields.io/npm/dw/netlify-plugin-cache-yarn2)](https://www.npmjs.com/package/netlify-plugin-cache-yarn2)
[![Build Status](https://github.com/jonahsnider/netlify-plugin-cache-yarn2/workflows/CI/badge.svg)](https://github.com/jonahsnider/netlify-plugin-cache-yarn2/actions)A [Netlify build plugin](https://docs.netlify.com/configure-builds/build-plugins/).
## Usage
This is a Netlify build plugin, which will run during your Netlify builds. You can learn more about Netlify Build Plugins in the [Netlify docs](https://docs.netlify.com/configure-builds/build-plugins/).
If you want to manually install the plugin add the following lines to your `netlify.toml` file:
```toml
[[plugins]]
package = "netlify-plugin-cache-yarn2"
```Next, from your project's base directory, use a package manager to add this plugin to `devDependencies` in `package.json`.
```sh
yarn add -D netlify-plugin-cache-yarn2
```If you want to configure the plugin, you can do this in your `netlify.toml` file:
```toml
[[plugins]]
package = "netlify-plugin-cache-yarn2"
[plugins.inputs]
# The path to the Yarn lockfile
# Default is yarn.lock
build_dir_path = "frontend/yarn.lock"
```Note: The `[[plugins]]` line is required for each plugin, even if you have other plugins in your `netlify.toml` file already.