194 lines
5.0 KiB
JSON
194 lines
5.0 KiB
JSON
{
|
|
"$schema": "packages/nx/schemas/nx-schema.json",
|
|
"affected": {
|
|
"defaultBase": "master"
|
|
},
|
|
"tasksRunnerOptions": {
|
|
"default": {
|
|
"runner": "nx-cloud",
|
|
"options": {
|
|
"accessToken": "NDg1NTA3MTAtOGFmZC00YmIwLTk2Y2MtOTkzNzc4ZTczYTlkfHJlYWQtb25seQ==",
|
|
"cacheableOperations": [
|
|
"build",
|
|
"lint-base",
|
|
"lint",
|
|
"build-ng",
|
|
"build-base",
|
|
"build-native",
|
|
"e2e",
|
|
"e2e-macos",
|
|
"test",
|
|
"test-native",
|
|
"sitemap",
|
|
"build-storybook"
|
|
],
|
|
"cacheDirectory": "/tmp/nx-cache",
|
|
"parallel": 1,
|
|
"url": "https://staging.nx.app"
|
|
}
|
|
}
|
|
},
|
|
"workspaceLayout": {
|
|
"appsDir": "",
|
|
"libsDir": ""
|
|
},
|
|
"namedInputs": {
|
|
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
|
"production": [
|
|
"default",
|
|
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
|
|
"!{projectRoot}/tsconfig.spec.json",
|
|
"!{projectRoot}/jest.config.[jt]s",
|
|
"!{projectRoot}/.eslintrc.json",
|
|
"!{projectRoot}/.storybook/**/*",
|
|
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)"
|
|
],
|
|
"sharedGlobals": ["{workspaceRoot}/babel.config.json"],
|
|
"native": [
|
|
"{projectRoot}/**/*.rs",
|
|
"{projectRoot}/**/Cargo.*",
|
|
{
|
|
"runtime": "node -p 'process.platform'"
|
|
}
|
|
]
|
|
},
|
|
"targetDefaults": {
|
|
"build": {
|
|
"dependsOn": ["build-base"],
|
|
"inputs": ["production", "^production"]
|
|
},
|
|
"build-native": {
|
|
"inputs": ["native"]
|
|
},
|
|
"build-base": {
|
|
"dependsOn": ["^build-base", "build-native"],
|
|
"inputs": ["production", "^production"],
|
|
"executor": "@nx/js:tsc",
|
|
"options": {
|
|
"outputPath": "build/{projectRoot}",
|
|
"tsConfig": "{projectRoot}/tsconfig.lib.json",
|
|
"main": "{projectRoot}/index.ts",
|
|
"updateBuildableProjectDepsInPackageJson": false
|
|
},
|
|
"outputs": ["{options.outputPath}"]
|
|
},
|
|
"test-native": {
|
|
"inputs": ["native"],
|
|
"executor": "@monodon/rust:test",
|
|
"options": {}
|
|
},
|
|
"test": {
|
|
"dependsOn": ["test-native", "build-native", "^build-native"],
|
|
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
|
|
"executor": "@nx/jest:jest",
|
|
"options": {
|
|
"jestConfig": "{projectRoot}/jest.config.ts",
|
|
"passWithNoTests": true
|
|
},
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"]
|
|
},
|
|
"lint": {
|
|
"dependsOn": ["build-native", "^build-native"],
|
|
"inputs": [
|
|
"default",
|
|
"{workspaceRoot}/.eslintrc.json",
|
|
"{workspaceRoot}/tools/eslint-rules/**/*"
|
|
],
|
|
"executor": "@nx/linter:eslint",
|
|
"options": {
|
|
"lintFilePatterns": [
|
|
"{projectRoot}/**/*.{ts,tsx,js,jsx}",
|
|
"{projectRoot}/**/executors/**/schema.json",
|
|
"{projectRoot}/**/generators/**/schema.json",
|
|
"{projectRoot}/generators.json",
|
|
"{projectRoot}/executors.json",
|
|
"{projectRoot}/package.json",
|
|
"{projectRoot}/migrations.json"
|
|
]
|
|
},
|
|
"outputs": ["{options.outputFile}"]
|
|
},
|
|
"e2e": {
|
|
"executor": "nx:run-commands",
|
|
"inputs": [
|
|
"default",
|
|
"^production",
|
|
{
|
|
"env": "SELECTED_CLI"
|
|
},
|
|
{
|
|
"env": "SELECTED_PM"
|
|
},
|
|
{
|
|
"env": "NX_E2E_CI_CACHE_KEY"
|
|
},
|
|
{
|
|
"env": "CI"
|
|
}
|
|
],
|
|
"options": {
|
|
"commands": [
|
|
{
|
|
"command": "yarn e2e-start-local-registry"
|
|
},
|
|
{
|
|
"command": "yarn e2e-build-package-publish"
|
|
},
|
|
{
|
|
"command": "nx run-e2e-tests {projectName}"
|
|
}
|
|
],
|
|
"parallel": false
|
|
}
|
|
},
|
|
"e2e-macos": {
|
|
"executor": "nx:run-commands",
|
|
"inputs": [
|
|
"default",
|
|
"^production",
|
|
{
|
|
"env": "SELECTED_CLI"
|
|
},
|
|
{
|
|
"env": "SELECTED_PM"
|
|
},
|
|
{
|
|
"env": "NX_E2E_CI_CACHE_KEY"
|
|
}
|
|
],
|
|
"options": {
|
|
"commands": [
|
|
{
|
|
"command": "yarn e2e-start-local-registry"
|
|
},
|
|
{
|
|
"command": "yarn e2e-build-package-publish"
|
|
},
|
|
{
|
|
"command": "nx run-e2e-tests {projectName}"
|
|
}
|
|
],
|
|
"parallel": false
|
|
}
|
|
},
|
|
"e2e-base": {
|
|
"inputs": ["default", "^production"]
|
|
},
|
|
"run-e2e-tests": {
|
|
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
|
|
"executor": "@nx/jest:jest",
|
|
"options": {
|
|
"jestConfig": "{projectRoot}/jest.config.ts",
|
|
"passWithNoTests": true,
|
|
"runInBand": true
|
|
},
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"]
|
|
},
|
|
"build-storybook": {
|
|
"inputs": ["default", "^production", "{workspaceRoot}/.storybook/**/*"]
|
|
}
|
|
},
|
|
"defaultProject": "@nrwl/nx-source",
|
|
"plugins": ["@monodon/rust"]
|
|
}
|