workon 2.1.3 → 3.0.0
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/README.md +19 -4
- package/bin/workon +1 -11
- package/dist/cli.js +2227 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +1216 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +280 -0
- package/dist/index.d.ts +280 -0
- package/dist/index.js +1173 -0
- package/dist/index.js.map +1 -0
- package/package.json +68 -21
- package/.claude/settings.local.json +0 -11
- package/.cursorindexingignore +0 -3
- package/.history/.gitignore_20250806202718 +0 -30
- package/.history/.gitignore_20250806231444 +0 -32
- package/.history/.gitignore_20250806231450 +0 -32
- package/.history/lib/tmux_20250806233103.js +0 -109
- package/.history/lib/tmux_20250806233219.js +0 -109
- package/.history/lib/tmux_20250806233223.js +0 -109
- package/.history/lib/tmux_20250806233230.js +0 -109
- package/.history/lib/tmux_20250806233231.js +0 -109
- package/.history/lib/tmux_20250807120751.js +0 -190
- package/.history/lib/tmux_20250807120757.js +0 -190
- package/.history/lib/tmux_20250807120802.js +0 -190
- package/.history/lib/tmux_20250807120808.js +0 -190
- package/.history/package_20250807114243.json +0 -43
- package/.history/package_20250807114257.json +0 -43
- package/.history/package_20250807114404.json +0 -43
- package/.history/package_20250807114409.json +0 -43
- package/.history/package_20250807114510.json +0 -43
- package/.history/package_20250807114637.json +0 -43
- package/.vscode/launch.json +0 -20
- package/.vscode/terminals.json +0 -11
- package/CHANGELOG.md +0 -110
- package/CLAUDE.md +0 -100
- package/cli/base.js +0 -16
- package/cli/config/index.js +0 -19
- package/cli/config/list.js +0 -26
- package/cli/config/set.js +0 -19
- package/cli/config/unset.js +0 -26
- package/cli/index.js +0 -184
- package/cli/interactive.js +0 -290
- package/cli/manage.js +0 -413
- package/cli/open.js +0 -414
- package/commands/base.js +0 -105
- package/commands/core/cwd/index.js +0 -86
- package/commands/core/ide/index.js +0 -84
- package/commands/core/web/index.js +0 -109
- package/commands/extensions/claude/index.js +0 -211
- package/commands/extensions/docker/index.js +0 -167
- package/commands/extensions/npm/index.js +0 -208
- package/commands/registry.js +0 -196
- package/demo-colon-syntax.js +0 -57
- package/docs/adr/001-command-centric-architecture.md +0 -304
- package/docs/adr/002-positional-command-arguments.md +0 -402
- package/docs/ideas.md +0 -93
- package/lib/config.js +0 -51
- package/lib/environment/base.js +0 -12
- package/lib/environment/index.js +0 -108
- package/lib/environment/project.js +0 -26
- package/lib/project.js +0 -68
- package/lib/tmux.js +0 -223
- package/lib/validation.js +0 -120
- package/test-architecture.js +0 -145
- package/test-colon-syntax.js +0 -85
- package/test-registry.js +0 -57
package/README.md
CHANGED
|
@@ -14,6 +14,10 @@ A productivity CLI tool that helps developers quickly switch between projects wi
|
|
|
14
14
|
⚡ **Interactive Setup** - Guided project configuration
|
|
15
15
|
🔄 **Backward Compatible** - Legacy nested shell mode still available
|
|
16
16
|
|
|
17
|
+
## Requirements
|
|
18
|
+
|
|
19
|
+
- Node.js >= 20
|
|
20
|
+
|
|
17
21
|
## Installation
|
|
18
22
|
|
|
19
23
|
### Option 1: Global Installation (Recommended)
|
|
@@ -34,7 +38,7 @@ source ~/.zshrc # or ~/.bashrc
|
|
|
34
38
|
|
|
35
39
|
```bash
|
|
36
40
|
# Set up shell integration
|
|
37
|
-
echo 'eval "$(npx workon --init)"' >> ~/.zshrc # for zsh
|
|
41
|
+
echo 'eval "$(npx workon --init)"' >> ~/.zshrc # for zsh
|
|
38
42
|
echo 'eval "$(npx workon --init)"' >> ~/.bashrc # for bash
|
|
39
43
|
|
|
40
44
|
# Reload your shell
|
|
@@ -74,6 +78,9 @@ Projects are configured with:
|
|
|
74
78
|
- `cwd`: Change directory to project path
|
|
75
79
|
- `ide`: Open project in configured IDE
|
|
76
80
|
- `web`: Open project homepage/docs
|
|
81
|
+
- `claude`: Launch Claude Code (with optional tmux split)
|
|
82
|
+
- `npm`: Run npm scripts (with optional tmux pane)
|
|
83
|
+
- `docker`: Start Docker containers
|
|
77
84
|
|
|
78
85
|
### Interactive Project Setup
|
|
79
86
|
|
|
@@ -204,12 +211,20 @@ If you've been using the nested shell mode, the new shell integration provides t
|
|
|
204
211
|
|
|
205
212
|
## Contributing
|
|
206
213
|
|
|
207
|
-
This project uses [standard-version](https://github.com/conventional-changelog/standard-version) for releases.
|
|
208
|
-
|
|
209
214
|
```bash
|
|
210
|
-
|
|
215
|
+
# Install dependencies
|
|
216
|
+
pnpm install
|
|
217
|
+
|
|
218
|
+
# Development
|
|
219
|
+
pnpm run dev # Run with tsx
|
|
220
|
+
pnpm run build # Build with tsup
|
|
221
|
+
pnpm run lint # Lint
|
|
222
|
+
pnpm run type-check # Type check
|
|
223
|
+
pnpm run test # Run tests
|
|
211
224
|
```
|
|
212
225
|
|
|
226
|
+
Releases are automated via [release-please](https://github.com/googleapis/release-please).
|
|
227
|
+
|
|
213
228
|
## License
|
|
214
229
|
|
|
215
230
|
MIT © [Israel Roldan](https://github.com/israelroldan)
|
package/bin/workon
CHANGED
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const console = require('loog')({
|
|
4
|
-
prefixStyle: 'ascii',
|
|
5
|
-
logLevel: isDebug ? 'debug' : 'info'
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
const workon = require('../cli');
|
|
9
|
-
new workon(console).run().catch(e => {
|
|
10
|
-
console.error(isDebug ? e.stack : (e.message ? e.message : e));
|
|
11
|
-
process.exit(1);
|
|
12
|
-
});
|
|
2
|
+
import '../dist/cli.js';
|