44import argparse
55from datetime import date
66
7- compiler_path = "../node_modules/google-closure-compiler-java /compiler.jar"
7+ compiler_path = "../node_modules/google-closure-compiler/compiler.jar"
88root_path = "./"
99
1010#arguments
1111parser = argparse .ArgumentParser (description = 'Deploy a JS app creating a minifyed version checking for errors.' )
12- parser .add_argument ('input_file' ,
12+ parser .add_argument ('input_file' ,
1313 help = 'the path to the file with a list of all the JS files' )
1414
1515parser .add_argument ('-o' , dest = 'output_file' , action = 'store' ,
2020 default = None ,
2121 help = 'Specify an output for the full code version' )
2222
23- #parser.add_argument('output_file',
23+ #parser.add_argument('output_file',
2424# help='the filename where to save the min version')
2525
2626parser .add_argument ('--all' , dest = 'all_files' , action = 'store_const' ,
4343def packJSCode (files ):
4444 f1 , fullcode_path = tempfile .mkstemp () #create temporary file
4545 data = "//packer version\n \n "
46-
46+
4747 for filename in files :
4848 filename = filename .strip ()
4949 if len (filename ) == 0 or filename [0 ] == "#" :
@@ -57,10 +57,10 @@ def packJSCode(files):
5757 if check_files_individually :
5858 os .system ("java -jar %s --js %s --js_output_file %s" % (compiler_path , src_file , "temp.js" ) )
5959 sys .stderr .write ('\033 [92m' + "OK\n " + '\033 [0m' )
60-
60+
6161 os .write (f1 ,data )
6262 os .close (f1 )
63-
63+
6464 #print " + Compiling all..."
6565 #os.system("java -jar %s --js %s --js_output_file %s" % (compiler_path, fullcode_path, output_file) )
6666 #print " * Done"
0 commit comments