// // TimelineJS3 configuration // // All file/directory paths are relative to the project directory. // // Regular expressions are in python regular expression format, but backslashes // must be escaped for JSON. When used to match files, matching will take // place against the the file/directory path realtive to the project directory. // { // // name of the project as it will appear in the cdn and css/js banners // "name": "timeline3", // // author string to appear in css/js banners // "author": "Northwestern University Knight Lab", // // build // // These commands will be run the exact order in which they appear. // This order is determined in code by fabfile/__init__.py. // "build": { // copy files // input: list of objects specifying inputs and outputs // @src: source file/directory // @dst: destination file/directory // @regex: regular expression to match files (if @src is directory) // "copy": [ { "src": "website", "dst": "build", "regex": "(css/.*|img/.*|js/.*|.*\\.(ico))$" }, { "src": "source", "dst": "build", "regex": "(css/.*|img/.*|.*\\.(ico|html)|gfx/.*\\.(png|jpg|gif))$" }, { "src": "source/js/language/locale", "dst": "build/js/locale", "regex": ".*\\.json" }, { "src": "source/embed", "dst": "build/embed" } ], // compile less files // input: list of objects specifying inputs and output // input: list of objects, where // @src: source file/directory // @dst: destination file/directory // @regex: regular expression to match files (if @src is directory) // @opt: options to pass to lessc "lessc": [ { "src": "source/less/TL.Timeline.less", "dst": "build/css/timeline.css", "opt": "--clean-css=--s0" }, { "src": "source/less/themes/dark/TL.Theme.Dark.less", "dst": "build/css/themes/timeline.theme.dark.css", "opt": "--clean-css=--s0" }, { "src": "source/less/fonts", "dst": "build/css/fonts", "regex": ".*(?