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: remove ignore file changes Created April 6, 2017, 12:29 p.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
@@ -18,24 +18,25 @@
defaultLocale = 'en_US'
def getIgnoredFiles(params):
return {'store.description'}
def getPackageFiles(params):
- result = set(('_locales', 'icons', 'jquery-ui', 'lib', 'skin', 'ui', 'ext'))
+ result = {'_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'}:
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