Merge "Hygiene: add bundlesize test"

This commit is contained in:
jenkins-bot 2018-01-30 23:35:18 +00:00 committed by Gerrit Code Review
commit 83731256d8
2 changed files with 1294 additions and 2 deletions

1285
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -10,11 +10,12 @@
"doc:start": "nodemon --watch src --exec 'npm run doc'",
"check-built-assets": "echo 'CHECKING BUILD SOURCES ARE COMMITED' && rm -rf test-build && mv resources/dist test-build && npm run build && diff -x '*.map' -r test-build resources/dist && rm -rf test-build",
"coverage": "istanbul cover node_modules/.bin/mw-node-qunit tests/node-qunit/*.js tests/node-qunit/**/*.js",
"precommit": "npm run test:dev && npm run build && git add resources/dist"
"precommit": "npm run test:dev && npm run build && git add resources/dist && bundlesize"
},
"devDependencies": {
"babel-preset-env": "^1.6.0",
"babel-register": "^6.24.1",
"bundlesize": "0.15.3",
"eslint-config-wikimedia": "0.5.0",
"grunt": "1.0.1",
"grunt-banana-checker": "0.6.0",
@ -33,5 +34,11 @@
"stylelint-config-wikimedia": "0.4.1",
"tap-dot": "^1.0.5",
"webpack": "^2.6.0"
},
"bundlesize": [
{
"path": "resources/dist/index.js",
"maxSize": "11.2KB"
}
]
}