This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-role-warehost/warehost-client-web/tasks/archlinux.yml

33 lines
741 B
YAML
Raw Normal View History

---
- name: Install packages
pacman: name={{ item }}
with_items:
- git
- npm
- rsync
- name: Install global node packages
npm: name={{item}} global=yes
with_items:
- grunt-cli
- bower
- name: Clone repository
git: repo={{ warehost_webclient_repo }}
dest=/usr/src/warehost-client-web/
version={{warehost_webclient_version}}
force=yes
- name: Install node dependencies
npm: path=/usr/src/warehost-client-web
- name: Install bower dependencies
command: node /bin/bower install --allow-root -s -q --config.interactive=false
args:
chdir: "/usr/src/warehost-client-web"
- name: Build warehost-client-web
command: node /bin/grunt build
args:
chdir: "/usr/src/warehost-client-web"