From ed7b66ab8f99c8380e73b55c8cae8eb28a8abd51 Mon Sep 17 00:00:00 2001
From: Remi Planel <rplanel@pasteur.fr>
Date: Fri, 24 May 2019 17:19:39 +0200
Subject: [PATCH] Add scripts command to publish

---
 package.json | 23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

diff --git a/package.json b/package.json
index 160e1a8..b32b1b7 100644
--- a/package.json
+++ b/package.json
@@ -2,16 +2,33 @@
   "name": "bioviz-js",
   "version": "0.1.0",
   "description": "Library to visualize biological data",
-  "main": "src/scripts/index.js",
+  "main": "./lib/index.js",
   "repository": "git@gitlab.pasteur.fr:rplanel/bioviz-js.git",
   "author": "Remi Planel <rplanel@pasteur.fr>",
   "license": "MIT",
+  "types": "./lib/index.d.ts",
+  "files": [
+    "lib/**/*"
+  ],
+  "keywords": [
+    "D3",
+    "bioinformatics",
+    "dataviz",
+    "visualization"
+  ],
   "scripts": {
+    "prepare": "npm run compile",
+    "prepublishOnly": "npm test && npm run lint",
+    "preversion": "npm run lint",
+    "version": "npm run format && git add -A src",
+    "postversion": "git push && git push --tags",
     "dev": "parcel src/scripts/index.ts",
     "start": "parcel src/index.html",
     "watch": "parcel watch ./src/index.html",
     "build": "parcel build ./src/index.html",
-    "compile": "tsc"
+    "compile": "tsc",
+    "lint": "tslint -p tsconfig.json",
+    "test": "echo \"No test specified, not cool :(\" && exit 0"
   },
   "devDependencies": {
     "rxjs-tslint": "^0.1.7",
@@ -31,4 +48,4 @@
     "rxjs": "^6.4.0",
     "tslint": "^5.15.0"
   }
-}
+}
\ No newline at end of file
-- 
GitLab