From 55b15bc5679838452d8ead662424707cfd589973 Mon Sep 17 00:00:00 2001 From: Blair Lierman Date: Sat, 13 Jan 2024 12:33:43 -0800 Subject: [PATCH] NX Cloud Token and Workspace Fixes --- .gitignore | 1 + .jest-board-game-web-apps.code-workspace | 7 ++++ nx.json | 49 +++++++++++++++++++++--- 3 files changed, 52 insertions(+), 5 deletions(-) create mode 100644 .jest-board-game-web-apps.code-workspace diff --git a/.gitignore b/.gitignore index e5cb337..6416246 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ speed-measure-plugin*.json /connect.lock /coverage /libpeerconnection.log +/.nx npm-debug.log yarn-error.log testem.log diff --git a/.jest-board-game-web-apps.code-workspace b/.jest-board-game-web-apps.code-workspace new file mode 100644 index 0000000..c7223d8 --- /dev/null +++ b/.jest-board-game-web-apps.code-workspace @@ -0,0 +1,7 @@ +{ + "folders": [ + { + "path": "." + } + ] +} diff --git a/nx.json b/nx.json index 0e71f91..f7e8f55 100644 --- a/nx.json +++ b/nx.json @@ -53,10 +53,49 @@ ] }, "lint": { - "inputs": [ - "default", - "{workspaceRoot}/.eslintrc.json" - ] + "inputs": ["default", "{workspaceRoot}/.eslintrc.json"], + "cache": true + }, + "build": { + "inputs": ["production", "^production"], + "cache": true + }, + "e2e": { + "cache": true, + "inputs": ["default", "^production"] + }, + "@nx/jest:jest": { + "inputs": ["default", "^default", "{workspaceRoot}/jest.preset.js"], + "cache": true, + "options": { + "passWithNoTests": true + }, + "configurations": { + "ci": { + "ci": true, + "codeCoverage": true + } + } } - } + }, + "namedInputs": { + "default": ["{projectRoot}/**/*", "sharedGlobals"], + "sharedGlobals": [ + "{workspaceRoot}/angular.json", + "{workspaceRoot}/tslint.json", + "{workspaceRoot}/nx.json", + "{workspaceRoot}/tsconfig.base.json" + ], + "production": [ + "default", + "!{projectRoot}/.eslintrc.json", + "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)", + "!{projectRoot}/tsconfig.spec.json", + "!{projectRoot}/jest.config.[jt]s", + "!{projectRoot}/src/test-setup.[jt]s", + "!{projectRoot}/**/*.spec.[jt]s", + "!{projectRoot}/karma.conf.js" + ] + }, + "nxCloudAccessToken": "YmNkMzMwMjItNjQwYS00MTEyLTkxZTgtYTkwYmQzMGFmOGEyfHJlYWQtd3JpdGU=" }