domjtalbot/nx-mesh

View on GitHub
nx.json

Summary

Maintainability
Test Coverage
{
  "$schema": "./node_modules/nx/schemas/nx-schema.json",
  "npmScope": "nx-mesh",
  "affected": {
    "defaultBase": "main"
  },
  "tasksRunnerOptions": {
    "default": {
      "runner": "@nrwl/nx-cloud",
      "options": {
        "cacheableOperations": [
          "build",
          "build-bundle",
          "build-non-bundle",
          "lint",
          "test",
          "e2e"
        ],
        "accessToken": "NzExMGIxYWUtZjdkYy00MjRjLWI5NjItMjlkYmU0OWRjNWY2fHJlYWQ="
      }
    }
  },
  "generators": {
    "@nrwl/react": {
      "application": {
        "style": "css",
        "linter": "eslint",
        "bundler": "webpack",
        "babel": true
      },
      "library": {
        "style": "css",
        "linter": "eslint"
      },
      "component": {
        "style": "css"
      }
    },
    "@nrwl/next": {
      "application": {
        "style": "css",
        "linter": "eslint"
      }
    },
    "nx-mesh": {
      "application": {
        "meshConfig": "yml",
        "linter": "eslint"
      },
      "sdk": {
        "meshConfig": "json",
        "linter": "eslint"
      }
    }
  },
  "defaultProject": "nx-mesh",
  "targetDefaults": {
    "build": {
      "dependsOn": ["^build"],
      "inputs": ["production", "^production"]
    },
    "e2e": {
      "dependsOn": ["^build"],
      "inputs": ["default", "^production"]
    },
    "test": {
      "dependsOn": ["^build"],
      "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"]
    },
    "serve": {
      "dependsOn": ["build"]
    },
    "validate": {
      "dependsOn": ["build"]
    },
    "lint": {
      "inputs": ["default", "{workspaceRoot}/.eslintrc.json"]
    }
  },
  "namedInputs": {
    "default": ["{projectRoot}/**/*", "sharedGlobals"],
    "sharedGlobals": ["{workspaceRoot}/babel.config.json"],
    "production": [
      "default",
      "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
      "!{projectRoot}/tsconfig.spec.json",
      "!{projectRoot}/jest.config.[jt]s",
      "!{projectRoot}/.eslintrc.json"
    ]
  },
  "workspaceLayout": {
    "appsDir": "examples",
    "libsDir": "examples"
  }
}