fxa/packages/fxa-payments-server/package.json

206 строки
7.3 KiB
JSON

{
"name": "fxa-payments-server",
"version": "0.0.0",
"description": "Firefox Accounts Payments Service",
"scripts": {
"prebuild": "yarn l10n-prime",
"build": "yarn build-l10n && yarn build-css && yarn build-ts && yarn build-react",
"build-css": "NODE_ENV=production npx tailwindcss --postcss -i ./src/styles/tailwind.css -o ./src/styles/tailwind.out.css --minify",
"build-ts": "tsc",
"build-l10n": "nx l10n-merge && nx l10n-bundle && nx l10n-merge-test",
"build-react": "SKIP_PREFLIGHT_CHECK=true PUBLIC_URL=/ INLINE_RUNTIME_CHUNK=false CI=false NODE_OPTIONS=--openssl-legacy-provider rescripts build",
"build-storybook": "NODE_OPTIONS=--openssl-legacy-provider storybook build && cp -r public/images storybook-static/ && cp -r public/locales ./storybook-static/locales",
"compile": "tsc --noEmit",
"clean": "rimraf dist",
"l10n-merge": "yarn grunt merge-ftl",
"l10n-merge-test": "yarn grunt merge-ftl:test",
"l10n-prime": "yarn l10n:prime packages/fxa-payments-server",
"l10n-bundle": "yarn l10n:bundle packages/fxa-payments-server branding,react,payments",
"l10n-watch": "yarn grunt watch-ftl",
"lint": "eslint . .storybook",
"audit": "npm audit --json | audit-filter --nsp-config=.nsprc --audit=-",
"start": "pm2 start pm2.config.js && yarn check:url localhost:3031/__lbheartbeat__",
"stop": "pm2 stop pm2.config.js",
"restart": "pm2 restart pm2.config.js",
"delete": "pm2 delete pm2.config.js",
"eject": "react-scripts eject",
"test": "yarn test-frontend && yarn test-server",
"test-frontend": "SKIP_PREFLIGHT_CHECK=true PUBLIC_URL=/ INLINE_RUNTIME_CHUNK=false rescripts test --watchAll=false",
"test-frontend-watch": "SKIP_PREFLIGHT_CHECK=true PUBLIC_URL=/ INLINE_RUNTIME_CHUNK=false rescripts test",
"test-server": "jest --coverage --runInBand --logHeapUsage --verbose --config server/jest.config.js --forceExit",
"test-unit": "JEST_JUNIT_OUTPUT_FILE=../../artifacts/tests/$npm_package_name/jest-unit.xml jest --coverage --runInBand --logHeapUsage --verbose --config server/jest.config.js --forceExit -t '^(?!.*?#integration).*' --ci --reporters=default --reporters=jest-junit",
"test-integration": "JEST_JUNIT_OUTPUT_FILE=../../artifacts/tests/$npm_package_name/jest-integration.xml SKIP_PREFLIGHT_CHECK=true PUBLIC_URL=/ INLINE_RUNTIME_CHUNK=false rescripts test --watchAll=false --ci --reporters=default --reporters=jest-junit",
"format": "prettier --write --config ../../_dev/.prettierrc '**'",
"storybook": "NODE_OPTIONS=--openssl-legacy-provider storybook dev -p 6006",
"watch-ftl": "yarn l10n-watch"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"repository": {
"type": "git",
"url": "https://github.com/mozilla/fxa.git"
},
"keywords": [
"Firefox Accounts",
"FxA",
"Payments"
],
"author": "Mozilla (https://mozilla.org/)",
"license": "MPL-2.0",
"bugs": {
"url": "https://github.com/mozilla/fxa/issues"
},
"homepage": "https://github.com/mozilla/fxa/tree/main/packages/fxa-payments-server#README.md",
"devDependencies": {
"@babel/core": "^7.24.4",
"@babel/preset-env": "^7.22.9",
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@fluent/bundle": "^0.18.0",
"@fluent/langneg": "^0.7.0",
"@rescripts/cli": "~0.0.16",
"@storybook/addon-actions": "^8.0.0",
"@storybook/addon-links": "^7.6.4",
"@storybook/addon-styling": "^1.3.0",
"@storybook/addons": "^7.5.2",
"@storybook/preset-create-react-app": "^7.6.4",
"@storybook/react": "^7.1.1",
"@storybook/react-webpack5": "^7.0.23",
"@testing-library/jest-dom": "^5.16.5",
"@types/accept-language-parser": "^1.5.1",
"@types/babel__preset-env": "^7",
"@types/classnames": "^2.3.1",
"@types/jest": "^26.0.23",
"@types/jsdom": "^16.2.11",
"@types/nock": "^11.1.0",
"@types/node": "^20.11.1",
"@types/postcss-import": "^12",
"@types/react-redux": "^7.1.18",
"@types/react-stripe-elements": "^6.0.6",
"@types/react-transition-group": "^4.4.2",
"@types/sinon": "10.0.1",
"@types/storybook__addon-actions": "^5.2.1",
"@types/storybook__addon-links": "^5.2.1",
"@types/superagent": "^4.1.11",
"@types/uuid": "^10.0.0",
"@types/webpack": "5.28.0",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^7.1.1",
"audit-filter": "^0.5.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^9.1.3",
"browserslist": "^4.23.0",
"eslint": "^7.32.0",
"eslint-config-react-app": "^6.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.6.0",
"eslint-plugin-react": "^7.32.2",
"express-http-proxy": "^2.0.0",
"grunt": "^1.6.1",
"grunt-cli": "^1.4.3",
"grunt-contrib-concat": "^2.1.0",
"grunt-contrib-watch": "^1.1.0",
"handlebars": "^4.7.7",
"intl": "1.2.5",
"jest": "27.5.1",
"nock": "^13.5.1",
"nx": "18.3.1",
"pm2": "^5.3.0",
"postcss-import": "16.1.0",
"prettier": "^2.3.1",
"redux-devtools-extension": "^2.13.9",
"sinon": "^9.0.3",
"storybook": "^7.0.23",
"storybook-addon-mock": "4.2.1",
"supertest": "^7.0.0",
"tailwindcss": "3.4.3",
"typescript": "^5.5.3",
"wait-for-expect": "^3.0.2",
"webpack": "^5.94.0"
},
"dependencies": {
"@stripe/react-stripe-js": "^2.7.1",
"@stripe/stripe-js": "^4.3.0",
"accept-language-parser": "^1.5.0",
"classnames": "^2.5.1",
"convict": "^6.2.4",
"convict-format-with-moment": "^6.2.0",
"convict-format-with-validator": "^6.2.0",
"dayjs": "^1.11.5",
"eslint-plugin-jest": "^27.6.0",
"express": "^4.19.2",
"fxa-auth-server": "workspace:*",
"fxa-geodb": "workspace:*",
"fxa-react": "workspace:*",
"fxa-settings": "workspace:*",
"fxa-shared": "workspace:*",
"helmet": "^7.1.0",
"hot-shots": "^10.0.0",
"jest-watch-typeahead": "0.6.5",
"joi": "^17.8.3",
"jquery-modal": "https://github.com/mozilla-fxa/jquery-modal.git#0576775d1b4590314b114386019f4c7421c77503",
"morgan": "^1.10.0",
"mozlog": "^3.0.2",
"nocache": "^4.0.0",
"node-fetch": "^2.6.7",
"normalize.css": "8.0.1",
"on-headers": "^1.0.2",
"react-redux": "^9.1.0",
"react-router-dom": "^6.26.0",
"react-scripts": "^5.0.1",
"react-stripe-elements": "^6.1.2",
"react-transition-group": "^4.4.2",
"redux": "^4.2.0",
"redux-promise-middleware": "^6.2.0",
"redux-thunk": "^2.4.1",
"serve-static": "^1.14.2",
"typedi": "^0.8.0",
"uuid": "^10.0.0"
},
"readmeFilename": "README.md",
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!**/node_modules/*",
"!**/test-utils.*",
"!**/build/*",
"!**/*.stories.*",
"!**/types.tsx",
"!**/*.d.ts",
"!**/jest*js",
"!src/lib/enzyme.js"
],
"coverageThreshold": {
"global": {
"branches": 94,
"functions": 84,
"lines": 88,
"statements": 88
}
},
"resetMocks": false
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"nx": {
"tags": [
"scope:frontend",
"type:sp2"
]
}
}