Re-add Ansible and DigitalOcean
This commit is contained in:
parent
51db8d5609
commit
ff4b027814
21 changed files with 472 additions and 312 deletions
19
tools/ansible/includes/build-theme-assets.yml
Normal file
19
tools/ansible/includes/build-theme-assets.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
- name: Install theme dependencies
|
||||
command: >
|
||||
npm ci
|
||||
chdir={{ release_theme_path }}
|
||||
creates={{ release_theme_path }}/node_modules
|
||||
|
||||
- name: Generate front-end assets
|
||||
command: >
|
||||
npm run production
|
||||
chdir={{ release_theme_path }}
|
||||
creates={{ release_theme_path }}/dist
|
||||
|
||||
- name: Remove files that are no longer needed
|
||||
file:
|
||||
path: "{{ release_theme_path }}/{{ item }}"
|
||||
state: absent
|
||||
with_items:
|
||||
- node_modules
|
Loading…
Add table
Add a link
Reference in a new issue