From a2a56d3bc9849cc375bcf9370b40655bef58881d Mon Sep 17 00:00:00 2001 From: dsc Date: Tue, 1 Mar 2011 18:12:00 -0800 Subject: [PATCH] Adds build compression on deploy. --- data/types/levels.yaml | 4 +- pavement.py | 14 +++++++- src/evt.cjs | 14 ++++---- src/tanks/constants.cjs | 7 +++- src/tanks/map/pathing/map-blockers.cjs | 4 ++- src/tanks/map/pathing/map-pathing.cjs | 4 ++- src/tanks/map/pathing/traversal.cjs | 7 +++- src/tanks/thing/accessory.cjs | 61 ++++++++++++++++++++++++++++++++ src/tanks/thing/bullet.cjs | 6 ++- src/tanks/thing/index.cjs | 21 ++++++++--- src/tanks/thing/thing.cjs | 6 +++- src/tanks/ui/grid.cjs | 3 +- src/tanks/ui/pathmapui.cjs | 2 +- 13 files changed, 127 insertions(+), 26 deletions(-) create mode 100644 src/tanks/thing/accessory.cjs diff --git a/data/types/levels.yaml b/data/types/levels.yaml index 35c38e8..537e832 100644 --- a/data/types/levels.yaml +++ b/data/types/levels.yaml @@ -143,10 +143,10 @@ types: align: 2 loc: [775,325] items: + # - type: rockets # right next to start + # loc: [325,475] - type: rockets loc: [75,275] - - type: rockets - loc: [325,475] - type: nitro loc: [325,25] diff --git a/pavement.py b/pavement.py index 01d62e3..dd1cb39 100755 --- a/pavement.py +++ b/pavement.py @@ -3,6 +3,7 @@ from paver.easy import * import yaml, json, os, sys, re from termcolor import colored +APP_FILE = 'lttlst.min.js' BUILD_DIR = path('build') SRC_DIRS = [ path('src')/d for d in ('Y', 'ezl', 'tanks') ] DATA_DIR = path('data') @@ -116,6 +117,9 @@ def update_version(): f.write(tags.replace('src="build/', 'src="build/{}/'.format(git_version))) with path('build/versioned-build.html').open('w') as f: f.write('\n'.format(git_version)) + with path('build/versioned-app.html').open('w') as f: + f.write('