addons-frontend/package.json

342 строки
12 KiB
JSON
Исходник Обычный вид История

2016-02-22 12:39:48 +03:00
{
"name": "mozilla-addons-frontend",
2021-08-23 18:35:22 +03:00
"version": "0.24.0",
2016-02-22 12:39:48 +03:00
"description": "Universal front-end projects to complement addons-server.",
"main": "index.js",
"private": true,
"engines": {
2019-01-18 13:20:35 +03:00
"node": ">=10.15"
},
2016-02-22 12:39:48 +03:00
"scripts": {
2018-08-06 22:26:17 +03:00
"build": "npm run clean && better-npm-run build",
"build:blog-utils": "npm run clean && bin/create-package-json-for-blog-utils && bin/create-readme-for-blog-utils && better-npm-run build:blog-utils",
2021-04-08 17:03:12 +03:00
"build:blog-utils-dev": "NODE_ENV=development concurrently 'npm run build:blog-utils -- --watch' 'bin/serve-blog-utils'",
"build:blog-utils-prod": "NODE_ENV=production npm run build:blog-utils",
"build:qrcodes": "npm run clean && bin/fenix-qr-codes.js",
2018-08-06 22:26:17 +03:00
"build-check": "bin/build-checks.js",
"build-ci": "npm run build && npm run bundlesize",
2017-03-22 14:23:54 +03:00
"build-locales": "bin/build-locales",
2018-08-06 22:26:17 +03:00
"bundlesize": "bundlesize",
2016-05-30 20:51:36 +03:00
"extract-locales": "better-npm-run extract-locales",
2017-03-22 14:23:54 +03:00
"clean": "rimraf './dist/*!(.gitkeep)' './webpack-assets.json' './src/locale/**(!.gitkeep)'",
"amo:dev": "better-npm-run amo:dev",
2018-09-12 16:18:39 +03:00
"amo:dev-https": "better-npm-run amo:dev-https",
"amo:olympia": "better-npm-run amo:olympia",
"amo:stage": "better-npm-run amo:stage",
"amo:ui-tests": "npm run amo:olympia",
2016-06-23 16:12:15 +03:00
"eslint": "eslint .",
"flow": "flow",
2017-04-17 21:37:35 +03:00
"flow:check": "flow check",
"flow:dev": "flow stop; flow start; chokidar .flowconfig flow/ stories/ src/ tests/ -i flow/logs/flow.log -c 'flow status' --initial",
2016-06-23 16:12:15 +03:00
"stylelint": "stylelint --syntax scss **/*.scss",
2016-07-05 23:52:01 +03:00
"lint": "npm run eslint && npm run stylelint",
2018-06-27 18:51:33 +03:00
"prettier": "prettier --write '**'",
"prettier-ci": "prettier --list-different '**' || (echo '\n\nThis failure means you did not run `yarn prettier-dev` before committing\n\n' && exit 1)",
"prettier-dev": "pretty-quick --branch master",
"start": "npm run version-check && better-npm-run --silent node bin/server.js | pino-mozlog",
"start-func-test-server": "better-npm-run node bin/start-func-test-server.js",
"test-ci": "bin/config-check.js && npm run build-locales && better-npm-run test-ci && codecov",
"test": "bin/config-check.js && better-npm-run jest --watch",
"test-coverage": "bin/config-check.js && better-npm-run jest --coverage --watch",
"test-coverage-once": "bin/config-check.js && better-npm-run jest --coverage",
"test-once": "bin/config-check.js && better-npm-run jest && npm run lint",
"version-check": "bin/version-check.js",
"webpack-dev-server": "npm run build-locales && better-npm-run webpack-dev-server",
"prepare": "husky install",
"check-fonts": "./bin/regenerate_font.js src/fonts/woff2/Inter-roman.var.woff2 && ./bin/regenerate_font.js src/fonts/woff2/Inter-roman-subset-en_de_fr_ru_es_pt_pl_it.var.woff2 && git diff --quiet HEAD src/fonts/ || (echo '\n\n Did you manually alter font files that should be generated automatically ? See docs/fonts.md for details. This check found the following differences:\n\n' && git --no-pager diff src/fonts && exit 1)"
2016-03-29 16:20:50 +03:00
},
"betterScripts": {
"build": {
"command": "npm run build-check && npm run version-check && npm run build-locales && webpack --progress --color --config webpack.prod.config.babel.js",
2016-03-29 16:20:50 +03:00
"env": {
"NODE_ICU_DATA": "./node_modules/full-icu",
"NODE_PATH": "./:./src"
2016-03-29 16:20:50 +03:00
}
},
"build:blog-utils": {
"command": "webpack --config webpack.blog-utils.config.babel.js",
"env": {
"NODE_ICU_DATA": "./node_modules/full-icu",
"NODE_PATH": "./:./src",
"NODE_CONFIG_ENV": "prod"
}
},
"amo:olympia": {
"command": "better-npm-run start-dev-proxy",
"env": {
"NODE_APP_INSTANCE": "local"
}
2016-03-29 16:20:50 +03:00
},
"amo:dev": {
"command": "better-npm-run start-dev-proxy",
"env": {
"AMO_CDN": "https://addons-dev-cdn.allizom.org",
"PROXY_API_HOST": "https://addons-dev.allizom.org"
}
},
2018-09-12 16:18:39 +03:00
"amo:dev-https": {
"command": "better-npm-run amo:dev",
"env": {
"API_HOST": "https://example.com:3000",
"SERVER_HOST": "example.com",
"USE_HTTPS_FOR_DEV": "true",
"WEBPACK_SERVER_HOST": "example.com"
}
},
"amo:stage": {
"command": "better-npm-run start-dev-proxy",
"env": {
"AMO_CDN": "https://addons-stage-cdn.allizom.org",
"PROXY_API_HOST": "https://addons.allizom.org",
"FXA_CONFIG": "local",
"CSP": false
}
},
2016-05-30 20:51:36 +03:00
"extract-locales": {
"command": "webpack --progress --color --config webpack.l10n.config.babel.js",
2016-05-20 01:33:30 +03:00
"env": {
"NODE_ENV": "production",
"NODE_ICU_DATA": "./node_modules/full-icu",
"NODE_PATH": "./:./src"
2016-05-20 01:33:30 +03:00
}
},
2016-04-22 19:42:57 +03:00
"start-dev": {
"command": "npm run clean && concurrently 'npm run webpack-dev-server' 'node bin/server.js | pino-devtools --mode buffer --tee | pino-pretty'",
2016-04-22 19:42:57 +03:00
"env": {
"ENABLE_PIPING": "true",
2016-04-22 19:42:57 +03:00
"NODE_ENV": "development",
"NODE_ICU_DATA": "./node_modules/full-icu",
"NODE_PATH": "./:./src"
2016-04-22 19:42:57 +03:00
}
},
"start-dev-proxy": {
"command": "npm run clean && concurrently 'npm run webpack-dev-server' 'node bin/server.js | pino-devtools --mode buffer --tee | pino-pretty' 'node bin/proxy.js | pino-pretty'",
"env": {
"ENABLE_PIPING": "true",
"NODE_ENV": "development",
"NODE_ICU_DATA": "./node_modules/full-icu",
"NODE_PATH": "./:./src"
}
},
"node": {
"command": "node",
"env": {
"NODE_ICU_DATA": "./node_modules/full-icu",
"NODE_PATH": "./:./src"
}
},
"jest": {
"command": "jest",
"env": {
"NODE_ICU_DATA": "./node_modules/full-icu"
}
},
2017-05-19 20:54:22 +03:00
"test-ci": {
2020-12-16 18:24:18 +03:00
"command": "npm run version-check && npm run flow:check && bin/config-check.js && better-npm-run jest --maxWorkers=2 --color=false --coverage",
"env": {
"NODE_ICU_DATA": "./node_modules/full-icu",
"NODE_PATH": "./:./src",
"NODE_ENV": "test",
2018-11-19 22:30:57 +03:00
"NO_FLOW": "1",
"NO_ESLINT": "1"
}
},
2016-03-29 16:20:50 +03:00
"webpack-dev-server": {
"command": "node bin/webpack-dev-server.js",
"env": {
"NODE_ENV": "development",
"NODE_ICU_DATA": "./node_modules/full-icu",
"NODE_PATH": "./:./src"
2016-03-29 16:20:50 +03:00
}
}
2016-02-22 12:39:48 +03:00
},
"repository": {
"type": "git",
2018-10-24 21:20:29 +03:00
"url": "git+https://github.com/mozilla/addons-frontend.git"
2016-02-22 12:39:48 +03:00
},
"author": "Mozilla Add-ons Team",
"license": "MPL-2.0",
"bugs": {
2018-10-24 21:20:29 +03:00
"url": "https://github.com/mozilla/addons-frontend/issues"
2016-02-22 12:39:48 +03:00
},
2018-10-24 21:20:29 +03:00
"homepage": "https://github.com/mozilla/addons-frontend#readme",
2016-02-22 17:40:12 +03:00
"dependencies": {
"@mozilla-protocol/tokens": "5.0.5",
"@willdurand/isomorphic-formdata": "1.2.0",
"addons-moz-compare": "1.2.0",
"base62": "2.0.1",
"better-npm-run": "0.1.1",
"chokidar": "3.5.2",
"classnames": "2.3.1",
"common-tags": "1.8.0",
2021-04-15 12:14:29 +03:00
"compression": "1.7.4",
"config": "3.3.6",
"connected-react-router": "5.0.1",
"core-js": "3.18.1",
"deep-eql": "4.0.0",
"deepcopy": "2.1.0",
"dompurify": "2.3.3",
"eslint-plugin-react-hooks": "4.2.0",
"express": "4.17.1",
"express-http-context": "1.2.4",
2017-03-22 19:04:39 +03:00
"fastclick": "1.0.6",
"filesize": "8.0.3",
"focus-visible": "5.2.0",
"fs-extra": "10.0.0",
"full-icu": "1.3.4",
"helmet": "4.6.0",
"history": "4.10.1",
"hot-shots": "8.5.2",
"invariant": "2.2.4",
"isomorphic-fetch": "3.0.0",
"jed": "1.1.1",
2017-06-05 19:38:32 +03:00
"join-url": "2.0.0",
"jsdom": "16.7.0",
"localforage": "1.10.0",
"lodash.debounce": "4.0.8",
"moment": "2.29.1",
2018-11-09 23:45:59 +03:00
"nano-time": "1.0.0",
"normalize.css": "8.0.1",
"photon-colors": "3.3.2",
"photoswipe": "4.1.3",
"pino": "6.13.3",
"pino-mozlog": "2.7.0",
"prop-types": "15.7.2",
"qhistory": "1.1.0",
"qs": "6.10.1",
"raf": "3.4.1",
"rc-tooltip": "5.1.1",
"react": "16.14.0",
"react-autosuggest": "10.1.0",
"react-cookie": "4.1.1",
"react-dom": "16.14.0",
"react-helmet": "6.1.0",
"react-keydown": "1.9.12",
2017-11-23 16:52:10 +03:00
"react-nested-status": "0.2.1",
"react-onclickoutside": "6.12.0",
"react-photoswipe-gallery": "1.3.6",
"react-redux": "5.1.2",
2018-08-17 08:11:49 +03:00
"react-router": "4.3.1",
"react-router-dom": "4.3.1",
"react-super-responsive-table": "5.2.0",
"react-textarea-autosize": "8.3.3",
"react-transition-group": "4.4.2",
"redux": "4.1.1",
"redux-logger": "3.0.6",
"redux-saga": "0.16.2",
"regenerator-runtime": "0.13.9",
"response-time": "2.3.2",
"schema-utils": "3.1.1",
"serialize-javascript": "6.0.0",
"touch": "3.1.0",
"typescript": "4.4.3",
"ua-parser-js": "0.7.28",
"universal-base64url": "1.1.0",
"universal-cookie-express": "4.0.3",
2016-05-10 17:10:00 +03:00
"url": "0.11.0",
"url-loader": "4.1.1",
"utf8": "3.0.0",
"uuid": "8.3.2",
"web-vitals": "2.1.0",
"webpack-isomorphic-tools": "4.0.0"
2016-02-22 17:46:38 +03:00
},
"devDependencies": {
"@babel/core": "^7.13.8",
2018-11-19 19:14:38 +03:00
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/preset-env": "^7.13.8",
"@babel/preset-flow": "^7.12.13",
"@babel/preset-react": "^7.12.13",
"@babel/register": "^7.13.8",
"@emotion/core": "^11.0.0",
"autoprefixer": "^10.2.4",
2018-11-19 19:14:38 +03:00
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-gettext-extractor": "^4.1.3",
"babel-jest": "^26.0.0",
2018-11-19 19:14:38 +03:00
"babel-loader": "^8.0.4",
"babel-plugin-dynamic-import-node": "^2.2.0",
"bundle-loader": "^0.5.5",
"bundlesize": "^0.18.0",
"chalk": "^4.0.0",
"characterset": "^1.3.0",
"cheerio": "^1.0.0-rc.2",
"chokidar-cli": "^3.0.0",
"circular-dependency-plugin": "^5.0.0",
"codecov": "^3.7.1",
"concurrently": "^6.0.0",
"copy-webpack-plugin": "^9.0.1",
"content-security-policy-parser": "^0.4.0",
"cookie": "^0.4.0",
"css-loader": "^5.1.1",
"css-minimizer-webpack-plugin": "^3.0.0",
"enzyme": "3.11.0",
2018-09-07 18:57:45 +03:00
"enzyme-adapter-react-16": "^1.5.0",
"eslint": "^7.21.0",
"eslint-config-amo": "^4.2.0",
"eslint-plugin-amo": "^1.13.0",
"eslint-plugin-promise": "^5.0.0",
"file-loader": "^6.0.0",
"flow-bin": "^0.152.0",
"glob": "^7.1.1",
"html-webpack-plugin": "@next",
"http-proxy": "^1.16.2",
"husky": "^7.0.0",
2017-05-25 17:43:19 +03:00
"intl": "^1.2.5",
"intl-locales-supported": "^1.0.0",
"jest": "^26.0.0",
"jest-enzyme": "^7.0.0",
"jest-watch-typeahead": "^0.6.1",
"lint-staged": "^11.0.0",
"mini-css-extract-plugin": "^2.0.0",
2017-05-25 17:43:19 +03:00
"mock-express-request": "^0.2.0",
"mock-express-response": "^0.3.0",
"node-fetch": "^3.0.0",
"node-sass": "^6.0.0",
2017-05-25 21:13:22 +03:00
"object.values": "^1.0.4",
"pino-devtools": "^2.1.0",
"pino-pretty": "^6.0.0",
"piping": "^1.0.0-rc.4",
"po2json": "^0.4.5",
"postcss": "^8.2.10",
"postcss-loader": "^6.0.0",
"prettier": "2.4.1",
"pretty-quick": "3.1.1",
"qrcode": "^1.4.4",
"react-hot-loader": "^4.3.3",
"react-test-renderer": "^16.6.3",
"redux-saga-tester": "^1.0.372",
2019-08-16 23:03:28 +03:00
"rimraf": "^3.0.0",
"sass-loader": "^12.0.0",
2019-12-16 14:16:00 +03:00
"semver": "^7.0.0",
"shelljs": "^0.8.0",
"sinon": "^11.0.0",
"style-loader": "^3.0.0",
"stylelint": "^13.13.1",
"stylelint-config-standard": "^22.0.0",
"stylelint-config-suitcss": "^17.0.0",
"supertest": "^6.0.0",
"svg-url-loader": "^7.0.0",
"terser-webpack-plugin": "^4.0.0",
"tmp": "^0.2.0",
"tosource": "^1.0.0",
"webpack": "^5.0.0",
"webpack-cli": "^4.0.0",
"webpack-dev-middleware": "^5.0.0",
2018-11-20 21:19:46 +03:00
"webpack-hot-middleware": "^2.24.3",
"webpack-subresource-integrity": "@next"
},
2018-08-06 22:26:17 +03:00
"bundlesize": [
{
"path": "./dist/static/amo-!(i18n-)*.js",
2021-03-09 18:46:48 +03:00
"maxSize": "395 kB"
2018-08-06 22:26:17 +03:00
},
{
"path": "./dist/static/amo-i18n-*.js",
"maxSize": "33 kB"
2021-03-15 20:51:24 +03:00
},
{
"path": "./dist/static/amo-*.css",
"maxSize": "36 kB"
2018-08-06 22:26:17 +03:00
}
2019-11-07 20:46:02 +03:00
]
}