mb-workspace 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitignore +3 -3
- package/README.md +62 -62
- package/install.ps1 +29 -29
- package/package.json +24 -23
package/.gitignore
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.projects/
|
|
2
|
-
projects/
|
|
3
|
-
node_modules/
|
|
1
|
+
.projects/
|
|
2
|
+
projects/
|
|
3
|
+
node_modules/
|
package/README.md
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
# MB Workspace
|
|
2
|
-
|
|
3
|
-
One-command installer for MB Workspace, optimized for designer + developer collaboration with an AI-first workflow.
|
|
4
|
-
|
|
5
|
-
## Quick install
|
|
6
|
-
|
|
7
|
-
### WSL / Linux / macOS
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npx mb-workspace
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
### Windows PowerShell
|
|
14
|
-
|
|
15
|
-
```powershell
|
|
16
|
-
npx mb-workspace
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
After install:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
mb-ui
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Publish checklist
|
|
26
|
-
|
|
27
|
-
1. Replace every `<YOUR_USER>` and `<YOUR_REPO>` placeholder in:
|
|
28
|
-
- `install.sh`
|
|
29
|
-
- `install.ps1`
|
|
30
|
-
- `bin/mb-workspace.js`
|
|
31
|
-
2. Push this repo to GitHub as a public repository.
|
|
32
|
-
3. Login to npm:
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
npm login
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
4. Publish:
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
npm publish
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
If the package name `mb-workspace` is already taken, change the `name` field in `package.json` and publish with a scoped name like `@yourname/mb-workspace`.
|
|
45
|
-
|
|
46
|
-
## What the installer does
|
|
47
|
-
|
|
48
|
-
- Clones or updates the MB Workspace repo into `~/.mb-workspace`
|
|
49
|
-
- Adds `mb-tools` to PATH
|
|
50
|
-
- Sets `MB_WORKSPACE_HOME`
|
|
51
|
-
- Creates `projects/` and `.projects/`
|
|
52
|
-
|
|
53
|
-
## Main commands
|
|
54
|
-
|
|
55
|
-
- `mb-ui` — open project and task menu
|
|
56
|
-
- `mb` — basic project launcher
|
|
57
|
-
- `mb-start` — show branch and working tree state
|
|
58
|
-
- `mb-task <name>` — create or switch task branch
|
|
59
|
-
- `mb-save "message"` — commit and push current work
|
|
60
|
-
- `mb-submit` — push current branch and mark it submitted
|
|
61
|
-
- `mb-list` — list task branches and submitted state
|
|
62
|
-
- `mb-home` — jump back to workspace home
|
|
1
|
+
# MB Workspace
|
|
2
|
+
|
|
3
|
+
One-command installer for MB Workspace, optimized for designer + developer collaboration with an AI-first workflow.
|
|
4
|
+
|
|
5
|
+
## Quick install
|
|
6
|
+
|
|
7
|
+
### WSL / Linux / macOS
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx mb-workspace
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Windows PowerShell
|
|
14
|
+
|
|
15
|
+
```powershell
|
|
16
|
+
npx mb-workspace
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
After install:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
mb-ui
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Publish checklist
|
|
26
|
+
|
|
27
|
+
1. Replace every `<YOUR_USER>` and `<YOUR_REPO>` placeholder in:
|
|
28
|
+
- `install.sh`
|
|
29
|
+
- `install.ps1`
|
|
30
|
+
- `bin/mb-workspace.js`
|
|
31
|
+
2. Push this repo to GitHub as a public repository.
|
|
32
|
+
3. Login to npm:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm login
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
4. Publish:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm publish
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
If the package name `mb-workspace` is already taken, change the `name` field in `package.json` and publish with a scoped name like `@yourname/mb-workspace`.
|
|
45
|
+
|
|
46
|
+
## What the installer does
|
|
47
|
+
|
|
48
|
+
- Clones or updates the MB Workspace repo into `~/.mb-workspace`
|
|
49
|
+
- Adds `mb-tools` to PATH
|
|
50
|
+
- Sets `MB_WORKSPACE_HOME`
|
|
51
|
+
- Creates `projects/` and `.projects/`
|
|
52
|
+
|
|
53
|
+
## Main commands
|
|
54
|
+
|
|
55
|
+
- `mb-ui` — open project and task menu
|
|
56
|
+
- `mb` — basic project launcher
|
|
57
|
+
- `mb-start` — show branch and working tree state
|
|
58
|
+
- `mb-task <name>` — create or switch task branch
|
|
59
|
+
- `mb-save "message"` — commit and push current work
|
|
60
|
+
- `mb-submit` — push current branch and mark it submitted
|
|
61
|
+
- `mb-list` — list task branches and submitted state
|
|
62
|
+
- `mb-home` — jump back to workspace home
|
package/install.ps1
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
$RepoUrl = "https://github.com/camtm95/mb-workspace.git"
|
|
2
|
-
$InstallDir = if ($env:MB_WORKSPACE_HOME) { $env:MB_WORKSPACE_HOME } else { "$env:USERPROFILE\.mb-workspace" }
|
|
3
|
-
$BinDir = "$InstallDir\mb-tools"
|
|
4
|
-
|
|
5
|
-
Write-Host "Installing MB Workspace..."
|
|
6
|
-
|
|
7
|
-
if (-not (Get-Command git -ErrorAction SilentlyContinue)) {
|
|
8
|
-
Write-Host "Git is required."
|
|
9
|
-
exit 1
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
if (Test-Path "$InstallDir\.git") {
|
|
13
|
-
git -C $InstallDir pull --ff-only
|
|
14
|
-
} else {
|
|
15
|
-
if (Test-Path $InstallDir) { Remove-Item $InstallDir -Recurse -Force }
|
|
16
|
-
git clone $RepoUrl $InstallDir
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
New-Item -ItemType Directory -Force -Path "$InstallDir\projects" | Out-Null
|
|
20
|
-
New-Item -ItemType Directory -Force -Path "$InstallDir\.projects" | Out-Null
|
|
21
|
-
|
|
22
|
-
[Environment]::SetEnvironmentVariable("MB_WORKSPACE_HOME", $InstallDir, "User")
|
|
23
|
-
|
|
24
|
-
$currentPath = [Environment]::GetEnvironmentVariable("Path", "User")
|
|
25
|
-
if ($currentPath -notlike "*$BinDir*") {
|
|
26
|
-
[Environment]::SetEnvironmentVariable("Path", "$currentPath;$BinDir", "User")
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
Write-Host "Installed. Reopen terminal, then run: mb-ui"
|
|
1
|
+
$RepoUrl = "https://github.com/camtm95/mb-workspace.git"
|
|
2
|
+
$InstallDir = if ($env:MB_WORKSPACE_HOME) { $env:MB_WORKSPACE_HOME } else { "$env:USERPROFILE\.mb-workspace" }
|
|
3
|
+
$BinDir = "$InstallDir\mb-tools"
|
|
4
|
+
|
|
5
|
+
Write-Host "Installing MB Workspace..."
|
|
6
|
+
|
|
7
|
+
if (-not (Get-Command git -ErrorAction SilentlyContinue)) {
|
|
8
|
+
Write-Host "Git is required."
|
|
9
|
+
exit 1
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
if (Test-Path "$InstallDir\.git") {
|
|
13
|
+
git -C $InstallDir pull --ff-only
|
|
14
|
+
} else {
|
|
15
|
+
if (Test-Path $InstallDir) { Remove-Item $InstallDir -Recurse -Force }
|
|
16
|
+
git clone $RepoUrl $InstallDir
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
New-Item -ItemType Directory -Force -Path "$InstallDir\projects" | Out-Null
|
|
20
|
+
New-Item -ItemType Directory -Force -Path "$InstallDir\.projects" | Out-Null
|
|
21
|
+
|
|
22
|
+
[Environment]::SetEnvironmentVariable("MB_WORKSPACE_HOME", $InstallDir, "User")
|
|
23
|
+
|
|
24
|
+
$currentPath = [Environment]::GetEnvironmentVariable("Path", "User")
|
|
25
|
+
if ($currentPath -notlike "*$BinDir*") {
|
|
26
|
+
[Environment]::SetEnvironmentVariable("Path", "$currentPath;$BinDir", "User")
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
Write-Host "Installed. Reopen terminal, then run: mb-ui"
|
package/package.json
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mb-workspace",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "One-command installer for MB Workspace",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"install.
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
".
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "mb-workspace",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "One-command installer for MB Workspace",
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"bin": {
|
|
7
|
+
"mb-workspace": "./bin/mb-workspace.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin",
|
|
11
|
+
"install.sh",
|
|
12
|
+
"install.ps1",
|
|
13
|
+
"mb-tools",
|
|
14
|
+
"README.md",
|
|
15
|
+
".gitignore"
|
|
16
|
+
],
|
|
17
|
+
"keywords": [
|
|
18
|
+
"workspace",
|
|
19
|
+
"designer",
|
|
20
|
+
"cli",
|
|
21
|
+
"installer"
|
|
22
|
+
],
|
|
23
|
+
"license": "MIT"
|
|
24
|
+
}
|