doit: add clean

This commit is contained in:
codl 2017-08-11 16:42:27 +02:00
parent dd212ce1c3
commit 431ef30bfc
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@ def task_gen_logo():
'targets': [f'static/logotype-{width}.png' for width in widths]\
+ ['static/logotype.png'],
'file_dep': ['assets/logotype.png'],
'clean': True,
}
def task_copy_icon():
@ -27,6 +28,7 @@ def task_copy_icon():
'actions': [lambda: shutil.copy('assets/icon.png', 'static/icon.png')],
'targets': ['static/icon.png'],
'file_dep': ['assets/icon.png'],
'clean': True,
}
def task_minify_css():
@ -43,6 +45,7 @@ def task_minify_css():
'actions': [minify],
'targets': ['static/styles.css'],
'file_dep': ['assets/styles.css'],
'clean': True,
}
if __name__ == '__main__':