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: