Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ jobs:
run: node repo-scripts/repo-toolbox/lib/start.js readme --verify
working-directory: repo-a

- name: Collect JSON schemas
run: node repo-scripts/repo-toolbox/lib/start.js collect-json-schemas --output-path ${GITHUB_WORKSPACE}/artifacts/json-schemas
working-directory: repo-a

- name: Clone another copy of the repo to test the build cache
uses: actions/checkout@v3
with:
Expand Down
27 changes: 27 additions & 0 deletions apps/api-documenter/config/heft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft.schema.json",
"extends": "local-node-rig/profiles/default/config/heft.json",

"phasesByName": {
"build": {
"tasksByName": {
"copy-json-schemas": {
"taskPlugin": {
"pluginPackage": "@rushstack/heft",
"pluginName": "copy-files-plugin",
"options": {
"copyOperations": [
{
"sourcePath": "src/schemas",
"destinationFolders": ["temp/json-schemas/api-extractor/v7"],
"fileExtensions": [".schema.json"],
"hardlink": true
}
]
}
}
}
}
}
}
}
17 changes: 17 additions & 0 deletions apps/api-extractor/config/heft.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,23 @@
]
}
}
},

"copy-json-schemas": {
"taskPlugin": {
"pluginPackage": "@rushstack/heft",
"pluginName": "copy-files-plugin",
"options": {
"copyOperations": [
{
"sourcePath": "src/schemas",
"destinationFolders": ["temp/json-schemas/api-extractor/v7"],
"fileExtensions": [".schema.json"],
"hardlink": true
}
]
}
}
}
}
}
Expand Down
27 changes: 27 additions & 0 deletions apps/heft/config/heft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft.schema.json",
"extends": "decoupled-local-node-rig/profiles/default/config/heft.json",

"phasesByName": {
"build": {
"tasksByName": {
"copy-json-schemas": {
"taskPlugin": {
"pluginPackage": "@rushstack/heft",
"pluginName": "copy-files-plugin",
"options": {
"copyOperations": [
{
"sourcePath": "src/schemas",
"destinationFolders": ["temp/json-schemas/heft/v1"],
"fileExtensions": [".schema.json"],
"hardlink": true
}
]
}
}
}
}
}
}
}
18 changes: 18 additions & 0 deletions apps/lockfile-explorer/config/heft.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,27 @@
}
}
},

"typescript": {
// The "typescript" task should not run until after "pre-compile-copy" completes.
"taskDependencies": ["pre-compile-copy"]
},

"copy-json-schemas": {
"taskPlugin": {
"pluginPackage": "@rushstack/heft",
"pluginName": "copy-files-plugin",
"options": {
"copyOperations": [
{
"sourcePath": "src/schemas",
"destinationFolders": ["temp/json-schemas/lockfile-explorer"],
"fileExtensions": [".schema.json"],
"hardlink": true
}
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@microsoft/api-documenter"
}
],
"packageName": "@microsoft/api-documenter",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@microsoft/api-extractor"
}
],
"packageName": "@microsoft/api-extractor",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@microsoft/rush"
}
],
"packageName": "@microsoft/rush",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/credential-cache"
}
],
"packageName": "@rushstack/credential-cache",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/heft-api-extractor-plugin"
}
],
"packageName": "@rushstack/heft-api-extractor-plugin",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/heft-isolated-typescript-transpile-plugin"
}
],
"packageName": "@rushstack/heft-isolated-typescript-transpile-plugin",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/heft-jest-plugin"
}
],
"packageName": "@rushstack/heft-jest-plugin",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/heft-json-schema-typings-plugin"
}
],
"packageName": "@rushstack/heft-json-schema-typings-plugin",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/heft-lint-plugin"
}
],
"packageName": "@rushstack/heft-lint-plugin",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/heft-localization-typings-plugin"
}
],
"packageName": "@rushstack/heft-localization-typings-plugin",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/heft-sass-plugin"
}
],
"packageName": "@rushstack/heft-sass-plugin",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/heft-storybook-plugin"
}
],
"packageName": "@rushstack/heft-storybook-plugin",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/heft-typescript-plugin"
}
],
"packageName": "@rushstack/heft-typescript-plugin",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/heft-webpack4-plugin"
}
],
"packageName": "@rushstack/heft-webpack4-plugin",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/heft-webpack5-plugin"
}
],
"packageName": "@rushstack/heft-webpack5-plugin",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/heft"
}
],
"packageName": "@rushstack/heft",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/lockfile-explorer"
}
],
"packageName": "@rushstack/lockfile-explorer",
"email": "iclanton@users.noreply.github.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@rushstack/rig-package"
}
],
"packageName": "@rushstack/rig-package",
"email": "iclanton@users.noreply.github.com"
}
5 changes: 4 additions & 1 deletion common/config/azure-pipelines/npm-publish-rush.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ extends:
- output: pipelineArtifact
targetPath: $(Build.ArtifactStagingDirectory)/published-versions
artifactName: published-versions
- output: pipelineArtifact
targetPath: $(Build.ArtifactStagingDirectory)/json-schemas
artifactName: json-schemas
steps:
- checkout: self
persistCredentials: true
Expand Down Expand Up @@ -60,4 +63,4 @@ extends:
VersionPolicyName: rush
BranchName: $(SourceBranch)

- template: /common/config/azure-pipelines/templates/record-published-versions.yaml@self
- template: /common/config/azure-pipelines/templates/post-publish.yaml
5 changes: 4 additions & 1 deletion common/config/azure-pipelines/npm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ extends:
- output: pipelineArtifact
targetPath: $(Build.ArtifactStagingDirectory)/published-versions
artifactName: published-versions
- output: pipelineArtifact
targetPath: $(Build.ArtifactStagingDirectory)/json-schemas
artifactName: json-schemas
steps:
- checkout: self
persistCredentials: true
Expand All @@ -50,4 +53,4 @@ extends:
VersionPolicyName: noRush
BranchName: $(SourceBranch)

- template: /common/config/azure-pipelines/templates/record-published-versions.yaml@self
- template: /common/config/azure-pipelines/templates/post-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
steps:
- script: 'node repo-scripts/repo-toolbox/lib/start.js record-versions --out-file $(Build.ArtifactStagingDirectory)/published-versions/published-versions.json'
displayName: 'Record Published Versions'
# Published by the 1ES template
# - publish: $(Build.ArtifactStagingDirectory)/published-versions
# artifact: published-versions
# displayName: 'Publish Artifact: published-versions'
steps:
- script: 'node repo-scripts/repo-toolbox/lib/start.js record-versions --out-file $(Build.ArtifactStagingDirectory)/published-versions/published-versions.json'
displayName: 'Record Published Versions'
- script: 'node repo-scripts/repo-toolbox/lib/start.js collect-json-schemas --output-path $(Build.ArtifactStagingDirectory)/json-schemas'
displayName: 'Collect JSON Schemas'
Loading
Loading