mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-24 07:34:11 +00:00
Merge "Hygiene: add bundlesize test"
This commit is contained in:
commit
83731256d8
1285
package-lock.json
generated
1285
package-lock.json
generated
File diff suppressed because it is too large
Load diff
11
package.json
11
package.json
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue