386 строки
13 KiB
JSON
386 строки
13 KiB
JSON
{
|
|
"name": "mozilla-addons-frontend",
|
|
"version": "0.0.1",
|
|
"description": "Universal front-end projects to complement addons-server.",
|
|
"main": "index.js",
|
|
"private": true,
|
|
"engines": {
|
|
"node": ">=8.10"
|
|
},
|
|
"scripts": {
|
|
"build": "npm run clean && better-npm-run build",
|
|
"build-all": "npm run clean && NODE_APP_INSTANCE=amo better-npm-run build && NODE_APP_INSTANCE=disco better-npm-run build",
|
|
"build-check": "bin/build-checks.js",
|
|
"build-ci": "npm run build-all && npm run bundlesize",
|
|
"build-locales": "bin/build-locales",
|
|
"bundlesize": "bundlesize",
|
|
"extract-locales": "better-npm-run extract-locales",
|
|
"clean": "rimraf './dist/*!(.gitkeep)' './webpack-assets.json' './src/locale/**(!.gitkeep)'",
|
|
"amo": "better-npm-run amo",
|
|
"amo:dev": "better-npm-run amo:dev",
|
|
"amo:dev-https": "better-npm-run amo:dev-https",
|
|
"amo:ui-tests": "better-npm-run amo:ui-tests",
|
|
"amo:no-proxy": "better-npm-run amo:no-proxy",
|
|
"amo:stage": "better-npm-run amo:stage",
|
|
"disco": "better-npm-run disco",
|
|
"disco:https": "better-npm-run disco:https",
|
|
"eslint": "eslint .",
|
|
"flow": "flow",
|
|
"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",
|
|
"stylelint": "stylelint --syntax scss **/*.scss",
|
|
"lint": "npm run eslint && npm run stylelint",
|
|
"prettier": "prettier --write '**'",
|
|
"prettier-ci": "npm run 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",
|
|
"snyk": "snyk --org=add-ons-team",
|
|
"snyk-ci": "npm run snyk test --severity-threshold=medium --file=package.json && npm run snyk monitor",
|
|
"snyk-wizard": "npm run snyk wizard",
|
|
"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",
|
|
"storybook": "better-npm-run storybook",
|
|
"storybook-build": "better-npm-run storybook-build",
|
|
"storybook-deploy": "storybook-to-ghpages --script storybook-build",
|
|
"test-ci": "bin/config-check.js && NODE_APP_INSTANCE=amo npm run build-locales && NODE_APP_INSTANCE=disco 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"
|
|
},
|
|
"betterScripts": {
|
|
"build": {
|
|
"command": "npm run build-check && npm run version-check && npm run build-locales && webpack --bail --verbose --display-error-details --progress --colors --config webpack.prod.config.babel.js",
|
|
"env": {
|
|
"NODE_ICU_DATA": "./node_modules/full-icu",
|
|
"NODE_PATH": "./:./src"
|
|
}
|
|
},
|
|
"amo": {
|
|
"command": "better-npm-run start-dev-proxy",
|
|
"env": {
|
|
"NODE_APP_INSTANCE": "amo"
|
|
}
|
|
},
|
|
"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",
|
|
"NODE_APP_INSTANCE": "amo"
|
|
}
|
|
},
|
|
"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:ui-tests": {
|
|
"command": "better-npm-run start-dev-proxy",
|
|
"env": {
|
|
"NODE_APP_INSTANCE": "amo",
|
|
"NODE_ENV": "production"
|
|
}
|
|
},
|
|
"amo:no-proxy": {
|
|
"command": "better-npm-run start-dev",
|
|
"env": {
|
|
"NODE_APP_INSTANCE": "amo",
|
|
"PROXY_ENABLED": "false"
|
|
}
|
|
},
|
|
"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,
|
|
"NODE_APP_INSTANCE": "amo"
|
|
}
|
|
},
|
|
"disco": {
|
|
"command": "better-npm-run start-dev",
|
|
"env": {
|
|
"NODE_APP_INSTANCE": "disco"
|
|
}
|
|
},
|
|
"disco:https": {
|
|
"command": "better-npm-run disco",
|
|
"env": {
|
|
"SERVER_HOST": "example.com",
|
|
"USE_HTTPS_FOR_DEV": "true",
|
|
"WEBPACK_SERVER_HOST": "example.com"
|
|
}
|
|
},
|
|
"extract-locales": {
|
|
"command": "webpack --verbose --bail --display-error-details --progress --colors --config webpack.l10n.config.babel.js",
|
|
"env": {
|
|
"NODE_ENV": "production",
|
|
"NODE_ICU_DATA": "./node_modules/full-icu",
|
|
"NODE_PATH": "./:./src"
|
|
}
|
|
},
|
|
"start-dev": {
|
|
"command": "npm run clean && concurrently 'npm run webpack-dev-server' 'node bin/server.js | pino-devtools --mode buffer --tee | pino-pretty'",
|
|
"env": {
|
|
"ENABLE_PIPING": "true",
|
|
"NODE_ENV": "development",
|
|
"NODE_ICU_DATA": "./node_modules/full-icu",
|
|
"NODE_PATH": "./:./src"
|
|
}
|
|
},
|
|
"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",
|
|
"SERVER_PORT": "3333"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"storybook": {
|
|
"command": "start-storybook -p 9001 -c stories/setup",
|
|
"env": {
|
|
"NODE_PATH": "./:./src"
|
|
}
|
|
},
|
|
"storybook-build": {
|
|
"command": "build-storybook -c stories/setup",
|
|
"env": {
|
|
"NODE_PATH": "./:./src",
|
|
"NODE_ENV": "production",
|
|
"NODE_CONFIG_ENV": "prod"
|
|
}
|
|
},
|
|
"test-ci": {
|
|
"command": "npm run version-check && npm run flow:check && bin/config-check.js && better-npm-run jest --color=false --coverage",
|
|
"env": {
|
|
"NODE_ICU_DATA": "./node_modules/full-icu",
|
|
"NODE_PATH": "./:./src",
|
|
"NODE_ENV": "test",
|
|
"NO_FLOW": "1",
|
|
"NO_ESLINT": "1"
|
|
}
|
|
},
|
|
"webpack-dev-server": {
|
|
"command": "node bin/webpack-dev-server.js",
|
|
"env": {
|
|
"NODE_ENV": "development",
|
|
"NODE_ICU_DATA": "./node_modules/full-icu",
|
|
"NODE_PATH": "./:./src"
|
|
}
|
|
}
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/mozilla/addons-frontend.git"
|
|
},
|
|
"author": "Mozilla Add-ons Team",
|
|
"license": "MPL-2.0",
|
|
"bugs": {
|
|
"url": "https://github.com/mozilla/addons-frontend/issues"
|
|
},
|
|
"homepage": "https://github.com/mozilla/addons-frontend#readme",
|
|
"dependencies": {
|
|
"@babel/polyfill": "7.0.0",
|
|
"base62": "2.0.0",
|
|
"@loadable/component": "5.2.1",
|
|
"@loadable/server": "5.2.0",
|
|
"base64url": "3.0.1",
|
|
"better-npm-run": "0.1.1",
|
|
"chokidar": "2.0.4",
|
|
"classnames": "2.2.6",
|
|
"common-tags": "1.8.0",
|
|
"config": "3.0.0",
|
|
"connected-react-router": "5.0.1",
|
|
"deep-eql": "4.0.0",
|
|
"deepcopy": "0.6.3",
|
|
"dompurify": "1.0.8",
|
|
"express": "4.16.4",
|
|
"express-http-context": "1.2.0",
|
|
"fastclick": "1.0.6",
|
|
"filesize": "3.6.1",
|
|
"focus-visible": "4.1.5",
|
|
"fs-extra": "7.0.1",
|
|
"full-icu": "1.2.1",
|
|
"helmet": "3.15.0",
|
|
"history": "4.7.2",
|
|
"hot-shots": "5.9.2",
|
|
"html-entities": "1.2.1",
|
|
"invariant": "2.2.4",
|
|
"isomorphic-fetch": "2.2.1",
|
|
"jed": "1.1.1",
|
|
"join-url": "2.0.0",
|
|
"jsdom": "13.0.0",
|
|
"knuth-shuffle": "1.0.8",
|
|
"localforage": "1.7.3",
|
|
"lodash.debounce": "4.0.8",
|
|
"moment": "2.22.2",
|
|
"mozilla-hybrid-content-telemetry": "1.2.1",
|
|
"mozilla-version-comparator": "1.0.2",
|
|
"nano-time": "1.0.0",
|
|
"normalize.css": "8.0.1",
|
|
"pino": "5.9.0",
|
|
"pino-mozlog": "2.0.0",
|
|
"prop-types": "15.6.2",
|
|
"qhistory": "1.0.2",
|
|
"qs": "6.6.0",
|
|
"raf": "3.4.1",
|
|
"raven": "2.6.4",
|
|
"raven-js": "3.27.0",
|
|
"rc-tooltip": "3.7.3",
|
|
"react": "16.6.3",
|
|
"react-autosuggest": "9.4.2",
|
|
"react-cookie": "3.0.8",
|
|
"react-dom": "16.6.3",
|
|
"react-helmet": "5.2.0",
|
|
"react-keydown": "1.9.7",
|
|
"react-nested-status": "0.2.1",
|
|
"react-onclickoutside": "6.7.1",
|
|
"react-photoswipe": "1.3.0",
|
|
"react-redux": "5.1.1",
|
|
"react-router": "4.3.1",
|
|
"react-router-dom": "4.3.1",
|
|
"react-super-responsive-table": "4.3.4",
|
|
"react-textarea-autosize": "7.0.4",
|
|
"react-transition-group": "2.5.0",
|
|
"redux": "4.0.1",
|
|
"redux-logger": "3.0.6",
|
|
"redux-saga": "0.16.2",
|
|
"response-time": "2.3.2",
|
|
"serialize-javascript": "1.5.0",
|
|
"touch": "3.1.0",
|
|
"ua-parser-js": "0.7.19",
|
|
"universal-cookie-express": "3.0.7",
|
|
"url": "0.11.0",
|
|
"url-loader": "1.1.2",
|
|
"utf8": "3.0.0",
|
|
"uuid": "3.3.2",
|
|
"webpack-isomorphic-tools": "3.0.6"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.1.6",
|
|
"@babel/plugin-proposal-class-properties": "^7.1.0",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
|
"@babel/preset-env": "^7.1.6",
|
|
"@babel/preset-flow": "^7.0.0",
|
|
"@babel/preset-react": "^7.0.0",
|
|
"@babel/register": "^7.0.0",
|
|
"@loadable/babel-plugin": "^5.0.1",
|
|
"@loadable/webpack-plugin": "^5.2.1",
|
|
"@storybook/addon-info": "^4.0.8",
|
|
"@storybook/addon-options": "^4.0.8",
|
|
"@storybook/addons": "^4.0.8",
|
|
"@storybook/react": "^4.0.8",
|
|
"@storybook/storybook-deployer": "^2.3.0",
|
|
"autoprefixer": "^9.0.0",
|
|
"babel-core": "^7.0.0-bridge.0",
|
|
"babel-eslint": "^10.0.1",
|
|
"babel-gettext-extractor": "github:mozilla/babel-gettext-extractor#babel-7",
|
|
"babel-jest": "^23.6.0",
|
|
"babel-loader": "^8.0.4",
|
|
"babel-plugin-dynamic-import-node": "^2.2.0",
|
|
"bundle-loader": "^0.5.5",
|
|
"bundlesize": "^0.17.0",
|
|
"chalk": "^2.0.1",
|
|
"cheerio": "^1.0.0-rc.2",
|
|
"chokidar-cli": "^1.2.1",
|
|
"circular-dependency-plugin": "^5.0.0",
|
|
"codecov": "^3.0.1",
|
|
"concurrently": "^4.1.0",
|
|
"content-security-policy-parser": "^0.1.0",
|
|
"cookie": "^0.3.1",
|
|
"css-loader": "^1.0.0",
|
|
"enzyme": "^3.6.0",
|
|
"enzyme-adapter-react-16": "^1.5.0",
|
|
"eslint": "^5.3.0",
|
|
"eslint-config-amo": "^1.8.3",
|
|
"eslint-plugin-amo": "^1.9.1",
|
|
"eslint-plugin-promise": "^4.0.0",
|
|
"file-loader": "^2.0.0",
|
|
"flow-bin": "^0.87.0",
|
|
"glob": "^7.1.1",
|
|
"html-webpack-plugin": "^3.2.0",
|
|
"http-proxy": "^1.16.2",
|
|
"intl": "^1.2.5",
|
|
"intl-locales-supported": "^1.0.0",
|
|
"jest": "^23.6.0",
|
|
"jest-enzyme": "^7.0.0",
|
|
"jest-watch-typeahead": "^0.2.0",
|
|
"json-loader": "^0.5.4",
|
|
"mini-css-extract-plugin": "^0.4.4",
|
|
"mock-express-request": "^0.2.0",
|
|
"mock-express-response": "^0.2.0",
|
|
"node-sass": "^4.9.1",
|
|
"object.values": "^1.0.4",
|
|
"optimize-css-assets-webpack-plugin": "^5.0.1",
|
|
"photon-colors": "^3.0.1",
|
|
"pino-devtools": "^2.1.0",
|
|
"pino-pretty": "^2.0.1",
|
|
"piping": "^1.0.0-rc.4",
|
|
"po2json": "^0.4.5",
|
|
"postcss-loader": "^3.0.0",
|
|
"prettier": "1.15.3",
|
|
"pretty-quick": "1.8.0",
|
|
"react-hot-loader": "^4.3.3",
|
|
"react-storybook-addon-chapters": "^2.1.9",
|
|
"react-test-renderer": "^16.6.3",
|
|
"redux-saga-tester": "^1.0.372",
|
|
"require-uncached": "^2.0.0",
|
|
"rimraf": "^2.6.1",
|
|
"sass-loader": "^7.0.1",
|
|
"semver": "^5.3.0",
|
|
"shelljs": "^0.8.0",
|
|
"sinon": "^7.0.0",
|
|
"snyk": "^1.103.0",
|
|
"style-loader": "^0.23.0",
|
|
"stylelint": "^9.2.0",
|
|
"stylelint-config-standard": "^18.2.0",
|
|
"stylelint-config-suitcss": "^14.0.0",
|
|
"supertest": "^3.0.0",
|
|
"svg-url-loader": "^2.0.2",
|
|
"terser-webpack-plugin": "^1.1.0",
|
|
"tmp": "^0.0.33",
|
|
"tosource": "^1.0.0",
|
|
"webpack": "^4.26.0",
|
|
"webpack-cli": "^3.1.2",
|
|
"webpack-dev-middleware": "^3.4.0",
|
|
"webpack-hot-middleware": "^2.24.3",
|
|
"webpack-subresource-integrity": "^1.3.0"
|
|
},
|
|
"storybook-deployer": {
|
|
"commitMessage": "[skip ci] Deploy Storybook to Github Pages"
|
|
},
|
|
"bundlesize": [
|
|
{
|
|
"path": "./dist/@(amo|disco)-!(i18n-)*.js",
|
|
"maxSize": "430 kB"
|
|
},
|
|
{
|
|
"path": "./dist/@(amo|disco)-i18n-*.js",
|
|
"maxSize": "30 kB"
|
|
}
|
|
],
|
|
"snyk": true
|
|
}
|