diff --git a/installit b/installit new file mode 100755 index 0000000..e67d30d --- /dev/null +++ b/installit @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +# TODO: rewrite in node + +set -e + +current_dir=$(cd $(dirname $0) && pwd) +cd ${current_dir} + +mkdir -p ./public/lib/knockout +if [ ! -f ./public/lib/knockout/knockout.mapping-latest.js ]; then + cd ./public/lib/knockout + curl -O https://raw.github.com/SteveSanderson/knockout.mapping/master/build/output/knockout.mapping-latest.js + cd ${current_dir} +fi + + diff --git a/package.json b/package.json index daa6568..e84eba4 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ }, "description": "README.md", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "install": "./installit" } } diff --git a/public/index.html b/public/index.html index b2aea6f..196abe0 100644 --- a/public/index.html +++ b/public/index.html @@ -29,7 +29,7 @@ Editing index