Browse Source

use banner at build time

pull/512/head
Joe Germuska 12 years ago
parent
commit
7fcce557e4
  1. 2
      config.json
  2. 2
      fabfile/__init__.py

2
config.json

@ -137,7 +137,7 @@
// banner-ize files
// input: list of file paths
//
"banner": [ ]
"banner": [ "build/js", "build/css" ]
},
//
// stage

2
fabfile/__init__.py

@ -194,7 +194,7 @@ def banner(conf):
def _do(file_path):
puts(' %s' % file_path)
with open(file_path, 'r+') as fd:
with _open_file(file_path, 'r+') as fd:
s = fd.read()
fd.seek(0)
fd.write(_banner_text+s)

Loading…
Cancel
Save