Skip to content
Snippets Groups Projects
Commit 085742dd authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

ExtJS 4.2: Use the ExtJS naming scheme for js files.

parent 449d752f
No related branches found
No related tags found
No related merge requests found
Showing
with 10 additions and 8 deletions
...@@ -268,10 +268,14 @@ def yuicompressor(): ...@@ -268,10 +268,14 @@ def yuicompressor():
if os.path.exists(el): if os.path.exists(el):
os.remove(el) os.remove(el)
print 'Remove javascript library', el print 'Remove javascript library', el
# debug version of the javascript library # debug version of the javascript library
print 'Debug version of the javascript library', JSLIBDEBUG print 'Debug version of the javascript library', JSLIBDEBUG
subprocess.call('cat %s/*.js > %s' % (JSLIBSRC, JSLIBDEBUG), shell=True)
subprocess.call("find %s -iname '*.js' | sort > JsFiles.txt" % JSLIBSRC, shell=True)
jsfiles = ' '.join(open("JsFiles.txt").readlines()).replace('\n', '')
subprocess.call("cat %s > %s" % (jsfiles, JSLIBDEBUG), shell=True)
os.remove("JsFiles.txt")
# Minified version of the javascript library # Minified version of the javascript library
print 'Minified version of the javascript library', JSLIBMIN print 'Minified version of the javascript library', JSLIBMIN
......
...@@ -297,10 +297,8 @@ def get_file_paths(path, ext=None, alpha=True): ...@@ -297,10 +297,8 @@ def get_file_paths(path, ext=None, alpha=True):
elif os.path.isdir(p): elif os.path.isdir(p):
for file in os.listdir(p): for file in os.listdir(p):
pfile = os.path.join(server_path, el, file) pfile = os.path.join(el, file)
if os.path.isfile(pfile): li.extend(get_file_paths(pfile, ext, alpha))
if ext and (not pfile.endswith(ext)): continue
li.append(os.path.join(client_path, el, file))
if alpha: if alpha:
li.sort() li.sort()
...@@ -558,7 +556,7 @@ def get_versions(): ...@@ -558,7 +556,7 @@ def get_versions():
server_path, client_path = get_reference_paths() server_path, client_path = get_reference_paths()
# plugin dbui # plugin dbui
fn = os.path.join(server_path, 'static', 'plugin_dbui', 'src', 'base.js') fn = os.path.join(server_path, 'static', 'plugin_dbui', 'src', 'App.js')
fi = open(fn, 'rb') fi = open(fn, 'rb')
s = fi.read() s = fi.read()
......
File moved
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* by a regular expression object. * by a regular expression object.
* *
*/ */
Ext.define('App.form.plugin.PRegExp', { Ext.define('App.form.plugin.RegExp', {
extend: 'Ext.AbstractPlugin', extend: 'Ext.AbstractPlugin',
alias: 'plugin.pRegExp', alias: 'plugin.pRegExp',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment