2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Merge pull request #987 from siddharthkp/master

Add bundlesize to test
This commit is contained in:
Nick Uraltsev
2017-09-27 20:53:40 -07:00
committed by GitHub
+9 -2
View File
@@ -4,7 +4,7 @@
"description": "Promise based HTTP client for the browser and node.js", "description": "Promise based HTTP client for the browser and node.js",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "grunt test", "test": "grunt test && bundlesize",
"start": "node ./sandbox/server.js", "start": "node ./sandbox/server.js",
"build": "NODE_ENV=production grunt build", "build": "NODE_ENV=production grunt build",
"preversion": "npm test", "preversion": "npm test",
@@ -31,6 +31,7 @@
}, },
"homepage": "https://github.com/mzabriskie/axios", "homepage": "https://github.com/mzabriskie/axios",
"devDependencies": { "devDependencies": {
"bundlesize": "^0.5.7",
"coveralls": "^2.11.9", "coveralls": "^2.11.9",
"es6-promise": "^4.0.5", "es6-promise": "^4.0.5",
"grunt": "^1.0.1", "grunt": "^1.0.1",
@@ -74,5 +75,11 @@
"dependencies": { "dependencies": {
"follow-redirects": "^1.2.3", "follow-redirects": "^1.2.3",
"is-buffer": "^1.1.5" "is-buffer": "^1.1.5"
} },
"bundlesize": [
{
"path": "./dist/axios.min.js",
"threshold": "5kB"
}
]
} }