Skip to content

Commit

Permalink
use common fablib; use timestamp as default version; commit/push buil…
Browse files Browse the repository at this point in the history
…d directory; custom banner on config.json
  • Loading branch information
jywsn committed Sep 26, 2013
1 parent d2163e8 commit fb0ab39
Show file tree
Hide file tree
Showing 24 changed files with 50 additions and 7,117 deletions.
22 changes: 20 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,27 @@
],
//
// banner-ize files
// input: list of file paths
// input: list of objects specifying inputs
// @src: source file/directory
// @regex: regular expression to match files (if @src is directory)
// @template: template to use for banner (optional)
//
"banner": [ "build/js", "build/css" ]
"banner": [
{
"src": "build",
"regex": "(js|css)/.*\\.(css|js)$",
"template": [
"/*",
" TimelineJS - ver. %(version)s - %(date)s",
" Copyright (c) 2012-2013 Northwestern University",
" a project of the Northwestern University Knight Lab, originally created by Zach Wise",
" https://github.com/NUKnightLab/TimelineJS",
" This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.",
" If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.",
"*/"
]
}
]
},
//
// stage
Expand Down
29 changes: 29 additions & 0 deletions fabfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
from os.path import abspath, basename, dirname, join
import sys
from fabric.api import env

#
# Project-specific settings, alter as needed
#
# env.project_name = basename(dirname(__file__))
env.project_name = 'TimelineJS'

#
# Add paths
#
def add_paths(*args):
"""Make paths are in sys.path."""
for p in args:
if p not in sys.path:
sys.path.append(p)

project_path = dirname(abspath(__file__))
repos_path = dirname(project_path)
fablib_path = join(repos_path, 'fablib')

add_paths(project_path, repos_path, fablib_path)

#
# Import from fablib
#
from fablib import *
224 changes: 0 additions & 224 deletions fabfile/S3/ACL.py

This file was deleted.

92 changes: 0 additions & 92 deletions fabfile/S3/AccessLog.py

This file was deleted.

Loading

0 comments on commit fb0ab39

Please sign in to comment.