From 208a1279dc9ed66a3a2127332c9e187410ab4aff Mon Sep 17 00:00:00 2001 From: Jonas Coch Date: Wed, 26 Jul 2017 16:09:47 +0200 Subject: [PATCH] Add npm version scripts As per https://docs.npmjs.com/cli/version --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ba179ee..38325bb 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,11 @@ "type": "git", "url": "https://github.com/iosphere/elm-i18n.git" }, - "scripts": {}, + "scripts": { + "preversion": "make test && make lint-js", + "version": "make dist && git add -A dist", + "postversion": "git push && git push --tags" + }, "author": [{ "name": "iosphere GmbH", "url": "https://iosphere.de"