[#187,make][xs]: minify build command.
This commit is contained in:
parent
5a322e2c7c
commit
8b2a076387
10
make
10
make
@ -28,6 +28,13 @@ def docs():
|
||||
os.system('cd /tmp/recline-docs && %s %s && mv docs/* %s' % (docco_executable,files, dest))
|
||||
print("** Docs built ok")
|
||||
|
||||
def minify():
|
||||
cmd = 'uglifyjs -o %s %s' % ('dist/recline.min.js', 'dist/recline.js')
|
||||
os.system(cmd)
|
||||
|
||||
cmd = 'uglifyjs -o %s %s' % ('dist/recline.dataset.min.js', 'dist/recline.dataset.js')
|
||||
os.system(cmd)
|
||||
|
||||
if __name__ == '__main__':
|
||||
if not len(sys.argv) > 1:
|
||||
print 'make cat | docs | all'
|
||||
@ -37,7 +44,10 @@ if __name__ == '__main__':
|
||||
cat()
|
||||
elif action == 'docs':
|
||||
docs()
|
||||
elif action == 'minify':
|
||||
minify()
|
||||
elif action == 'all':
|
||||
cat()
|
||||
docs()
|
||||
minify()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user