1
0
mirror of /repos/Prototyper.git synced 2025-12-30 06:31:32 +01:00

moved scripts to bin

This commit is contained in:
Aiko Mastboom 2013-05-12 12:51:29 +02:00
parent 3f7c13571b
commit 2269bebdd0
6 changed files with 22 additions and 18 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
current_dir=$(cd $(dirname $0) && pwd)
base_dir=${current_dir}
base_dir=${current_dir}/..
cd ${base_dir}
if [ ! -x ./opt/node-jscoverage/jscoverage ]; then
@ -18,5 +18,6 @@ if [ ! -x ./node_modules/.bin/mocha ]; then
fi
./opt/node-jscoverage/jscoverage lib lib-cov
PROTOTYPER_COV=1 ./node_modules/.bin/mocha -R html-cov > public/coverage.html
PROTOTYPER_COV=1 ./node_modules/.bin/mocha -R html-cov > ./doc/coverage.html
rm -rf lib-cov
echo "coverage.html generated in doc/coverage.html"

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
current_dir=$(cd $(dirname $0) && pwd)
base_dir=${current_dir}
base_dir=${current_dir}/..
cd ${base_dir}
command -v fleet

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
current_dir=$(cd $(dirname $0) && pwd)
base_dir=${current_dir}
base_dir=${current_dir}/..
cd ${base_dir}

View File

@ -5,7 +5,7 @@
set -e
current_dir=$(cd $(dirname $0) && pwd)
base_dir=${current_dir}
base_dir=${current_dir}/..
cd ${base_dir}
@ -81,7 +81,7 @@ if [ ! -f ./knockout-sortable.min.js ]; then
${CURL} https://raw.github.com/rniemeyer/knockout-sortable/master/build/knockout-sortable.min.js
fi
cd ${current_dir}
cd ${base_dir}
# Bootstrap
mkdir -p ./public/lib/bootstrap
@ -92,7 +92,7 @@ fi
if [ ! -f ./bootstrap.min.js ]; then
${CURL} http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js
fi
cd ${current_dir}
cd ${base_dir}
# http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/img/glyphicons-halflings.png
mkdir -p ./public/lib/img
@ -103,7 +103,7 @@ fi
if [ ! -f ./glyphicons-halflings-white.png ]; then
${CURL} http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/img/glyphicons-halflings-white.png
fi
cd ${current_dir}
cd ${base_dir}
# JQuery
mkdir -p ./public/lib/jquery
@ -111,7 +111,7 @@ cd ./public/lib/jquery
if [ ! -f ./jquery.min.js ]; then
${CURL} http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js
fi
cd ${current_dir}
cd ${base_dir}
# SockJS
mkdir -p ./public/lib/sockjs
@ -119,7 +119,7 @@ cd ./public/lib/sockjs
if [ ! -f ./sockjs-0.3.min.js ]; then
${CURL} http://cdn.sockjs.org/sockjs-0.3.min.js
fi
cd ${current_dir}
cd ${base_dir}
# Underscore
mkdir -p ./public/lib/underscore
@ -127,7 +127,7 @@ cd ./public/lib/underscore
if [ ! -f ./underscore-min.js ]; then
${CURL} http://underscorejs.org/underscore-min.js
fi
cd ${current_dir}
cd ${base_dir}
# //cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js
mkdir -p ./public/lib/modernizr
@ -135,7 +135,7 @@ cd ./public/lib/modernizr
if [ ! -f ./modernizr.min.js ]; then
${CURL} http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js
fi
cd ${current_dir}
cd ${base_dir}
# //netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css
mkdir -p ./public/lib/font-awesome
@ -143,7 +143,7 @@ cd ./public/lib/font-awesome
if [ ! -f ./font-awesome.css ]; then
${CURL} http://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css
fi
cd ${current_dir}
cd ${base_dir}
# https://raw.github.com/cloudhead/less.js/master/dist/less-1.3.3.min.js
mkdir -p ./public/lib/lessjs
@ -151,7 +151,7 @@ cd ./public/lib/lessjs
if [ ! -f ./less-1.3.3.min.js ]; then
${CURL} https://raw.github.com/cloudhead/less.js/master/dist/less-1.3.3.min.js
fi
cd ${current_dir}
cd ${base_dir}
if [ ! -d ${HOME}/.prototyper-cache ];then
mkdir -p ${HOME}/.prototyper-cache

View File

@ -38,9 +38,9 @@
"description": "README.md",
"scripts": {
"test": "./node_modules/.bin/mocha",
"install": "./installit",
"deploy": "./deployit",
"doc":"./docit",
"cov": "./coverit"
"install": "./bin/installit",
"deploy": "./bin/deployit",
"doc":"./bin/docit",
"cov": "./bin/coverit"
}
}

View File

@ -57,6 +57,7 @@ var config = {
dev_favicon_path: __dirname + '/public/favicon_dev.ico',
importer_path: __dirname + '/public',
public_path: __dirname + '/public',
doc_path: __dirname + '/doc',
markdown_client: __dirname + '/node_modules/markdown/lib',
ace_client: __dirname + '/node_modules/share/examples/lib/ace',
async_client: __dirname + '/node_modules/async/lib'
@ -77,6 +78,8 @@ if (!process.env.NODE_ENV) {
//noinspection JSUnresolvedFunction
app.use(express.static(config.statics.public_path));
//noinspection JSUnresolvedFunction
app.use('/doc',express.static(config.statics.doc_path));
//noinspection JSUnresolvedFunction
app.use('/lib/markdown', express.static(config.statics.markdown_client));
//noinspection JSUnresolvedFunction
app.use('/lib/ace', express.static(config.statics.ace_client));