Add theme build to provision

This commit is contained in:
Chris Thompson 2018-08-22 16:59:39 -04:00
parent 257a8f0997
commit 880a002318
2 changed files with 10 additions and 6 deletions

View file

@ -150,7 +150,7 @@ installed_extras:
- mailhog
# - memcached
# - newrelic
# - nodejs
- nodejs
- pimpmylog
# - redis
# - ruby

View file

@ -73,11 +73,15 @@
become: no
when: "force_reinstall|default(false) or 'Drupal bootstrap' not in drupal_site_installed.stdout"
- name: Run sass
command: sassc sass/styles.scss css/styles.css
args:
chdir: "{{ drupal_core_path }}/themes/{{ theme }}/"
when: theme != ""
- name: Install theme build dependencies
npm:
path: {{ drupal_core_path }}/themes
state: present
- name: Build theme artifacts
command: grunt kss
chdir: {{ drupal_core_path }}/themes
# - name: Ensure ansible is installed
# apt: