Commit 391d6fc1 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

build_version compile the track_publication javascript library.

parent 6ee4375a
......@@ -36,6 +36,7 @@ from subprocess import call
APP = os.path.basename(os.getcwd())
API = 'api'
CHANGELOG = 'static/CHANGELOG'
DBUISRC = 'static/plugin_dbui/src'
DOCS = 'static/docs'
DOCSRC = 'docs'
EXTJSSRC = 'static/plugin_extjs/src'
......@@ -202,22 +203,20 @@ def compile_js():
print 'Remove old javascript library', item
# debug version of the javascript library
cwd = os.getcwd()
cmd = ["sencha", "-sdk", opj(cwd, EXTJSSRC),
"compile", "-class", opj(cwd, JSLIBSRC),
"exclude", "--namespace", "Ext",
"and", "concat", opj(cwd, JSLIBDEBUG)]
cmd = ["sencha", "-sdk", EXTJSSRC,
"compile", "-classpath", "%s,%s" % (JSLIBSRC, DBUISRC),
"exclude", "--namespace", "Ext,App",
"and", "concat", JSLIBDEBUG]
call(cmd)
print 'Debug version of the javascript library', JSLIBDEBUG, 'is ready'
# Minified version of the javascript library
cmd = ["sencha", "-sdk", opj(cwd, EXTJSSRC),
"compile", "-class", opj(cwd, JSLIBSRC),
"exclude", "--namespace", "Ext",
"and", "concat", "--yui", opj(cwd, JSLIBMIN)]
cmd = ["sencha", "-sdk", EXTJSSRC,
"compile", "-classpath", "%s,%s" % (JSLIBSRC, DBUISRC),
"exclude", "--namespace", "Ext,App",
"and", "concat", "--yui", JSLIBMIN]
call(cmd)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment