fix build.py (dont include _* and locale files in json)
This commit is contained in:
parent
a1f1138b22
commit
83f4282917
1 changed files with 3 additions and 0 deletions
|
@ -162,6 +162,7 @@ def build_oxjs(downloads=False, geo=False):
|
||||||
for filename in sorted(os.listdir(source_path + js_dir)):
|
for filename in sorted(os.listdir(source_path + js_dir)):
|
||||||
if not filename in filenames \
|
if not filename in filenames \
|
||||||
and not filename.startswith('.') \
|
and not filename.startswith('.') \
|
||||||
|
and not filename.startswith('_') \
|
||||||
and not filename.endswith('~'):
|
and not filename.endswith('~'):
|
||||||
filenames.append(filename)
|
filenames.append(filename)
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
|
@ -191,12 +192,14 @@ def build_oxjs(downloads=False, geo=False):
|
||||||
for path, dirnames, filenames in os.walk(root):
|
for path, dirnames, filenames in os.walk(root):
|
||||||
for filename in sorted(filenames):
|
for filename in sorted(filenames):
|
||||||
# jquery gets included by Ox.UI loader
|
# jquery gets included by Ox.UI loader
|
||||||
|
# locale json files are loaded lazily
|
||||||
# Ox.UI.css imports all other css files
|
# Ox.UI.css imports all other css files
|
||||||
# svgs are loaded as URLs or dataURLs
|
# svgs are loaded as URLs or dataURLs
|
||||||
# browser images appear before load
|
# browser images appear before load
|
||||||
if path != root and not '_' in path and not filename[0] in '._' \
|
if path != root and not '_' in path and not filename[0] in '._' \
|
||||||
and not filename.endswith('~') \
|
and not filename.endswith('~') \
|
||||||
and not 'jquery' in filename \
|
and not 'jquery' in filename \
|
||||||
|
and not 'locale' in filename \
|
||||||
and not filename.endswith('theme.css') \
|
and not filename.endswith('theme.css') \
|
||||||
and not filename.endswith('.svg') \
|
and not filename.endswith('.svg') \
|
||||||
and not filename.startswith('browser'):
|
and not filename.startswith('browser'):
|
||||||
|
|
Loading…
Add table
Reference in a new issue