2020-04-06 10:23:24 +02:00
|
|
|
#! /usr/bin/env python3
|
2018-10-01 14:48:44 +02:00
|
|
|
|
2020-10-22 19:56:52 +02:00
|
|
|
import argparse
|
2018-10-01 14:48:44 +02:00
|
|
|
import os
|
|
|
|
|
2020-10-22 19:56:52 +02:00
|
|
|
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()
|
|
|
|
|
2018-10-01 14:48:44 +02:00
|
|
|
for dirname in sorted(os.listdir('static')):
|
|
|
|
config = os.path.join('static', dirname, 'config.json')
|
|
|
|
if not os.path.exists(config):
|
|
|
|
continue
|
2020-04-06 10:23:24 +02:00
|
|
|
print('static/%s/style.css' % dirname)
|
2020-10-22 19:56:52 +02:00
|
|
|
if args.map_files:
|
|
|
|
print('static/%s/style.css.map' % dirname)
|
2020-12-04 16:18:32 +01:00
|
|
|
if os.path.exists(os.path.join('static', dirname, 'backoffice.scss')):
|
|
|
|
print('static/%s/backoffice.css' % dirname)
|
2020-10-22 19:56:52 +02:00
|
|
|
if args.map_files:
|
|
|
|
print('static/%s/backoffice.css.map' % dirname)
|