From 880a002318ea75ce44f88845f375a75b799102a9 Mon Sep 17 00:00:00 2001 From: Chris Thompson Date: Wed, 22 Aug 2018 16:59:39 -0400 Subject: [PATCH] Add theme build to provision --- provisioning/box/config.yml | 2 +- provisioning/tasks/10-drupal.yml | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/provisioning/box/config.yml b/provisioning/box/config.yml index dde26f5..43de41a 100644 --- a/provisioning/box/config.yml +++ b/provisioning/box/config.yml @@ -150,7 +150,7 @@ installed_extras: - mailhog # - memcached # - newrelic - # - nodejs + - nodejs - pimpmylog # - redis # - ruby diff --git a/provisioning/tasks/10-drupal.yml b/provisioning/tasks/10-drupal.yml index 564dc89..101ee93 100644 --- a/provisioning/tasks/10-drupal.yml +++ b/provisioning/tasks/10-drupal.yml @@ -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: