fxa/package.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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

2014-11-05 04:38:23 +03:00
{
2019-03-30 04:22:03 +03:00
"name": "fxa",
"private": true,
2019-03-30 04:22:03 +03:00
"version": "2.0.0",
"description": "Firefox Accounts monorepo",
2014-11-05 04:38:23 +03:00
"scripts": {
"preinstall": "_scripts/check-package-manager.sh",
"authors": "git shortlog -s | cut -c8- | sort -f > AUTHORS",
"start": "nps --prefix=start",
"stop": "nps --prefix=stop",
"restart": "nps --prefix=restart",
"delete": "nps --prefix=delete",
"rebuild-packages": "nx run-many -t build --all",
"adb-reverse": "./_scripts/adb-reverse.sh",
"test": "_scripts/test-package.sh",
"config-fxios": "node _scripts/config-fxios.js",
"format": "yarn workspaces foreach run format",
"ports": "pm2 jlist | json -a -c 'this.pm2_env.env.PORT' pm2_env.env.PORT name",
2022-08-30 18:46:08 +03:00
"heroku-postbuild": "yarn workspaces foreach --verbose --include 123done install",
"mysql": "docker exec -it $(docker container ls | grep mysql | cut -d' ' -f1) mysql",
"firefox": "./packages/fxa-dev-launcher/bin/fxa-dev-launcher.mjs",
"generate-lockfile": "docker build . -f _dev/docker/ci-lockfile-generator/Dockerfile -t generate-lockfile && docker run generate-lockfile > yarn.lock",
"l10n:clone": "_scripts/l10n/clone.sh",
"l10n:prime": "_scripts/l10n/prime.sh",
"l10n:bundle": "_scripts/l10n/bundle.sh",
"legal:clone": "_scripts/clone-legal-docs.sh",
"gql:allowlist": "nx run-many -t gql-extract && nx run-many -t gql-copy",
"check:mysql": "_scripts/check-mysql.sh",
"check:url": "_scripts/check-url.sh"
2014-12-30 08:57:38 +03:00
},
2019-03-30 04:22:03 +03:00
"homepage": "https://github.com/mozilla/fxa",
"bugs": {
2019-03-30 04:22:03 +03:00
"url": "https://github.com/mozilla/fxa/issues"
},
2014-12-30 08:57:38 +03:00
"repository": {
"type": "git",
2019-03-30 04:22:03 +03:00
"url": "https://github.com/mozilla/fxa"
2014-11-05 04:38:23 +03:00
},
"author": "Mozilla (https://mozilla.org/)",
"license": "MPL-2.0",
2014-11-05 04:38:23 +03:00
"dependencies": {
"@faker-js/faker": "^8.1.0",
"@fluent/react": "^0.15.2",
"@nestjs/common": "^10.2.4",
"@nestjs/config": "^3.0.0",
"@nestjs/core": "^10.2.4",
"@nestjs/graphql": "^8.0.2",
"@nestjs/mapped-types": "^2.0.2",
"@nestjs/passport": "^10.0.1",
"@nestjs/platform-express": "^10.2.4",
"@nestjs/schedule": "^3.0.3",
"@swc/helpers": "~0.5.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
2019-03-30 04:22:03 +03:00
"diffparser": "^2.0.1",
"graphql": "^15.6.1",
"graphql-request": "^6.1.0",
"hot-shots": "^10.0.0",
"husky": "^4.2.5",
"knex": "^2.4.2",
"kysely": "^0.26.1",
"lint-staged": "^15.0.2",
"mysql": "^2.18.1",
"mysql2": "^3.6.0",
"nest-typed-config": "^2.9.1",
"next": "^14.0.2",
"node-fetch": "^2.6.7",
"nps": "^5.10.0",
"objection": "^3.0.1",
"p-queue": "^7.3.4",
"passport": "^0.6.0",
"pm2": "^5.3.0",
"prettier": "^2.6.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-ga4": "^2.1.0",
"replace-in-file": "^7.0.1",
"rxjs": "^7.8.1",
"semver": "^7.5.2",
"tslib": "^2.5.0",
"uuid": "^9.0.0"
2019-03-30 04:22:03 +03:00
},
"engines": {
"node": "^18.18.2"
2019-03-30 04:22:03 +03:00
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"post-checkout": "_scripts/git-checkout-hook.sh",
"post-merge": "_scripts/git-merge-hook.sh"
}
},
"lint-staged": {
"packages/!(fxa-payments-server)/**/*.js": [
"prettier --config _dev/.prettierrc --write",
"eslint"
],
2019-10-02 19:23:15 +03:00
"*.{ts,tsx}": [
"prettier --config _dev/.prettierrc --write"
],
"packages/fxa-auth-server/**/*.{ts,tsx}": [
"eslint"
],
"*.css": [
"prettier --config _dev/.prettierrc --write"
],
"*.scss": [
"stylelint --config _dev/.stylelintrc"
],
"*.md": [
"prettier --config _dev/.prettierrc --write"
]
},
"devDependencies": {
"@babel/preset-react": "^7.14.5",
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/client-preset": "^4.1.0",
"@graphql-codegen/typescript": "4.0.1",
"@graphql-codegen/typescript-document-nodes": "4.0.1",
"@nestjs/cli": "^9.4.0",
"@nestjs/schematics": "^10.0.3",
"@nestjs/testing": "^10.2.4",
"@nx/cypress": "^16.9.1",
"@nx/eslint-plugin": "^16.9.1",
"@nx/jest": "^16.9.1",
"@nx/js": "^16.9.1",
"@nx/next": "^16.9.1",
"@nx/node": "^16.9.1",
"@nx/react": "^16.9.1",
"@nx/storybook": "^17.1.3",
"@nx/workspace": "^16.9.1",
"@storybook/addon-essentials": "^7.4.6",
"@storybook/addon-styling": "^1.3.7",
"@storybook/core-common": "^7.4.5",
"@storybook/core-server": "^7.4.5",
"@storybook/html-webpack5": "^7.4.5",
"@storybook/nextjs": "^7.5.3",
"@storybook/react-webpack5": "^7.4.5",
"@swc/cli": "~0.1.62",
"@swc/core": "~1.3.51",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.1",
"@types/mysql": "^2",
"@types/node": "^18.18.2",
"@types/passport": "^1.0.6",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react-test-renderer": "^18",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^6.10.0",
"autoprefixer": "^10.4.14",
"babel-jest": "^29.4.1",
"cypress": "^12.16.0",
"eslint": "^7.32.0",
"eslint-config-next": "14.0.1",
"eslint-plugin-fxa": "workspace:*",
"eslint-plugin-import": "2.28.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest-environment-node": "^29.4.1",
2021-05-24 21:44:40 +03:00
"json": "^11.0.0",
task(CI): build, unit test, and integration test jobs Because: - We wanted to run a few preliminary checks before proceeding to more expensive CI jobs. Checks include: - Compiling typescript in commonly referenced workspace packages - Linting code that has changed - Executing Unit Tests for code that has changed - We wanted to partition test operations into unit tests, and integration tests. Unit tests can be run relatively quickly and require no additional infrastructure. Integration tests require additional infrastructure and generally have longer execution times. Now that jobs are blocked from running until preliminary checks pass, one of which is unit tests, it is important to draw a distinction between these two types of tests. - We want to avoid unnecessary yarn installs and typescript compilations, which are time consuming. - We want to make sure that test results are published and failing tests can be easily viewed in the CI. This Commit: - Creates a build-and-validate job in the CI that builds, lints, and unit tests code prior to running any other jobs. - Creates unit-test job in CI config - Creates integration-test job in CI config - Removes redundant calls to compile workspace packages. These are now built up front, cached, and restored as needed for future runs. - Extends the create-lists script functionality to generate commands that can be executed with the parallel command. - Removes unnecessary yarn install operations. Invoking yarn workspace focus results in a yarn install. In the case of running tests this is largely unnecessary, because we already do a yarn install in the base-install step. - Make sure test results are exported as junit xml so the CI can report back on tests that were failing. This was done for a couple workspace packages, but many were lacking the capability. All test:unit and test:integration npm scripts now export this data. - Fixes the following issues encountered along the way: - Adds logs to monitor heap usage of jest tests. Some jest tests are still using a lot of memory. - Moves a few slow / long running tests from unit test to integration tests. - Ensures that jest.transform for ts-jest is always instructed to have the config option isolateModules is set to true. This definitely decreases memory overhead and resolves some of the OOM errors we were hitting. It was configured in some places but not everywhere. - Exports test results files for all tests - Exports all test artifacts - Uses gnu parallel to run tests in parallel. Turns out yarn workspaces foreach would give a false positive when an OOM was encountered. Fortunately, the parallel command offered an acceptable work around, and even offers some nice features like the load argument, which allows to control test execution a bit more efficiently.
2023-01-10 23:52:01 +03:00
"mocha-junit-reporter": "^2.2.0",
"mocha-multi": "^1.1.7",
"nx": "^16.9.1",
"nx-cloud": "16.4.0",
"persistgraphql": "^0.3.11",
"postcss": "^8.4.31",
"react-test-renderer": "^18.2.0",
"reflect-metadata": "^0.1.13",
"stylelint": "^15.10.1",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-recommended-scss": "^12.0.0",
"tailwindcss": "^3.3.3",
"ts-jest": "29.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
},
"workspaces": [
"packages/*"
],
"resolutions": {
"@babel/core": "^7.22.5",
"@babel/helper-module-imports": "^7.22.5",
"@babel/types": "^7.22.5",
"@grpc/grpc-js": "~1.6.0",
"@nestjs/cli/typescript": "^4.5.2",
"@svgr/webpack": "^8.0.1",
"@types/node": "^18.18.2",
"@types/react": "^18",
"browserid-crypto": "https://github.com/mozilla-fxa/browserid-crypto.git#5979544d13eeb15a02d0b9a6a7a08a698d54d37d",
"css-minimizer-webpack-plugin": ">=4 <5",
"elliptic": ">=6.5.4",
2022-04-12 01:37:28 +03:00
"eslint-plugin-import": "^2.25.2",
"fbjs/isomorphic-fetch": "^3.0.0",
"flat": ">=5.0.2",
"gobbledygook": "https://github.com/mozilla-fxa/gobbledygook.git#354042684056e57ca77f036989e907707a36cff2",
"google-gax": "2.30.5",
"http-proxy": "^1.18.1",
"minimist": "^1.2.6",
"moment:>2.0.0 <3": ">=2.29.4",
"node-forge": ">=1.3.0",
"plist": "^3.0.6",
"protobufjs:>6.0.0 <7": ">=6.11.4",
"tap/typescript": "^4.5.2",
"terser:>4.0.0 <5": ">=4.8.1",
"terser:>5 <6": ">=5.14.2",
"underscore": ">=1.13.2",
"url-parse": "^1.5.8"
},
"packageManager": "yarn@3.3.0"
2014-11-05 04:38:23 +03:00
}