Rename directory [ci skip]
This commit is contained in:
parent
65c100a812
commit
cf58cc6d23
20 changed files with 14 additions and 14 deletions
19
tools/deployment/includes/build-theme-assets.yml
Normal file
19
tools/deployment/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