Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (13 sloc) 0.439 kB
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, subprocess
links = []
rootdir = os.getcwd()
for root, dirs, files in os.walk(rootdir):
for f in files:
fext = os.path.splitext(f)[1]
if '.js' == fext:
filename = os.path.join(root, f)
compressed = subprocess.check_output(['yui-compressor', filename])
links.append('### %s\n\t%s' % (f, compressed))
print '\n\n'.join(links)
Jump to Line
Something went wrong with that request. Please try again.