33 lines
741 B
YAML
33 lines
741 B
YAML
|
---
|
||
|
- 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"
|