Added build command with package.json

This commit is contained in:
Jimmy Wärting
2016-05-25 23:33:42 +02:00
parent 3247084327
commit 89a12bd9ac
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -4,7 +4,8 @@
"description": "An HTML5 saveAs() FileSaver implementation",
"main": "FileSaver.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 0"
"test": "echo \"Error: no test specified\" && exit 0",
"build": "node_modules/.bin/uglifyjs FileSaver.js --mangle --comments /@source/ > FileSaver.min.js"
},
"repository": {
"type": "git",
@@ -20,5 +21,8 @@
"bugs": {
"url": "https://github.com/eligrey/FileSaver.js/issues"
},
"homepage": "https://github.com/eligrey/FileSaver.js#readme"
"homepage": "https://github.com/eligrey/FileSaver.js#readme",
"devDependencies": {
"uglify-js": "^2.6.2"
}
}