Skip to content

Commit

Permalink
Ensure all NPM packages have readmes included in their builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrgicak committed Feb 25, 2025
1 parent 76ed0ac commit 73e4102
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/php-wasm/progress/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
"projectType": "library",
"targets": {
"build": {
"executor": "nx:noop",
"dependsOn": ["build:README"]
},
"build:README": {
"executor": "nx:run-commands",
"options": {
"commands": [
"cp packages/php-wasm/progress/README.md dist/packages/php-wasm/progress"
]
},
"dependsOn": ["build:package-json"]
},
"build:package-json": {
"executor": "@wp-playground/nx-extensions:package-json",
"options": {
"tsConfig": "packages/php-wasm/progress/tsconfig.lib.json",
Expand Down
13 changes: 13 additions & 0 deletions packages/php-wasm/scopes/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
"projectType": "library",
"targets": {
"build": {
"executor": "nx:noop",
"dependsOn": ["build:README"]
},
"build:README": {
"executor": "nx:run-commands",
"options": {
"commands": [
"cp packages/php-wasm/scopes/README.md dist/packages/php-wasm/scopes"
]
},
"dependsOn": ["build:package-json"]
},
"build:package-json": {
"executor": "@wp-playground/nx-extensions:package-json",
"options": {
"tsConfig": "packages/php-wasm/scopes/tsconfig.lib.json",
Expand Down
13 changes: 13 additions & 0 deletions packages/playground/cli/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
"projectType": "library",
"targets": {
"build": {
"executor": "nx:noop",
"dependsOn": ["build:README"]
},
"build:README": {
"executor": "nx:run-commands",
"options": {
"commands": [
"cp packages/playground/cli/README.md dist/packages/playground/cli"
]
},
"dependsOn": ["build:package-json"]
},
"build:package-json": {
"executor": "@wp-playground/nx-extensions:package-json",
"options": {
"tsConfig": "packages/playground/cli/tsconfig.lib.json",
Expand Down
13 changes: 13 additions & 0 deletions packages/playground/components/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
"projectType": "library",
"targets": {
"build": {
"executor": "nx:noop",
"dependsOn": ["build:README"]
},
"build:README": {
"executor": "nx:run-commands",
"options": {
"commands": [
"cp packages/playground/components/README.md dist/packages/playground/components"
]
},
"dependsOn": ["build:package-json"]
},
"build:package-json": {
"executor": "@nx/vite:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
Expand Down
13 changes: 13 additions & 0 deletions packages/playground/remote/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
"projectType": "library",
"targets": {
"build": {
"executor": "nx:noop",
"dependsOn": ["build:README"]
},
"build:README": {
"executor": "nx:run-commands",
"options": {
"commands": [
"cp packages/playground/remote/README.md dist/packages/playground/remote"
]
},
"dependsOn": ["build:package-json"]
},
"build:package-json": {
"executor": "@nx/vite:build",
"outputs": ["{options.outputPath}"],
"options": {
Expand Down
13 changes: 13 additions & 0 deletions packages/playground/sync/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@
"tags": ["scope:web-client"],
"targets": {
"build": {
"executor": "nx:noop",
"dependsOn": ["build:README"]
},
"build:README": {
"executor": "nx:run-commands",
"options": {
"commands": [
"cp packages/playground/sync/README.md dist/packages/playground/sync"
]
},
"dependsOn": ["build:package-json"]
},
"build:package-json": {
"executor": "@nx/vite:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
Expand Down

0 comments on commit 73e4102

Please sign in to comment.