Skip to content

Commit

Permalink
Merge pull request #20 from pedro-gomes-92/pedrogomes/add-migrate-sub…
Browse files Browse the repository at this point in the history
…space-plugin

[rush-migrate-subspace-plugin]: add new plugin
  • Loading branch information
chengcyber authored Oct 29, 2024
2 parents fec0959 + 3e3dfa0 commit 78dcc91
Show file tree
Hide file tree
Showing 48 changed files with 3,574 additions and 966 deletions.
21 changes: 21 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"configurations": [
{
"name": "Debug Plugin (migrate-subspace)",
"request": "launch",
"type": "node",
"program": "${workspaceFolder}/rush-plugins/rush-migrate-subspace-plugin/lib/cli.js",
"cwd": "${input:enterMonorepoDir}",
"console": "integratedTerminal",
"preLaunchTask": "rush: build rush-migrate-subspace-plugin",
"args": ["--debug"]
}
],
"inputs": [
{
"id": "enterMonorepoDir",
"type": "promptString",
"description": "Specify the monorepo directory",
}
]
}
21 changes: 18 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,25 @@
"**/lib-amd": true,
"**/test/**/temp": false,
"**/temp": true,
"**/coverage": true
"**/coverage": true,
},
"files.associations": {
"**/package.json": "json",
"**/*.json": "jsonc"
}
"**/*.json": "jsonc",
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
"eslint.useFlatConfig": false,
"eslint.workingDirectories": [
"./rush-plugins/rush-migrate-subspace-plugin",
"./rush-plugins/rush-archive-project-plugin",
"./rush-plugins/rush-audit-cache-plugin",
"./rush-plugins/rush-git-lfs-plugin",
"./rush-plugins/rush-init-project-plugin",
"./rush-plugins/rush-lint-staged-plugin",
"./rush-plugins/rush-print-log-if-error-plugin",
"./rush-plugins/rush-sort-package-json",
"./rush-plugins/rush-upgrade-self-plugin",
],
}
11 changes: 11 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "rush: build rush-migrate-subspace-plugin",
"detail": "rush build -t rush-migrate-subspace-plugin",
"command": "rush build -t rush-migrate-subspace-plugin"
}
]
}
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,13 @@ Use of rush build cache is a great way to speed up your build. But, how to know

Git LFS was commonly used to managed large files/binary files in your git repository. This plugin can help you to check if newly added files are correctly managed by Git LFS and prevent users from wrongly commit their local large files.

[More](./rush-plugins/rush-git-lfs-plugin/README.md)
[More](./rush-plugins/rush-git-lfs-plugin/README.md)

# rush-migrate-subspace-plugin

[![npm](https://img.shields.io/npm/dt/rush-migrate-subspace-plugin.svg?style=flat-square)](https://www.npmjs.com/package/rush-migrate-subspace-plugin)
[![npm](https://img.shields.io/npm/dw/rush-migrate-subspace-plugin.svg?style=flat-square)](https://www.npmjs.com/package/rush-migrate-subspace-plugin)

The rush subspace is a new feature that intends to move common projects into 1 workspace. Teams that want to take advantage of this feature need to manually migrate these projects. This script automates most of these required steps to speed up the migration process.

[More](./rush-plugins/rush-migrate-subspace-plugin/README.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "rush-migrate-subspace-plugin",
"comment": "added plugin migrate-subspace",
"type": "minor"
}
],
"packageName": "rush-migrate-subspace-plugin"
}
1 change: 1 addition & 0 deletions common/config/rush/common-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
* This design avoids unnecessary churn in this file.
*/
"allowedAlternativeVersions": {
"@rushstack/rush-sdk": ["5.62.4", "5.139.0"]
/**
* For example, allow some projects to use an older TypeScript compiler
* (in addition to whatever "usual" version is being used by other projects in the repo):
Expand Down
Loading

0 comments on commit 78dcc91

Please sign in to comment.