From d01af0222ae2e973f394e60fd18413538e9819b6 Mon Sep 17 00:00:00 2001 From: Erik Krogh Kristensen Date: Mon, 16 May 2016 12:32:52 +0200 Subject: [PATCH] Added minimization script, and minified version to the npm package. Also 0.1.7 --- bower.json | 2 +- package.json | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bower.json b/bower.json index 36dbd83..e976d1c 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "angular-materialize", - "version": "0.1.6", + "version": "0.1.7", "main": "src/angular-materialize.js", "ignore": [ "**/.*", diff --git a/package.json b/package.json index 35e02d4..a074367 100644 --- a/package.json +++ b/package.json @@ -2,15 +2,20 @@ "name": "angular-materialize", "description": "Angularjs directives for Materialize CSS Framework", "author": "@krescruz", - "version": "0.1.6", + "version": "0.1.7", "license": "MIT", "repository": "https://github.com/krescruz/angular-materialize", "main": "src/index.js", + "scripts": { + "min": "uglifyjs src/angular-materialize.js > src/angular-materialize.min.js", + "prepublish": "npm run min" + }, "dependencies": { "node-materialize": "https://github.com/ryepdx/node-materialize/tarball/master" }, "devDependencies": { "grunt": "^0.4.5", - "grunt-contrib-connect": "^0.9.0" + "grunt-contrib-connect": "^0.9.0", + "uglify-js": "^3.0.1" } }