Skip to content

Commit

Permalink
feat: add bundle size check to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Divyendu Singh committed Aug 1, 2018
1 parent aa117e4 commit ebe8741
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"files": [
"dist"
],
"bundlesize": [
{
"path": "./dist/src/index.js",
"maxSize": "15 kB"
}
],
"repository": {
"type": "git",
"url": "git+https://github.com/graphcool/graphql-request.git"
Expand All @@ -27,12 +33,14 @@
"prepublish": "npm run build",
"build": "rm -rf dist && tsc -d",
"lint": "tslint --type-check --project tsconfig.json {src,test}/**/*.ts",
"test": "npm run lint && npm run build && ava --serial"
"test": "npm run lint && npm run build && ava --serial && npm run size",
"size": "bundlesize"
},
"devDependencies": {
"@types/fetch-mock": "5.12.2",
"@types/node": "8.5.5",
"ava": "0.25.0",
"bundlesize": "0.17.0",
"fetch-mock": "5.13.1",
"graphql-tag": "2.9.2",
"tslint": "5.9.1",
Expand Down

0 comments on commit ebe8741

Please sign in to comment.