diff --git a/package.json b/package.json index 9de3c02..66e3e18 100644 --- a/package.json +++ b/package.json @@ -18,10 +18,12 @@ ], "main": "ua-parser", "scripts": { - "test": "./node_modules/mocha/bin/mocha -R spec" + "test": "./node_modules/mocha/bin/mocha -R spec", + "pretest": "./node_modules/uglify-js/bin/uglifyjs ua-parser.js > ua-parser.min.js" }, "devDependencies": { - "mocha": ">= 1.7.1" + "mocha": ">= 1.7.1", + "uglify-js": ">= 1.3.4" }, "repositories": [ { diff --git a/ua-parser.min.js b/ua-parser.min.js new file mode 100644 index 0000000..174ebe5 --- /dev/null +++ b/ua-parser.min.js @@ -0,0 +1,7 @@ +// UA-Parser.JS v0.4.15 +// Lightweight JavaScript-based User-Agent string parser +// https://github.com/faisalman/ua-parser-js +// +// Copyright © 2012 Faisalman +// Dual licensed under GPLv2 & MIT +(function(e,t){"use strict";var n={regex:function(){var e,n,r,i,s,o,u=arguments;for(n=0;n0){for(var i=0;i