Index: packagerChrome.py |
=================================================================== |
--- a/packagerChrome.py |
+++ b/packagerChrome.py |
@@ -24,18 +24,19 @@ |
def getPackageFiles(params): |
result = set(('_locales', 'icons', 'jquery-ui', 'lib', 'skin', 'ui', 'ext')) |
if params['devenv']: |
result.add('qunit') |
baseDir = params['baseDir'] |
+ |
for file in os.listdir(baseDir): |
- if file.endswith('.js') or file.endswith('.html') or file.endswith('.xml'): |
+ if os.path.splitext(file)[1] in {'.json', '.js', '.html', '.xml'}: |
Sebastian Noack
2017/04/06 11:36:12
Nice, that is exactly how I wanted to change this
Jon Sonesen
2017/04/06 12:05:46
Awesome,
Done.
|
result.add(file) |
return result |
def processFile(path, data, params): |
# We don't change anything yet, this function currently only exists here so |
# that it can be overridden if necessary. |
return data |