{ "name": "openlibrary", "version": "1.0.0", "repository": "github:internetarchive:openlibrary", "license": "AGPL-3.0", "scripts": { "build-assets:webpack": "NODE_ENV=production webpack --mode=production", "build-assets": "make js && make css", "check-bundles": "npm run build-assets && bundlesize", "svg-min": "svgo static/images/**/*.svg && svgo static/images/*.svg", "lint:fix": "stylelint --syntax less --fix static/css/", "lint:js": "eslint --config .eslintrc.json .", "test:unit": "jest --testRegex tests/unit/**/*.js", "test": "npm run check-bundles && stylelint --syntax less static/css/ && npm run lint:js" }, "bundlesize": [ { "path": "static/build/vendor-v2.js", "maxSize": "172KB" }, { "path": "static/build/all.js", "maxSize": "34.7KB" }, { "path": "static/build/page-admin.css", "maxSize": "19.1KB" }, { "path": "static/build/page-book.css", "maxSize": "7.1KB" }, { "path": "static/build/page-edit.css", "maxSize": "18.9KB" }, { "path": "static/build/page-form.css", "maxSize": "18.8KB" }, { "path": "static/build/page-home.css", "maxSize": "4.3KB" }, { "path": "static/build/page-plain.css", "maxSize": "18.9KB" }, { "path": "static/build/page-subject.css", "maxSize": "6.2KB" }, { "path": "static/build/page-user.css", "maxSize": "18.7KB" } ], "devDependencies": { "@babel/core": "7.2.2", "@babel/preset-env": "7.3.1", "@babel/register": "7.0.0", "babel-loader": "8.0.5", "bundlesize": "^0.17.0", "css-loader": "2.1.1", "detect-libc": "^1.0.3", "eslint": "^5.7.0", "jest": "^24.5.0", "less": "^3.8.1", "less-loader": "4.1.0", "node-gyp": "^3.8.0", "prebuild-install": "^5.2.1", "stylelint": "^9.5.0", "stylelint-declaration-use-variable": "^1.7.0", "style-loader": "0.23.1", "svgo": "1.1.1", "webpack": "4.27.1", "webpack-cli": "3.1.2" }, "jest": { "collectCoverageFrom": [ "openlibrary/plugins/openlibrary/js/**/*.js" ], "coverageThreshold": { "global": { "branches": 0.6, "functions": 1, "lines": 1, "statements": 1 } }, "collectCoverage": true } }