Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tamat committed Oct 5, 2023
1 parent 44e49ac commit a729b07
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions utils/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import argparse
from datetime import date

compiler_path = "../node_modules/google-closure-compiler-java/compiler.jar"
compiler_path = "../node_modules/google-closure-compiler/compiler.jar"
root_path = "./"

#arguments
parser = argparse.ArgumentParser(description='Deploy a JS app creating a minifyed version checking for errors.')
parser.add_argument('input_file',
parser.add_argument('input_file',
help='the path to the file with a list of all the JS files')

parser.add_argument('-o', dest='output_file', action='store',
Expand All @@ -20,7 +20,7 @@
default=None,
help='Specify an output for the full code version')

#parser.add_argument('output_file',
#parser.add_argument('output_file',
# help='the filename where to save the min version')

parser.add_argument('--all', dest='all_files', action='store_const',
Expand All @@ -43,7 +43,7 @@
def packJSCode(files):
f1, fullcode_path = tempfile.mkstemp() #create temporary file
data = "//packer version\n\n"

for filename in files:
filename = filename.strip()
if len(filename) == 0 or filename[0] == "#":
Expand All @@ -57,10 +57,10 @@ def packJSCode(files):
if check_files_individually:
os.system("java -jar %s --js %s --js_output_file %s" % (compiler_path, src_file, "temp.js") )
sys.stderr.write('\033[92m' + "OK\n" + '\033[0m')

os.write(f1,data)
os.close(f1)

#print " + Compiling all..."
#os.system("java -jar %s --js %s --js_output_file %s" % (compiler_path, fullcode_path, output_file) )
#print " * Done"
Expand Down

0 comments on commit a729b07

Please sign in to comment.