mirror of
https://github.com/mozilla/fxa.git
synced 2025-12-28 07:03:55 +00:00
Because: * We want to introduce nx to the repository This commit: * Adds nx with working builds Closes: FXA-7341 Co-authored-by: dschom <dschomburg@mozilla.com>
130 lines
4.4 KiB
JSON
130 lines
4.4 KiB
JSON
{
|
|
"name": "fxa-graphql-api",
|
|
"version": "0.0.0",
|
|
"description": "FxA GraphQL API",
|
|
"scripts": {
|
|
"prebuild": "rimraf dist",
|
|
"build": "nest build",
|
|
"compile": "tsc --noEmit",
|
|
"lint": "eslint .",
|
|
"audit": "npm audit --json | audit-filter --nsp-config=.nsprc --audit=-",
|
|
"watch": "tsc -w",
|
|
"start": "pm2 start pm2.config.js && ../../_scripts/check-url.sh localhost:8290/__heartbeat__",
|
|
"stop": "pm2 stop pm2.config.js",
|
|
"restart": "pm2 restart pm2.config.js",
|
|
"delete": "pm2 delete pm2.config.js",
|
|
"test-unit": "JEST_JUNIT_OUTPUT_FILE=../../artifacts/tests/$npm_package_name/jest-unit.xml jest --coverage --runInBand --logHeapUsage --forceExit -t '^(?!.*?#integration).*' --ci --reporters=default --reporters=jest-junit",
|
|
"test-integration": "JEST_JUNIT_OUTPUT_FILE=../../artifacts/tests/$npm_package_name/jest-integration.xml jest --coverage --runInBand --logHeapUsage -t '#integration' --ci --reporters=default --reporters=jest-junit && yarn test-e2e",
|
|
"test": "jest --runInBand --logHeapUsage && yarn test-e2e",
|
|
"test-watch": "jest --watch",
|
|
"test-cov": "jest --coverage",
|
|
"test-debug": "node --inspect-brk -r tsconfig-paths/register -r esbuild-register node_modules/.bin/jest --runInBand --logHeapUsage",
|
|
"test-e2e": "JEST_JUNIT_OUTPUT_FILE=../../artifacts/tests/$npm_package_name/jest-e2e.xml jest --runInBand --logHeapUsage --config ./test/jest-e2e.json --ci --reporters=default --reporters=jest-junit",
|
|
"email-bounce": "node -r esbuild-register ./scripts/email-bounce.ts"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/mozilla/fxa.git"
|
|
},
|
|
"author": "Mozilla (https://mozilla.org/)",
|
|
"license": "MPL-2.0",
|
|
"bugs": {
|
|
"url": "https://github.com/mozilla/fxa/issues"
|
|
},
|
|
"homepage": "https://github.com/mozilla/fxa#readme",
|
|
"readmeFilename": "README.md",
|
|
"dependencies": {
|
|
"@nestjs/common": "^9.4.1",
|
|
"@nestjs/config": "^2.3.1",
|
|
"@nestjs/core": "^9.2.0",
|
|
"@nestjs/graphql": "^8.0.2",
|
|
"@nestjs/mapped-types": "^1.2.0",
|
|
"@nestjs/passport": "^9.0.3",
|
|
"@nestjs/platform-express": "^9.4.0",
|
|
"@sentry/integrations": "^6.19.1",
|
|
"@sentry/node": "^6.19.1",
|
|
"apollo-datasource": "^3.3.1",
|
|
"apollo-server": "^2.26.0",
|
|
"apollo-server-express": "^2.26.0",
|
|
"class-transformer": "^0.5.1",
|
|
"class-validator": "^0.14.0",
|
|
"commander": "^6.0.0",
|
|
"convict": "^6.2.4",
|
|
"convict-format-with-moment": "^6.2.0",
|
|
"convict-format-with-validator": "^6.2.0",
|
|
"eslint-config-react-app": "^7.0.1",
|
|
"express": "^4.17.3",
|
|
"fxa-auth-client": "workspace:*",
|
|
"fxa-auth-server": "workspace:*",
|
|
"fxa-profile-server": "workspace:*",
|
|
"fxa-shared": "workspace:*",
|
|
"get-stream": "^6.0.1",
|
|
"graphql": "^15.6.1",
|
|
"graphql-parse-resolve-info": "^4.13.0",
|
|
"graphql-query-complexity": "0.8.0",
|
|
"graphql-tools": "^8.3.6",
|
|
"graphql-upload": "^13.0.0",
|
|
"helmet": "^6.0.0",
|
|
"hot-shots": "^10.0.0",
|
|
"ioredis": "^4.28.2",
|
|
"knex": "^2.4.0",
|
|
"mozlog": "^3.0.2",
|
|
"mysql": "^2.18.1",
|
|
"objection": "^2.2.17",
|
|
"passport": "^0.6.0",
|
|
"passport-http-bearer": "^1.0.1",
|
|
"reflect-metadata": "^0.1.13",
|
|
"rimraf": "^5.0.0",
|
|
"rxjs": "^7.8.0",
|
|
"superagent": "^8.0.0",
|
|
"tslib": "^2.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@nestjs/cli": "^9.4.0",
|
|
"@types/chance": "^1.1.2",
|
|
"@types/convict": "^5.2.2",
|
|
"@types/get-stream": "3.0.2",
|
|
"@types/graphql": "^14.5.0",
|
|
"@types/graphql-upload": "^8.0.5",
|
|
"@types/ioredis": "^4.26.4",
|
|
"@types/jest": "^29.2.5",
|
|
"@types/node": "^18.14.2",
|
|
"@types/passport": "^1.0.6",
|
|
"@types/passport-http-bearer": "^1.0.36",
|
|
"@types/superagent": "4.1.11",
|
|
"@types/supertest": "^2.0.11",
|
|
"@types/yargs": "^17.0.0",
|
|
"audit-filter": "^0.5.0",
|
|
"chance": "^1.1.8",
|
|
"esbuild": "^0.17.15",
|
|
"esbuild-register": "^3.2.0",
|
|
"eslint": "^7.32.0",
|
|
"jest": "29.3.1",
|
|
"nock": "^13.3.0",
|
|
"pm2": "^5.3.0",
|
|
"prettier": "^2.3.1",
|
|
"supertest": "^6.3.0",
|
|
"ts-jest": "^29.1.0",
|
|
"typescript": "^4.9.3"
|
|
},
|
|
"jest": {
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"json",
|
|
"ts"
|
|
],
|
|
"rootDir": "src",
|
|
"testRegex": ".spec.ts$",
|
|
"transform": {
|
|
"^.+\\.(t|j)s$": [
|
|
"ts-jest",
|
|
{
|
|
"isolatedModules": true
|
|
}
|
|
]
|
|
},
|
|
"coverageDirectory": "./coverage",
|
|
"testEnvironment": "node"
|
|
}
|
|
}
|