WIP
Chef cookbook to install Yarn package manager.
Install or upgrade (default action) Yarn (it depends on node['yarn']['package']['upgrade']
attribute, which defaults to true
).
Install Yarn.
Install the latest version of Yarn.
Install all dependencies for a project.
yarn_install '/var/projects/test' do
user 'vagrant'
action :run
end
Run a defined package script.
yarn_run 'knex' do
user 'vagrant'
dir '/var/projects/test'
args ['migrate:latest']
action :run
end
- This cookbook is under development. Use at your own risk.
- This cookbook doesn't install Node.js itself, it presupposes that Node.js is installed on your system. Any method of installing Node.js on your system should work. E.g. by using the nodejs cookbook.
- This cookbook should work on modern Debian and RHEL based systems.
Run script/bootstrap
to install necessary Ruby Gems.
Run script/test
to perform KitchenCI tests.
MIT @ Alexander Pyatkin