iuri-gg / ansible-role-yarn

Ansible Role - YARN Package Manager for Ubuntu/RHEL/CentOS https://galaxy.ansible.com/ocha/yarn/
26 stars 13 forks source link

Install yarn packages #3

Open 030 opened 6 years ago

030 commented 6 years ago

default could be empty

yarn global add generator-jhipster

packages
  - name: generator-jhipster
  - type: global
iuri-gg commented 6 years ago

@030 Good suggestion. will add sometime next week

030 commented 6 years ago

You could add me as a reviewer.

030 commented 6 years ago

Probably you have already some ideas how to implement this feature. Geerlingguy implemented this feature as follows for nodejs:

https://github.com/geerlingguy/ansible-role-nodejs/blob/master/defaults/main.yml#L15

[nodejs_npm_global_packages: []
#  # Install a specific version of a package.
#  - name: jslint
#    version: 0.9.3
#  # Install the latest stable release of a package.
#  - name: node-sass
#  # This shorthand syntax also works (same as previous example).
#  - node-sass