diff --git a/.gitignore b/.gitignore index 2cbe713e..56f45cc2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules/* npm-debug.log +gun.min.js yarn.lock *data.json *.db diff --git a/package.json b/package.json index 18e8b3f1..b5969385 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "main": "index.js", "scripts": { "start": "node examples/http.js 8080", + "prepublish": "uglifyjs2 gun.js -o gun.min.js -c -m", "test": "mocha", "unbuild": "node lib/unbuild.js" }, @@ -49,9 +50,10 @@ "ws": "~>1.0.1" }, "devDependencies": { - "mocha": "~>1.9.0", "express": "~>4.13.4", + "mocha": "~>1.9.0", "panic-server": "~>0.3.0", - "selenium-webdriver": "~>2.53.2" + "selenium-webdriver": "~>2.53.2", + "uglify-js2": "^2.1.11" } }