Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chassis/yarn
A Chassis extension to install Yarn
https://github.com/chassis/yarn
chassis chassis-extension wordpress yarn
Last synced: 8 days ago
JSON representation
A Chassis extension to install Yarn
- Host: GitHub
- URL: https://github.com/chassis/yarn
- Owner: Chassis
- Created: 2017-03-28T03:51:40.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2020-08-13T10:03:28.000Z (over 4 years ago)
- Last Synced: 2024-12-19T17:03:18.777Z (24 days ago)
- Topics: chassis, chassis-extension, wordpress, yarn
- Language: Puppet
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Yarn extension for Chassis
The Yarn extension automatically sets up your Chassis instance to be able to use [yarn](https://github.com/yarnpkg/yarn) inside your Chassis box.```
# In your Chassis dir:
git clone --recursive https://github.com/Chassis/Yarn.git extensions/yarn```
Then you'll need to reprovision
```
cd ..
vagrant provision
```Alternatively you can add the extension to one of your yaml config files. e.g.
```
# Extensions
#
# Install a list of extensions automatically
extensions:
- chassis/yarn
```Then you'll need to reprovision
```
vagrant provision
```Yarn has now been installed inside your Chassis box.
## Installing Yarn dependencies
You can have Chassis automatically run `yarn install` in a number of directories in your project by adding a list of directories in one of your [yaml](http://docs.chassis.io/en/latest/config/) files. e.g.
```
yarn:
paths:
# Use absolute paths on the VM. For a default Chassis installation this should be:
- /vagrant/content/plugins/yourplugin
- /vagrant/content/themes/atheme
# If you're using paths (http://docs.chassis.io/en/latest/config/#paths) in Chassis this should be:
- /chassis/content/plugins/yourplugin
- /chassis/content/themes/atheme
```You'll need to run `vagrant provision` for those to be installed if you'd added them after your first initial Chassis `vagrant up`.
## Custom Yarn commands
You can have Chassis automatically run custom commands in a number of directories in your project by adding a list of directories in one of your [yaml](http://docs.chassis.io/en/latest/config/) files. e.g.
```
yarn:
paths:
- path: /vagrant/content/plugins/yourplugin
command: 'yarn install && yarn compile'
- /vagrant/content/themes/atheme
```