From da2e8fa76a1e6daa1c0981c9bb54e04aa2674c98 Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Tue, 15 Sep 2015 14:47:43 +0200 Subject: Add git revision to web-ui on build - Issue #453 --- web-ui/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'web-ui/package.json') diff --git a/web-ui/package.json b/web-ui/package.json index 95d3ae72..8e862c3e 100644 --- a/web-ui/package.json +++ b/web-ui/package.json @@ -31,12 +31,13 @@ "handlebars-watch": "node_modules/.bin/watch 'npm run handlebars' app/templates", "compass": "compass compile", "compass-watch": "compass watch", - "build": "npm run clean && npm run handlebars && npm run compass", + "build": "npm run clean && npm run handlebars && npm run add_git_version && npm run compass", "jshint": "jshint --config=.jshintrc app test", "clean": "rm -rf .tmp/ dist/**/* app/js/generated/hbs/* app/css/*", "buildmain": "node_modules/requirejs/bin/r.js -o config/buildoptions.js", "package": "/bin/bash config/package.sh", "imagemin": "node config/imagemin.js", - "minify_html": "node_modules/.bin/html-minifier app/index.html --collapse-whitespace | sed 's|.*||' > dist/index.html" + "minify_html": "node_modules/.bin/html-minifier app/index.html --collapse-whitespace | sed 's|.*||' > dist/index.html", + "add_git_version": "/bin/bash config/add_git_version.sh" } } -- cgit v1.2.3