Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
22 lines (16 sloc)
649 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script minifies the input scripts and appends the version number, and places the outputs into the /dist folder | |
version = "1.3.4" | |
gpGenieFile = "geoportalGenie" | |
initFile = "init" | |
browseFile = "browse" | |
previewFile = "preview" | |
detailsFile = "details" | |
import os | |
import os.path | |
from subprocess import call | |
for file in [gpGenieFile, initFile, browseFile, previewFile, detailsFile]: | |
filename = file + "-" + version + ".js" | |
print("Minifying " + filename) | |
status = os.system('java -jar yuicompressor-2.4.8.jar ' + file + '.js -o dist/' + filename) | |
if status != 0: | |
print("There was a problem minifying " + file) | |