build: remove generated css files on make clean (#47476) #277
2
Makefile
2
Makefile
|
@ -54,6 +54,8 @@ clean:
|
|||
rm -rf sdist
|
||||
rm -f src/tmp-*.svg
|
||||
rm -f static/*/_data_uris.scss
|
||||
-rm $$(python3 get_themes.py --include-map-files)
|
||||
-rm static/portal-agent/css/agent-portal.css static/portal-agent/css/agent-portal.css.map static/includes/gadjo-extra.css static/includes/gadjo-extra.css.map
|
||||
|
||||
DIST_FILES = \
|
||||
Makefile \
|
||||
|
|
|
@ -1,11 +1,21 @@
|
|||
#! /usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import os
|
||||
|
||||
parser = argparse.ArgumentParser(description='Display list of generated CSS files')
|
||||
parser.add_argument('--include-map-files', dest='map_files', action='store_true', help='include .map files')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
for dirname in sorted(os.listdir('static')):
|
||||
config = os.path.join('static', dirname, 'config.json')
|
||||
if not os.path.exists(config):
|
||||
continue
|
||||
print('static/%s/style.css' % dirname)
|
||||
if args.map_files:
|
||||
print('static/%s/style.css.map' % dirname)
|
||||
if os.path.exists(os.path.join('static', dirname, 'backoffice.scss')):
|
||||
print('static/%s/backoffice.css' % dirname)
|
||||
if args.map_files:
|
||||
print('static/%s/backoffice.css.map' % dirname)
|
||||
|
|
Loading…
Reference in New Issue