2016-03-15 08:32:38 -04:00
|
|
|
---
|
|
|
|
- name: setup a user local node folder for development
|
2016-03-15 11:07:13 -04:00
|
|
|
file: path="{{ local_dev_setup.npm_home }}" state=directory
|
|
|
|
owner={{ local_development.user }} group={{ local_development.user }}
|
2016-03-15 08:32:38 -04:00
|
|
|
|
|
|
|
- name: setup a npmrc setting for local development
|
2016-03-15 11:07:13 -04:00
|
|
|
template: src=npmrc.tmpl dest="{{ local_dev_setup.user_home }}/.npmrc"
|
|
|
|
owner={{ local_development.user }}
|
|
|
|
group={{ local_development.user }}
|
2016-03-15 10:10:17 -04:00
|
|
|
|
|
|
|
- name: install globally required tools
|
2016-03-15 11:07:13 -04:00
|
|
|
npm: name={{ item }} state=present registry=http://registry.npmjs.org/
|
|
|
|
path="{{ local_dev_setup.npm_home }}" global=yes
|
2016-10-02 15:46:46 -04:00
|
|
|
with_items: "{{ globally_installed_tools }}"
|
2016-03-15 11:07:13 -04:00
|
|
|
|
|
|
|
- name: add binaries to local path
|
|
|
|
lineinfile: state=present dest="{{ local_dev_setup.user_home }}/.bash_profile"
|
|
|
|
line="export PATH=$PATH:$HOME/.local/share/node_modules/bin:$HOME/.local/share/node_modules/.bin"
|