2015-06-20 05:09:03 +00:00
|
|
|
{
|
2022-04-15 05:34:13 +00:00
|
|
|
"name": "Popups",
|
2019-08-15 19:39:26 +00:00
|
|
|
"private": true,
|
|
|
|
"scripts": {
|
2019-12-12 21:08:22 +00:00
|
|
|
"storybook": "./.storybook/storybook-resources.sh && start-storybook --config-dir=.storybook -p 6006 -s .storybook/static",
|
|
|
|
"build-storybook": "./.storybook/storybook-resources.sh && build-storybook --config-dir=.storybook -o docs/ui -s .storybook/static",
|
2019-08-15 19:39:26 +00:00
|
|
|
"start": "webpack -w --mode=development",
|
|
|
|
"build": "webpack --mode=production",
|
2021-07-22 04:26:30 +00:00
|
|
|
"test": "npm -s run check-built-assets && npm run test:lint && bash ./dev-scripts/svg_check.sh && npm -s run coverage && npm -s run doc && bundlesize",
|
2023-08-09 20:50:45 +00:00
|
|
|
"test:unit": "mw-node-qunit \"tests/node-qunit/**/*.test.js\" --require \"$PWD/tests/node-qunit/run.js\" | tap-mocha-reporter dot",
|
2021-04-20 20:46:13 +00:00
|
|
|
"test:lint": "npm -s run test:lint:styles && npm -s run test:lint:js && npm -s run test:lint:i18n",
|
|
|
|
"test:lint:js": "npm -s run linter:js",
|
|
|
|
"test:lint:styles": "npm -s run linter:styles",
|
|
|
|
"test:lint:i18n": "banana-checker --requireLowerCase=0 i18n/",
|
2019-08-15 19:39:26 +00:00
|
|
|
"check-built-assets": "echo 'CHECKING BUILD SOURCES ARE COMMITTED OR STAGED' && npm -s run build && git diff --exit-code resources/dist || { npm run node-debug; false; }",
|
2023-06-15 15:53:39 +00:00
|
|
|
"coverage": "nyc --reporter=lcov npm -s run test:unit",
|
2024-01-12 18:41:53 +00:00
|
|
|
"doc": "jsdoc -c jsdoc.json # SKIPPED! && npm run build-storybook",
|
2021-08-12 16:10:23 +00:00
|
|
|
"linter:js": "eslint --cache .",
|
2023-08-09 20:50:45 +00:00
|
|
|
"linter:styles": "stylelint \"src/**/*.less\"",
|
2022-02-27 10:53:41 +00:00
|
|
|
"minify-svg": "svgo --config=.svgo.config.js --quiet --recursive --folder resources/ext.popups.images/",
|
2021-04-20 20:46:13 +00:00
|
|
|
"node-debug": "node -v && npm -v && echo 'Please ensure you are running the correct version of nvm before running this command.'",
|
2019-08-15 19:39:26 +00:00
|
|
|
"precommit": "npm -s t",
|
|
|
|
"selenium-daily": "npm run selenium-test",
|
|
|
|
"selenium-test": "wdio tests/selenium/wdio.conf.js"
|
|
|
|
},
|
|
|
|
"engines": {
|
2024-01-12 18:41:53 +00:00
|
|
|
"node": "18.17.0"
|
2019-08-15 19:39:26 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2024-01-12 18:41:53 +00:00
|
|
|
"@babel/core": "7.22.20",
|
|
|
|
"@babel/plugin-transform-private-property-in-object": "7.23.4",
|
2021-06-17 16:46:56 +00:00
|
|
|
"@babel/plugin-transform-runtime": "7.15.0",
|
2019-08-15 19:39:26 +00:00
|
|
|
"@babel/preset-env": "7.2.0",
|
|
|
|
"@babel/register": "7.0.0",
|
|
|
|
"@types/jquery": "3.3.29",
|
2023-07-18 07:34:47 +00:00
|
|
|
"@wdio/cli": "7.30.1",
|
|
|
|
"@wdio/junit-reporter": "7.29.1",
|
|
|
|
"@wdio/local-runner": "7.30.1",
|
|
|
|
"@wdio/mocha-framework": "7.26.0",
|
2024-01-12 18:41:53 +00:00
|
|
|
"@wdio/spec-reporter": "7.29.1",
|
2023-07-07 17:59:15 +00:00
|
|
|
"@wikimedia/codex": "0.14.0",
|
|
|
|
"@wikimedia/codex-icons": "0.14.0",
|
2023-04-03 21:04:09 +00:00
|
|
|
"@wikimedia/mw-node-qunit": "7.0.0",
|
2024-01-12 18:41:53 +00:00
|
|
|
"babel-loader": "9.1.3",
|
2023-11-08 12:25:48 +00:00
|
|
|
"browserslist-config-wikimedia": "0.5.1",
|
2022-04-15 05:34:13 +00:00
|
|
|
"bundlesize": "0.18.1",
|
2020-04-27 18:58:30 +00:00
|
|
|
"clean-webpack-plugin": "3.0.0",
|
2019-09-04 17:49:22 +00:00
|
|
|
"cssjanus": "1.3.1",
|
2024-01-11 09:43:59 +00:00
|
|
|
"eslint-config-wikimedia": "0.26.0",
|
2023-06-13 22:39:41 +00:00
|
|
|
"eslint-plugin-no-jquery": "2.7.0",
|
2024-01-12 18:41:53 +00:00
|
|
|
"expose-loader": "4.1.0",
|
2023-11-08 12:25:48 +00:00
|
|
|
"grunt-banana-checker": "0.11.1",
|
2023-08-30 13:11:03 +00:00
|
|
|
"jquery": "3.7.1",
|
2022-04-15 05:34:13 +00:00
|
|
|
"jsdoc": "3.6.10",
|
2023-04-27 00:24:50 +00:00
|
|
|
"less": "3.13.1",
|
2024-01-12 18:41:53 +00:00
|
|
|
"less-loader": "11.1.4",
|
2020-02-04 07:35:29 +00:00
|
|
|
"nyc": "15.0.0",
|
2024-01-12 18:41:53 +00:00
|
|
|
"postcss-less": "6.0.0",
|
2019-08-15 19:39:26 +00:00
|
|
|
"pre-commit": "1.2.2",
|
|
|
|
"redux": "4.0.1",
|
|
|
|
"redux-thunk": "2.3.0",
|
2023-11-08 12:25:48 +00:00
|
|
|
"stylelint-config-wikimedia": "0.16.1",
|
2023-03-11 21:44:13 +00:00
|
|
|
"svg-inline-loader": "0.8.2",
|
2023-06-14 19:32:01 +00:00
|
|
|
"svgo": "3.0.2",
|
2020-01-07 00:13:12 +00:00
|
|
|
"tap-mocha-reporter": "5.0.1",
|
2024-01-12 18:41:53 +00:00
|
|
|
"url-loader": "4.1.1",
|
2023-09-22 14:46:37 +00:00
|
|
|
"wdio-mediawiki": "2.3.0",
|
2024-01-12 18:41:53 +00:00
|
|
|
"webpack": "5.89.0",
|
|
|
|
"webpack-cli": "5.1.4"
|
2019-08-15 19:39:26 +00:00
|
|
|
},
|
|
|
|
"bundlesize": [
|
|
|
|
{
|
|
|
|
"path": "resources/dist/index.js",
|
2023-10-19 21:12:09 +00:00
|
|
|
"maxSize": "15.1kB"
|
2019-08-15 19:39:26 +00:00
|
|
|
}
|
|
|
|
]
|
2015-06-20 05:09:03 +00:00
|
|
|
}
|