From c21accbed588d43cb5a53b4ce5d061722e7740f2 Mon Sep 17 00:00:00 2001 From: Tycho Bokdam Date: Tue, 31 Oct 2023 11:01:05 +0100 Subject: [PATCH] feat: Update to NX 17 BREAKING CHANGE: Updated to NX 17 --- nx.json | 7 ++----- packages/changelog-notify/README.md | 1 + packages/core/README.md | 1 - packages/e2e-runner/README.md | 2 -- packages/firebase-hosting/README.md | 1 + packages/gcp-cloud-run/README.md | 1 + packages/gcp-deployment-manager/README.md | 1 + packages/gcp-functions/README.md | 5 ++--- packages/gcp-secrets/README.md | 9 ++++----- packages/gcp-storage/README.md | 12 ++++++------ packages/gcp-task-runner/README.md | 3 +-- packages/github-pages/README.md | 1 + packages/playwright/README.md | 1 + packages/pulumi/README.md | 1 - packages/strapi/README.md | 1 + packages/terraform/README.md | 1 - packages/translations/README.md | 10 ++++------ packages/vercel/README.md | 1 - 18 files changed, 26 insertions(+), 33 deletions(-) diff --git a/nx.json b/nx.json index 0101eee2..2315a116 100644 --- a/nx.json +++ b/nx.json @@ -18,12 +18,9 @@ "targetDefaults": { "build": { "dependsOn": ["^build"], - "inputs": ["production", "^production", "{workspaceRoot}/force-release"], + "inputs": ["production", "^production"], "cache": true }, - "version": { - "inputs": ["default", "^production", "{workspaceRoot}/force-release"] - }, "test": { "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"], "cache": true @@ -37,7 +34,7 @@ }, "namedInputs": { "default": ["{projectRoot}/**/*", "sharedGlobals"], - "sharedGlobals": [], + "sharedGlobals": ["{workspaceRoot}/force-release"], "production": ["default", "!{projectRoot}/src/test-setup.[jt]s"] }, "nxCloudAccessToken": "ZGQ5Y2MwYjUtMjA2MS00NDEwLTgzZmQtYzE0MTUwNTMwMzFmfHJlYWQtd3JpdGU=", diff --git a/packages/changelog-notify/README.md b/packages/changelog-notify/README.md index 1ae61c2f..126a792e 100644 --- a/packages/changelog-notify/README.md +++ b/packages/changelog-notify/README.md @@ -40,3 +40,4 @@ npm install -D @nx-extend/changelog-notify } } ``` + diff --git a/packages/core/README.md b/packages/core/README.md index 37b2103d..bad071fa 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -1,4 +1,3 @@ # Core Only for internal usage! - diff --git a/packages/e2e-runner/README.md b/packages/e2e-runner/README.md index 352f9a17..335e81e1 100644 --- a/packages/e2e-runner/README.md +++ b/packages/e2e-runner/README.md @@ -63,5 +63,3 @@ Example target } } ``` - - diff --git a/packages/firebase-hosting/README.md b/packages/firebase-hosting/README.md index 2e59f155..f01fafc4 100644 --- a/packages/firebase-hosting/README.md +++ b/packages/firebase-hosting/README.md @@ -60,3 +60,4 @@ add this target to the hosting section: | **`--site`** | `string` | `null` | Specify the site to deploy from the `.firebase.json` | | **`--project`** | `string` | | Firebase Project to deploy to | | **`--identifier`** | `string` | | Name of the hosting project in Firebase (if not defined `--site` is used by the firebase CLI | + diff --git a/packages/gcp-cloud-run/README.md b/packages/gcp-cloud-run/README.md index a468831e..67bbf2a4 100644 --- a/packages/gcp-cloud-run/README.md +++ b/packages/gcp-cloud-run/README.md @@ -30,3 +30,4 @@ npm install -D @nx-extend/gcp-cloud-run | **`--concurrency`** | `number` | 250 | amount of concurrent requests for instance | | **`--maxInstances`** | `number` | 10 | maximum amount of instances | | **`--minInstances`** | `number` | 0 | minimum amount of instances | + diff --git a/packages/gcp-deployment-manager/README.md b/packages/gcp-deployment-manager/README.md index 8efcf703..1309ea5c 100644 --- a/packages/gcp-deployment-manager/README.md +++ b/packages/gcp-deployment-manager/README.md @@ -25,3 +25,4 @@ nx g @nx-extend/gcp-deployment-manager:init | **`--project`** | `string` | | GCP project to deploy to | | **`--file`** | `string` | `null` | file from source to create | | **`--name`** | `string` | `null` | Name of the resource inside Google Cloud | + diff --git a/packages/gcp-functions/README.md b/packages/gcp-functions/README.md index a4567794..68c17b98 100644 --- a/packages/gcp-functions/README.md +++ b/packages/gcp-functions/README.md @@ -21,7 +21,6 @@ nx g @nx-extend/gcp-functions:init #### Available options: -| name | type | default | description | -| ------------ | -------- | ------- | ---------------------------------------------------- | - +| name | type | default | description | +|------|------|---------|-------------| diff --git a/packages/gcp-secrets/README.md b/packages/gcp-secrets/README.md index 8e97ed69..3809ac52 100644 --- a/packages/gcp-secrets/README.md +++ b/packages/gcp-secrets/README.md @@ -46,9 +46,8 @@ Add an environment variable named `GCP_SECRETS_ENCRYPTION_KEY` that holds your k ## Meta data explained -| Attribute | default | description | -| ------------ | -------- | ------- | -| status | | Status of the file, `encrypted` or `decrypted` | -| labels | `[]` | Array of labels to add to the secrets | +| Attribute | default | description | +|------------------|-----------|-------------------------------------------------------------| +| status | | Status of the file, `encrypted` or `decrypted` | +| labels | `[]` | Array of labels to add to the secrets | | onUpdateBehavior | `destroy` | What to do when updating, `destory`, `delete`, or `disable` | - diff --git a/packages/gcp-storage/README.md b/packages/gcp-storage/README.md index b8551762..97d15715 100644 --- a/packages/gcp-storage/README.md +++ b/packages/gcp-storage/README.md @@ -20,9 +20,9 @@ npm install -D @nx-extend/gcp-storage #### Available options: -| name | type | default | description | -| ------------ | -------- | ------- | ---------------------------------------------------- | -| bucket | string | | What bucket to upload to | -| directory | string | `/` | What directory of the apps dist folder to upload | -| gzip | boolean | false | Use gzip when uploading | -| gzipExtensions | string | | For what extensions to use gzip | +| name | type | default | description | +|----------------|---------|---------|--------------------------------------------------| +| bucket | string | | What bucket to upload to | +| directory | string | `/` | What directory of the apps dist folder to upload | +| gzip | boolean | false | Use gzip when uploading | +| gzipExtensions | string | | For what extensions to use gzip | diff --git a/packages/gcp-task-runner/README.md b/packages/gcp-task-runner/README.md index 6db2a003..9472ba34 100644 --- a/packages/gcp-task-runner/README.md +++ b/packages/gcp-task-runner/README.md @@ -17,6 +17,7 @@ npm install -D @nx-extend/gcp-task-runner ## Usage ### Enable task runner + Update your `nx.json` with the following ```json @@ -33,8 +34,6 @@ Update your `nx.json` with the following } ``` - ### Authenticate The task runner uses `@google-cloud/storage` which in turn is capable of using the env variable `GOOGLE_APPLICATION_CREDENTIALS`. - diff --git a/packages/github-pages/README.md b/packages/github-pages/README.md index 78449379..abfc22b5 100644 --- a/packages/github-pages/README.md +++ b/packages/github-pages/README.md @@ -9,3 +9,4 @@ Run `nx build github-pages` to build the library. ## Running unit tests Run `nx test github-pages` to execute the unit tests via [Jest](https://jestjs.io). + diff --git a/packages/playwright/README.md b/packages/playwright/README.md index 0a849ac4..a46ec90b 100644 --- a/packages/playwright/README.md +++ b/packages/playwright/README.md @@ -41,3 +41,4 @@ Update your project targets to the following } } ``` + diff --git a/packages/pulumi/README.md b/packages/pulumi/README.md index b08adb22..a6ee59fb 100644 --- a/packages/pulumi/README.md +++ b/packages/pulumi/README.md @@ -23,4 +23,3 @@ nx g @nx-extend/pulumi:init | name | type | default | description | |------|------|---------|-------------| - diff --git a/packages/strapi/README.md b/packages/strapi/README.md index 3e0431db..4521ed5c 100644 --- a/packages/strapi/README.md +++ b/packages/strapi/README.md @@ -39,3 +39,4 @@ nx g @nx-extend/strapi:init | **`--watchAdmin`** | `string` | `false` | Starts your application with the autoReload enabled and the front-end development server. It allows you to customize the administration panel | | **`--root`** | `string` | Project root | Root of the Strapi project to use | | **`--envVars`** | `object` | | Define env variables to set before building (can be used in project.json) | + diff --git a/packages/terraform/README.md b/packages/terraform/README.md index b5d6eca9..f99f315e 100644 --- a/packages/terraform/README.md +++ b/packages/terraform/README.md @@ -23,4 +23,3 @@ nx g @nx-extend/terraform:init | name | type | default | description | |------|------|---------|-------------| - diff --git a/packages/translations/README.md b/packages/translations/README.md index ca992588..eff2e712 100644 --- a/packages/translations/README.md +++ b/packages/translations/README.md @@ -21,14 +21,12 @@ nx g @nx-extend/translations:add #### Available options: -| name | type | default | description | -| ------------ | -------- | ------- | ---------------------------------------------------- | +| name | type | default | description | +|------|------|---------|-------------| ### Serve #### Available options: -| name | type | default | description | -| ------------ | -------- | ------- | ---------------------------------------------------- | - - +| name | type | default | description | +|------|------|---------|-------------| diff --git a/packages/vercel/README.md b/packages/vercel/README.md index 18e1c4d0..7244b77b 100644 --- a/packages/vercel/README.md +++ b/packages/vercel/README.md @@ -47,4 +47,3 @@ npx vercel teams switch npx vercel project add # Go to the Vercel dashboard, > settings > Project ID ``` -