fxa/nx.json

229 строки
6.0 KiB
JSON

{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"build": {
"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"
],
"cache": true
},
"build-storybook": {
"dependsOn": ["build"],
"inputs": ["production", "^production"],
"outputs": ["{projectRoot}/storybook-static"],
"cache": true
},
"compile": {
"dependsOn": ["^compile"],
"inputs": ["typescript", "^typescript"],
"outputs": ["{projectRoot}/build", "{projectRoot}/dist"],
"cache": true
},
"gql-copy": {
"dependsOn": [
{
"projects": ["fxa-settings", "fxa-admin-panel"],
"target": "gql-extract"
}
],
"inputs": ["typescript", "^typescript"],
"outputs": ["{projectRoot}/src/config/gql/allowlist"],
"cache": true
},
"gql-extract": {
"dependsOn": [],
"inputs": ["typescript"],
"outputs": ["{workspaceRoot}/configs/gql/allowlist"],
"cache": true
},
"lint": {
"inputs": ["lint", "{workspaceRoot}/.eslintrc.json"],
"outputs": ["{projectRoot}/.eslintcache"],
"cache": true
},
"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/**/*.@(ftl|po|js|json|sh|py|json)",
"{workspaceRoot}/external/legal-docs/**/*.@(md|json)"
],
"cache": true
},
"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"
],
"cache": true
},
"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"
],
"cache": true
},
"test-unit": {
"dependsOn": ["build", "gen-keys"],
"inputs": ["test", "^test"],
"outputs": [
"{projectRoot}/coverage",
"{projectRoot}/.nyc_output",
"{projectRoot}/test-results.xml"
],
"cache": true
},
"@nx/jest:jest": {
"cache": true,
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"options": {
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
},
"@nx/js:tsc": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
},
"@nx/js:swc": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
},
"@nx/esbuild:esbuild": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*.*", "sharedGlobals"],
"lint": ["{projectRoot}/**/*.@(js|jsx|ts|tsx)"],
"production": [
"default",
"{workspaceRoot}/external/l10n/**/*.@(ftl|po)",
"{workspaceRoot}/external/legal-docs/**/*.md",
"!{projectRoot}/.eslintrc.json",
"!{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"
],
"sharedGlobals": [
{
"runtime": "node -v"
},
{
"runtime": "tsc -v"
}
],
"test": ["default", "{workspaceRoot}/jest.preset.js"],
"typescript": [
"{projectRoot}/**/*.@(ts|tsx)",
"{projectRoot}/package.json",
"{projectRoot}/tsconfig.*",
"sharedGlobals"
]
},
"cli": {
"packageManager": "yarn"
},
"workspaceLayout": {
"appsDir": "apps",
"libsDir": "libs"
},
"generators": {
"@nx/react": {
"application": {
"babel": true
},
"library": {
"unitTestRunner": "jest"
}
},
"@nx/next": {
"application": {
"style": "none",
"linter": "eslint"
}
}
},
"neverConnectToCloud": true,
"plugins": [
{
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "lint"
}
},
{
"plugin": "@nx/next/plugin",
"options": {
"startTargetName": "next:start",
"buildTargetName": "build",
"devTargetName": "dev",
"serveStaticTargetName": "serve-static"
}
}
]
}