2017-04-24 16:09:26 +00:00
|
|
|
---
|
|
|
|
|
2020-05-16 16:44:51 +00:00
|
|
|
- name: Install JavaScript Yarn
|
|
|
|
become: true
|
2017-04-24 16:09:26 +00:00
|
|
|
npm:
|
2020-05-16 16:44:51 +00:00
|
|
|
name: yarn
|
|
|
|
global: true
|
|
|
|
|
|
|
|
- name: Link the Yarn executable
|
|
|
|
become: true
|
|
|
|
file:
|
|
|
|
src: "/usr/local/lib/npm/bin/yarn"
|
|
|
|
dest: "/usr/local/bin/yarn"
|
|
|
|
state: link
|
|
|
|
|
|
|
|
- name: Install JavaScript Grunt
|
|
|
|
become: true
|
|
|
|
yarn:
|
|
|
|
name: grunt-cli
|
|
|
|
global: true
|
2017-04-24 16:09:26 +00:00
|
|
|
|
2020-05-16 16:44:51 +00:00
|
|
|
- name: Link the Grunt executable
|
|
|
|
become: true
|
|
|
|
file:
|
|
|
|
src: "/usr/local/lib/npm/bin/grunt"
|
|
|
|
dest: "/usr/local/bin/grunt"
|
|
|
|
state: link
|
|
|
|
|
|
|
|
- name: Install JavaScript packages with Yarn
|
|
|
|
yarn:
|
2017-04-24 16:09:26 +00:00
|
|
|
path: "{{ release_dir }}"
|
2020-05-16 16:44:51 +00:00
|
|
|
|
|
|
|
- name: Link the old bower component to libs
|
|
|
|
file:
|
|
|
|
src: "{{ release_dir }}/node_modules/@bower_components"
|
|
|
|
dest: "{{ release_dir }}/publichealth/static/libs"
|
|
|
|
state: link
|
|
|
|
|
|
|
|
- name: Compile JavaScript sources with Grunt
|
|
|
|
shell: grunt
|
|
|
|
args:
|
|
|
|
chdir: "{{ release_dir }}"
|