Run build via babel

This commit is contained in:
Alexey
2018-01-13 08:37:02 +00:00
parent b4a918669a
commit d7f5db3244
6 changed files with 2814 additions and 14 deletions
+7 -3
View File
@@ -2,10 +2,11 @@
"name": "file-saver",
"version": "1.3.4",
"description": "An HTML5 saveAs() FileSaver implementation",
"main": "FileSaver.js",
"main": "es/FileSaver.js",
"module": "src/FileSaver.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 0",
"build": "node_modules/.bin/uglifyjs FileSaver.js --mangle --comments /@source/ > FileSaver.min.js"
"build": "NODE_ENV=production babel src --out-dir=es"
},
"repository": {
"type": "git",
@@ -23,6 +24,9 @@
},
"homepage": "https://github.com/eligrey/FileSaver.js#readme",
"devDependencies": {
"uglify-js": "^2.6.2"
"babel-cli": "^6.26.0",
"babel-plugin-transform-es2015-modules-umd": "^6.24.1",
"babel-preset-env": "^1.6.1",
"babel-preset-minify": "^0.2.0"
}
}