2023-04-27 19:56:10 +03:00
|
|
|
{
|
|
|
|
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
|
|
|
"npmScope": "fxa",
|
|
|
|
"tasksRunnerOptions": {
|
|
|
|
"default": {
|
2023-07-12 00:36:22 +03:00
|
|
|
"runner": "nx-cloud",
|
2023-04-27 19:56:10 +03:00
|
|
|
"options": {
|
2023-08-29 21:19:54 +03:00
|
|
|
"cacheableOperations": [
|
|
|
|
"build",
|
|
|
|
"build-l10n",
|
|
|
|
"build-storybook",
|
|
|
|
"compile",
|
|
|
|
"gql-copy",
|
|
|
|
"gql-extract",
|
|
|
|
"lint",
|
|
|
|
"prebuild",
|
|
|
|
"test-e2e",
|
|
|
|
"test-integration",
|
|
|
|
"test-unit"
|
|
|
|
],
|
2023-07-12 00:36:22 +03:00
|
|
|
"accessToken": "YzRhMzhiNjEtODE0OS00Njg1LTg2NDktMGJlZjBjNmJjMTc1fHJlYWQtb25seQ=="
|
2023-04-27 19:56:10 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"targetDefaults": {
|
|
|
|
"build": {
|
2023-08-29 21:19:54 +03:00
|
|
|
"dependsOn": ["prebuild", "^build"],
|
|
|
|
"inputs": ["production", "^production"],
|
|
|
|
"outputs": [
|
|
|
|
"{projectRoot}/*.tsbuildinfo",
|
|
|
|
"{projectRoot}/*/.tmp",
|
|
|
|
"{projectRoot}/**/*.d.ts",
|
|
|
|
"{projectRoot}/app/i18n",
|
|
|
|
"{projectRoot}/build",
|
|
|
|
"{projectRoot}/dist",
|
|
|
|
"{projectRoot}/lib/senders/emails/css",
|
|
|
|
"{projectRoot}/locale",
|
|
|
|
"{projectRoot}/public",
|
|
|
|
"{projectRoot}/src/styles/*.css",
|
|
|
|
"{projectRoot}/test/**/*.ftl",
|
|
|
|
"{projectRoot}/test/**/client.json"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"build-storybook": {
|
|
|
|
"dependsOn": ["build"],
|
|
|
|
"inputs": ["production", "^production"],
|
|
|
|
"outputs": ["{projectRoot}/storybook-static"]
|
|
|
|
},
|
|
|
|
"compile": {
|
|
|
|
"dependsOn": ["^compile"],
|
|
|
|
"inputs": ["typescript", "^typescript"],
|
|
|
|
"outputs": ["{projectRoot}/build", "{projectRoot}/dist"]
|
|
|
|
},
|
|
|
|
"gql-copy": {
|
|
|
|
"dependsOn": [
|
|
|
|
{
|
|
|
|
"projects": ["fxa-settings", "fxa-admin-panel"],
|
|
|
|
"target": "gql-extract"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"inputs": ["typescript", "^typescript"],
|
|
|
|
"outputs": ["{projectRoot}/src/config/gql/allowlist"]
|
|
|
|
},
|
|
|
|
"gql-extract": {
|
|
|
|
"dependsOn": [],
|
|
|
|
"inputs": ["typescript"],
|
|
|
|
"outputs": ["{workspaceRoot}/configs/gql/allowlist"]
|
2023-04-27 19:56:10 +03:00
|
|
|
},
|
|
|
|
"lint": {
|
2023-08-29 21:19:54 +03:00
|
|
|
"inputs": ["lint", "{workspaceRoot}/.eslintrc.json"],
|
|
|
|
"outputs": ["{projectRoot}/.eslintcache"]
|
|
|
|
},
|
|
|
|
"prebuild": {
|
|
|
|
"dependsOn": ["gql-copy"],
|
|
|
|
"inputs": [],
|
|
|
|
"outputs": [
|
|
|
|
"{projectRoot}/public/locales",
|
|
|
|
"{projectRoot}/public/legal-docs",
|
|
|
|
"{projectRoot}/server/config/local.json",
|
|
|
|
"{projectRoot}/var",
|
|
|
|
"{projectRoot}/vendor/ejs.js",
|
|
|
|
"{workspaceRoot}/external/l10n",
|
|
|
|
"{workspaceRoot}/external/legal-docs"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"restart": {
|
|
|
|
"dependsOn": ["build", "^restart"],
|
|
|
|
"inputs": ["production", "^production"],
|
|
|
|
"outputs": []
|
|
|
|
},
|
|
|
|
"start": {
|
|
|
|
"dependsOn": ["build", "gen-keys", "^start"],
|
|
|
|
"inputs": ["production", "^production"],
|
|
|
|
"outputs": []
|
|
|
|
},
|
|
|
|
"storybook": {
|
|
|
|
"dependsOn": ["build"],
|
|
|
|
"inputs": ["production", "^production"],
|
|
|
|
"outputs": ["{projectRoot}/storybook-static"]
|
|
|
|
},
|
|
|
|
"test": {
|
|
|
|
"inputs": ["production", "^production"],
|
|
|
|
"dependsOn": ["test-unit", "test-integration", "test-e2e"],
|
|
|
|
"outputs": [
|
|
|
|
"{projectRoot}/coverage",
|
|
|
|
"{projectRoot}/.nyc_output",
|
|
|
|
"{projectRoot}/test-results.xml"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"test-e2e": {
|
|
|
|
"dependsOn": ["build"],
|
|
|
|
"inputs": ["production", "^production"],
|
|
|
|
"outputs": [
|
|
|
|
"{projectRoot}/coverage",
|
|
|
|
"{projectRoot}/.nyc_output",
|
|
|
|
"{projectRoot}/test-results.xml"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"test-integration": {
|
|
|
|
"dependsOn": ["build", "gen-keys"],
|
|
|
|
"inputs": ["test", "^test"],
|
|
|
|
"outputs": [
|
|
|
|
"{projectRoot}/coverage",
|
|
|
|
"{projectRoot}/.nyc_output",
|
|
|
|
"{projectRoot}/test-results.xml",
|
|
|
|
"{projectRoot}/test/scripts/test_output"
|
|
|
|
]
|
2023-04-27 19:56:10 +03:00
|
|
|
},
|
2023-08-04 01:38:16 +03:00
|
|
|
"test-unit": {
|
2023-08-29 21:19:54 +03:00
|
|
|
"dependsOn": ["build", "gen-keys"],
|
|
|
|
"inputs": ["test", "^test"],
|
|
|
|
"outputs": [
|
|
|
|
"{projectRoot}/coverage",
|
|
|
|
"{projectRoot}/.nyc_output",
|
|
|
|
"{projectRoot}/test-results.xml"
|
|
|
|
]
|
2023-04-27 19:56:10 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"namedInputs": {
|
2023-08-29 21:19:54 +03:00
|
|
|
"default": ["{projectRoot}/**/*.*", "sharedGlobals"],
|
|
|
|
"lint": ["{projectRoot}/**/*.@(js|jsx|ts|tsx)"],
|
2023-04-27 19:56:10 +03:00
|
|
|
"production": [
|
|
|
|
"default",
|
2023-08-29 21:19:54 +03:00
|
|
|
"{workspaceRoot}/external/l10n/**/*.ftl",
|
|
|
|
"{workspaceRoot}/external/legal-docs/**/*.md",
|
2023-04-27 19:56:10 +03:00
|
|
|
"!{projectRoot}/.eslintrc.json",
|
2023-08-29 21:19:54 +03:00
|
|
|
"!{projectRoot}/.storybook/**/*",
|
|
|
|
"!{projectRoot}/**/test/**/*",
|
|
|
|
"!{projectRoot}/**/tests/**/*",
|
|
|
|
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx)",
|
|
|
|
"!{projectRoot}/**/*.(spec|test).@(js|jsx|ts|tsx)",
|
|
|
|
"!{projectRoot}/jest.config.@(js|ts)",
|
|
|
|
"!{projectRoot}/tsconfig.+(spec|storybook).json"
|
2023-04-27 19:56:10 +03:00
|
|
|
],
|
2023-08-29 21:19:54 +03:00
|
|
|
"sharedGlobals": [{ "runtime": "node -v" }, { "runtime": "tsc -v" }],
|
|
|
|
"test": ["default", "{workspaceRoot}/jest.preset.js"],
|
|
|
|
"typescript": [
|
|
|
|
"{projectRoot}/**/*.@(ts|tsx)",
|
|
|
|
"{projectRoot}/package.json",
|
|
|
|
"{projectRoot}/tsconfig.*",
|
|
|
|
"sharedGlobals"
|
|
|
|
]
|
2023-04-27 19:56:10 +03:00
|
|
|
},
|
|
|
|
"cli": {
|
|
|
|
"packageManager": "yarn"
|
|
|
|
},
|
|
|
|
"workspaceLayout": {
|
|
|
|
"appsDir": "apps",
|
|
|
|
"libsDir": "libs"
|
2023-06-14 21:42:07 +03:00
|
|
|
},
|
|
|
|
"generators": {
|
|
|
|
"@nx/react": {
|
|
|
|
"application": {
|
|
|
|
"babel": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"@nx/next": {
|
|
|
|
"application": {
|
|
|
|
"style": "none",
|
|
|
|
"linter": "eslint"
|
|
|
|
}
|
|
|
|
}
|
2023-04-27 19:56:10 +03:00
|
|
|
}
|
|
|
|
}
|