Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: packagerChrome.py

Issue 29404598: Issue 5113 - Adds support for json files to packagerChrome in top level dir (Closed)
Patch Set: Created April 6, 2017, 10:57 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld