@vsceasy/cli 0.1.4 → 0.1.6
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/CHANGELOG.md +1 -0
- package/README.md +5 -3
- package/dist/bin/cli.js +4043 -153
- package/dist/index.js +3832 -9
- package/dist/lib/findProject.d.ts +12 -10
- package/dist/lib/templatesData.d.ts +2 -0
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,7 @@ All notable changes follow [Keep a Changelog](https://keepachangelog.com/en/1.1.
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
7
|
### Added
|
|
8
|
+
- **`vsceasy create` post-scaffold setup** — after generating the project, `create` now offers to **initialize a git repository** (`git init`) and **install dependencies** (`bun`, falling back to `npm`). Both prompts default to yes in an interactive terminal. New `--git` / `--install` flags (and `--git=false` / `--install=false`) skip the prompts for scripting/CI. Non-interactive runs without the flags skip both, as before.
|
|
8
9
|
- **`vsceasy job add`** — scaffold recurring / event-triggered jobs into `src/jobs/`. Schedules: `--every "60s"`, `--dailyAt "09:00"`, `--on startup|saveDocument|openDocument|changeActiveEditor|changeConfig`, `--onFile "**/*.md"`. Optional `--minIntervalMs` throttles re-runs via globalState. Runtime (`bootstrap`) auto-registers timers/listeners + cleanup on deactivate, catches errors so they don't crash the host.
|
|
9
10
|
- **`command add --when <expr>`** — declare VS Code `when` clauses on commands. Auto-written to `contributes.commands[].enablement` and `contributes.menus.commandPalette` by `bun run gen`. Enables context-aware visibility (e.g. `editorTextFocus`, `resourceLangId == typescript`).
|
|
10
11
|
- **`vsceasy helper add <kind>`** — generate typed runtime wrappers in `src/helpers/`:
|
package/README.md
CHANGED
|
@@ -20,13 +20,13 @@ vsceasy --version
|
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
22
|
bunx @vsceasy/cli create my-extension
|
|
23
|
+
# prompts to init git + install deps, then:
|
|
23
24
|
cd my-extension
|
|
24
|
-
bun install
|
|
25
25
|
bun run dev
|
|
26
26
|
# press F5 in VS Code to launch the Extension Development Host
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
Or with flags:
|
|
29
|
+
Or with flags — `--git` / `--install` skip the post-scaffold prompts:
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
bunx @vsceasy/cli create \
|
|
@@ -34,7 +34,9 @@ bunx @vsceasy/cli create \
|
|
|
34
34
|
--displayName "My Extension" \
|
|
35
35
|
--description "Does cool things" \
|
|
36
36
|
--publisher my-publisher \
|
|
37
|
-
--ui react
|
|
37
|
+
--ui react \
|
|
38
|
+
--git \
|
|
39
|
+
--install
|
|
38
40
|
```
|
|
39
41
|
|
|
40
42
|
## What you get
|