-
Notifications
You must be signed in to change notification settings - Fork 8
/
wq.yml
36 lines (32 loc) · 959 Bytes
/
wq.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Update version.txt & JS module
setversion:
filename: version.txt {% if with_npm %}
package: app/package.json{% endif %}
# Generate config.js
dump_config:
format: esm{% if with_npm %}
filename: db/{{ project_name }}/static/app/js/data/config.js{% else %}
filename: app/js/data/config.js{% endif %}
# Generate web icons
icons:
source: {% if with_npm %}db/{{ project_name }}/static/{% endif %}app/images/icon-1024.png
filename: {% if with_npm %}db/{{ project_name }}/static/{% endif %}app/images/icon-{size}.png
size: web
# Move public files to root
movefiles:
source: htdocs/static/app/public/*.*
dest: htdocs/
# Generate Service Worker
serviceworker:
output: ./htdocs/service-worker.js
timeout: 400
cache:
- /
- /manifest.json
- /favicon.ico
- /icon-*.png
- /static/app/js/*.js
- /static/app/js/data/*.js
- /static/app/css/*.css
exclude:
- wq.dev.js