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
|
||||
# - memcached
|
||||
# - newrelic
|
||||
# - nodejs
|
||||
- nodejs
|
||||
- pimpmylog
|
||||
# - redis
|
||||
# - ruby
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue