Add theme build to provision
This commit is contained in:
parent
257a8f0997
commit
880a002318
2 changed files with 10 additions and 6 deletions
|
@ -150,7 +150,7 @@ installed_extras:
|
||||||
- mailhog
|
- mailhog
|
||||||
# - memcached
|
# - memcached
|
||||||
# - newrelic
|
# - newrelic
|
||||||
# - nodejs
|
- nodejs
|
||||||
- pimpmylog
|
- pimpmylog
|
||||||
# - redis
|
# - redis
|
||||||
# - ruby
|
# - ruby
|
||||||
|
|
|
@ -73,11 +73,15 @@
|
||||||
become: no
|
become: no
|
||||||
when: "force_reinstall|default(false) or 'Drupal bootstrap' not in drupal_site_installed.stdout"
|
when: "force_reinstall|default(false) or 'Drupal bootstrap' not in drupal_site_installed.stdout"
|
||||||
|
|
||||||
- name: Run sass
|
- name: Install theme build dependencies
|
||||||
command: sassc sass/styles.scss css/styles.css
|
npm:
|
||||||
args:
|
path: {{ drupal_core_path }}/themes
|
||||||
chdir: "{{ drupal_core_path }}/themes/{{ theme }}/"
|
state: present
|
||||||
when: theme != ""
|
|
||||||
|
- name: Build theme artifacts
|
||||||
|
command: grunt kss
|
||||||
|
chdir: {{ drupal_core_path }}/themes
|
||||||
|
|
||||||
|
|
||||||
# - name: Ensure ansible is installed
|
# - name: Ensure ansible is installed
|
||||||
# apt:
|
# apt:
|
||||||
|
|
Loading…
Reference in a new issue