Skip to content

Commit

Permalink
chore(script): add export-dynamic:clean script
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Schultz <pschultz@pobox.com>
  • Loading branch information
schultzp2020 committed Oct 18, 2024
1 parent a8fd79f commit 83bede0
Show file tree
Hide file tree
Showing 38 changed files with 44 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"new": "janus-cli new --do-not-edit-packages",
"prepare": "husky install",
"export-dynamic": "turbo run export-dynamic",
"export-dynamic:clean": "turbo run export-dynamic -- -- --clean",
"export-dynamic:clean": "turbo run export-dynamic:clean",
"versions:bump": "backstage-cli versions:bump && find . -name 'package.json' ! -path '*/node_modules/*' -exec sed -i -e '/devDependencies/,/\\\\}/{ s/\\\"\\\\^/\\\"/; }' {} ; && yarn install && turbo run export-dynamic:clean",
"packages:version": "changeset version && yarn install && turbo run export-dynamic:clean --concurrency=75% --affected && git add .\\*package.json .\\*yarn.lock",
"packages:publish": "turbo run build --concurrency=75% --filter=@janus-idp/* && changeset publish"
Expand Down
1 change: 1 addition & 0 deletions plugins/3scale-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/aap-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/acr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/analytics-module-matomo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"tsc": "tsc",
"prettier:check": "prettier --ignore-unknown --check .",
"prettier:fix": "prettier --ignore-unknown --write .",
Expand Down
1 change: 1 addition & 0 deletions plugins/analytics-provider-segment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"tsc": "tsc",
"prettier:check": "prettier --ignore-unknown --check .",
"prettier:fix": "prettier --ignore-unknown --write .",
Expand Down
1 change: 1 addition & 0 deletions plugins/argocd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/bulk-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/dynamic-plugins-info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/feedback-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"postversion": "yarn run export-dynamic",
"tsc": "tsc",
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies --clean",
"prettier:check": "prettier --ignore-unknown --check .",
"prettier:fix": "prettier --ignore-unknown --write ."
},
Expand Down
1 change: 1 addition & 0 deletions plugins/feedback/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"postpack": "backstage-cli package postpack",
"tsc": "tsc",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"prettier:check": "prettier --ignore-unknown --check .",
"prettier:fix": "prettier --ignore-unknown --write ."
},
Expand Down
1 change: 1 addition & 0 deletions plugins/jfrog-artifactory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/keycloak-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --embed-package @keycloak/keycloak-admin-client --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --embed-package @keycloak/keycloak-admin-client --no-embed-as-dependencies --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
3 changes: 2 additions & 1 deletion plugins/kiali-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"prepack": "backstage-cli package prepack",
"postpack": "backstage-cli package postpack",
"postversion": "yarn run export-dynamic",
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies"
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies --clean"
},
"configSchema": "config.d.ts",
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions plugins/kiali/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
3 changes: 2 additions & 1 deletion plugins/kubernetes-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"prepack": "backstage-cli package prepack",
"postpack": "backstage-cli package postpack",
"postversion": "yarn run export-dynamic",
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies"
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies --clean"
},
"dependencies": {
"@backstage/backend-dynamic-feature-service": "^0.2.9",
Expand Down
1 change: 1 addition & 0 deletions plugins/matomo-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/matomo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/nexus-repository-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"generate": "openapi-ts --input ./nexus-swagger.json --output ./src/generated",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
Expand Down
1 change: 1 addition & 0 deletions plugins/notifications-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"tsc": "tsc",
"openapi": "./scripts/openapi.sh",
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies --clean",
"prettier:check": "prettier --ignore-unknown --check .",
"prettier:fix": "prettier --ignore-unknown --write ."
},
Expand Down
1 change: 1 addition & 0 deletions plugins/notifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"test": "backstage-cli package test --passWithNoTests --coverage",
Expand Down
1 change: 1 addition & 0 deletions plugins/ocm-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --embed-package --embed-package @backstage/plugin-kubernetes-common --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --embed-package --embed-package @backstage/plugin-kubernetes-common --no-embed-as-dependencies --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/ocm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/openshift-image-registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
3 changes: 2 additions & 1 deletion plugins/orchestrator-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"prepack": "backstage-cli package prepack",
"postpack": "backstage-cli package postpack",
"postversion": "yarn run export-dynamic",
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies"
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies --clean"
},
"dependencies": {
"@backstage/backend-app-api": "^0.7.2",
Expand Down
1 change: 1 addition & 0 deletions plugins/orchestrator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"tsc": "tsc",
"prettier:check": "prettier --ignore-unknown --check .",
"prettier:fix": "prettier --ignore-unknown --write .",
Expand Down
1 change: 1 addition & 0 deletions plugins/quay-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/quay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/rbac/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/regex-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/scaffolder-annotator-action/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"postpack": "backstage-cli package postpack",
"postversion": "yarn run export-dynamic",
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies --clean",
"lodash": "^4.17.21",
"tsc": "tsc",
"prettier:check": "prettier --ignore-unknown --check .",
Expand Down
1 change: 1 addition & 0 deletions plugins/servicenow-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies --clean",
"generate": "bash ./scripts/generate.sh",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
Expand Down
1 change: 1 addition & 0 deletions plugins/sonarqube-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --no-embed-as-dependencies --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/tekton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/topology/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
1 change: 1 addition & 0 deletions plugins/web-terminal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
"export-dynamic:clean": "janus-cli package export-dynamic-plugin --in-place --clean",
"lint:check": "backstage-cli package lint",
"lint:fix": "backstage-cli package lint --fix",
"postpack": "backstage-cli package postpack",
Expand Down
4 changes: 4 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"cache": false,
"dependsOn": ["tsc"]
},
"export-dynamic:clean": {
"cache": false,
"dependsOn": ["tsc"]
},
"lint:check": {},
"lint:fix": {
"cache": false
Expand Down

0 comments on commit 83bede0

Please sign in to comment.