mediawiki-extensions-Popups/package.json
Stephen Niedzielski 4eb9c0efa8 Hygiene: move SVG string to file
- Add SVG Inline Loader for Webpack. This allows SVG files to be
  imported.

- Update the Webpack and test configurations to use the new loader.

- Scope the ESLint rules down to just JavaScript files so that linting
  isn't attempted on the SVG.

Bug: T165036
Change-Id: I00bccff4c3167975c19d577be6343dcaca7ddb2d
2018-03-14 12:04:28 -07:00

46 lines
1.6 KiB
JSON

{
"private": true,
"scripts": {
"start": "webpack -w",
"build": "NODE_ENV=production webpack",
"test:node": "node tests/node-qunit/run.js 'tests/node-qunit/**/*.test.js' | tap-dot",
"test:dev": "grunt lint && npm run test:node",
"test": " npm run check-built-assets && npm run test:dev && npm run doc",
"doc": "jsdoc -c jsdoc.json",
"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' -qr 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 && 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",
"grunt-contrib-watch": "^1.0.0",
"grunt-eslint": "20.1.0",
"grunt-jsonlint": "1.1.0",
"grunt-stylelint": "0.9.0",
"husky": "^0.13.3",
"istanbul": "^0.4.5",
"jsdoc": "^3.4.3",
"mw-node-qunit": "^3.0.0",
"nodemon": "^1.11.0",
"redux": "3.6.0",
"redux-thunk": "2.2.0",
"stylelint": "8.2.0",
"stylelint-config-wikimedia": "0.4.2",
"svg-inline-loader": "0.8.0",
"tap-dot": "^1.0.5",
"webpack": "^2.6.0"
},
"bundlesize": [
{
"path": "resources/dist/index.js",
"maxSize": "12KB"
}
]
}