From f99330669e177b9e836c16836c3a7217e0fb9c1e Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Tue, 19 May 2020 22:42:32 +0300 Subject: [PATCH] Autoupdate web on package publish --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index eddf7ba..e34b13b 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "doc": "node support/build_doc.js", "gh-doc": "npm run doc && gh-pages -d apidoc -f", "demo": "npm run lint && node support/build_demo.js", - "gh-demo": "npm run demo && gh-pages -d demo -f -b master -r git@github.com:markdown-it/markdown-it.github.io.git" + "gh-demo": "npm run demo && gh-pages -d demo -f -b master -r git@github.com:markdown-it/markdown-it.github.io.git", + "prepublishOnly": "npm run gh-demo && npm run gh-doc" }, "files": [ "index.js",