Skip to content

Commit

Permalink
New build
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Cray authored and Brian Cray committed Aug 13, 2013
1 parent a52406f commit a52cdef
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 113 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#Pilot.js

A minimalist javascript framework for AMD-based web applications

[pilotjs.com](http://pilotjs.com)
18 changes: 1 addition & 17 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,8 @@ def main():
contents = contents.replace('define(', "define('pilot/%s', " % lib)
output += contents + '\n'

"""
define1 = re.compile(r'define\s*\(\s*([^,\)]+)')
for dirpath, dirnames, filenames in os.walk(os.path.join(BASE_PATH, 'tests')):
for filename in filenames:
print filename
if filename.endswith('.js') and filename != 'pilot.build.js' and filename != 'pilot.js':
with open (os.path.join(dirpath, filename), 'r') as f:
contents = f.read()
for match in define1.finditer(contents):
if match.group(1).find('[') != -1 or (match.group(1).find('"') == -1 and match.group(1).find("'") == -1):
print match.group(1)
contents = contents[:match.start(1)] + '"' + dirpath[len(BASE_PATH) + 1:] + '/' + filename[:-3] + '",' + contents[match.start(1):]
output += contents + '\n'
"""

with open(os.path.join(BASE_PATH, 'pilot.build.js'), 'w') as f:
f.write(output)

if __name__ == '__main__':
if __name__ == '__main__':
main()
Loading

0 comments on commit a52cdef

Please sign in to comment.