From 9d1ab4c07822a7562d49d86e5fbbd6fe7c2bc1d7 Mon Sep 17 00:00:00 2001 From: Yago Borba <140000816+YagoBorba@users.noreply.github.com> Date: Fri, 27 Nov 2026 12:04:03 -0300 Subject: [PATCH 1/6] docs(readme): document the VS Code extension and protected branch warning --- README.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5007dce..bd3f9dc 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ > [!IMPORTANT] > StackCode was born from a simple idea: **professional DevOps practices shouldn't be complicated.** If you agree, star this repository to give us a boost! ⭐️ -StackCode is a powerful, opinionated CLI designed to bring consistency, quality, and automation to your development lifecycle. From the first line of code to the final release tag, StackCode is there to handle the tedious tasks, letting you focus on what truly matters: building great software. +StackCode is an opinionated CLI and VS Code extension designed to bring consistency, quality, and automation to your development lifecycle. From the first line of code to the final release tag, StackCode is there to handle the tedious tasks, letting you focus on what truly matters: building great software. Our goal is to make best practices the easiest path. @@ -49,7 +49,7 @@ StackCode is a suite of tools designed to work together seamlessly: Need a `.gitignore`? Don't just get one—get a perfect one. Our composable template engine combines rules for your stack, IDE, and tools (like Docker) into a single, organized file. - 💬 **Guided Conventional Commits (`commit`):** - Never write a non-compliant commit message again. Our interactive wizard guides you through the Conventional Commits specification, ensuring a clean and readable Git history. + Never write a non-compliant commit message again. Our interactive wizard guides you through the Conventional Commits specification, ensuring a clean and readable Git history. It also warns you before committing straight to a protected branch (`main`, `master`, `develop`) and offers to start a new branch instead. - 🔗 **Simplified Gitflow (`git`):** Forget memorizing branch names. Use `stc git start` and `stc git finish` to manage feature branches with ease. Our interactive menu makes the process foolproof. @@ -64,7 +64,10 @@ StackCode is a suite of tools designed to work together seamlessly: Manage global preferences (like language and educational mode) and project-specific settings (like enabling commit validation) with a simple, interactive command. - 🎓 **Educational Mode (`--educate`):** - **NEW!** Learn while you work. Enable educational mode to receive helpful explanations about best practices behind every action. Configure globally with `stc config set educate true` or use the `--educate` flag on any command for on-demand learning. + Learn while you work. Enable educational mode to receive helpful explanations about best practices behind every action. Configure globally with `stc config set educate true` or use the `--educate` flag on any command for on-demand learning. + +- 🧩 **VS Code Extension:** + Every command above is also available inside VS Code, plus a project dashboard with real repository statistics (branches, commits, contributors, recent activity; GitHub stars, forks and issues when you sign in), proactive warnings when you work on a protected branch, and a guided commit flow. See the [extension README](packages/vscode-extension/README.md). ## 🛠️ Under the Hood (Main Technologies) @@ -98,13 +101,23 @@ This is the best approach for ensuring everyone on a project uses the exact same 1. Install the CLI as a dev dependency in your project: ```bash - npm install --save-dev @stackcode/cli # Replace with your package name + npm install --save-dev @stackcode/cli ``` 2. Run commands using `npx`: ```bash npx stc commit ``` +### VS Code Extension + +Download `stackcode-vscode-.vsix` from the [latest release](https://github.com/YagoBorba/StackCode/releases/latest) and install it: + +```bash +code --install-extension stackcode-vscode-2.1.0.vsix +``` + +Or, in VS Code, open the Extensions view, choose **…** → **Install from VSIX...** and select the file. + ### 🎓 Enable Educational Mode (Recommended for Beginners) StackCode can teach you best practices as you work. To enable educational explanations: From 4714a8a37c9e803c2dfe56333dfe60fb48ae4096 Mon Sep 17 00:00:00 2001 From: Yago Borba <140000816+YagoBorba@users.noreply.github.com> Date: Fri, 27 Nov 2026 12:04:03 -0300 Subject: [PATCH 2/6] fix(cli): stop printing the validate status icon twice --- packages/cli/src/commands/validate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/commands/validate.ts b/packages/cli/src/commands/validate.ts index d997b16..c1b0ee0 100644 --- a/packages/cli/src/commands/validate.ts +++ b/packages/cli/src/commands/validate.ts @@ -25,10 +25,10 @@ export const getValidateCommand = (): CommandModule => ({ const message = argv.message as string; const result = await runValidateWorkflow({ message }); if (result.isValid) { - ui.log.success(`✔ ${t("validate.success")}`); + ui.log.success(t("validate.success")); showBestPractice("educational.commit_validation_explanation"); } else { - ui.log.error(`✖ ${t("validate.error_invalid")}`); + ui.log.error(t("validate.error_invalid")); showBestPractice("educational.conventional_commits_explanation"); process.exit(1); } From 71327a0cfa1cfba0e4f141863b37bcabfb26580b Mon Sep 17 00:00:00 2001 From: Yago Borba <140000816+YagoBorba@users.noreply.github.com> Date: Fri, 27 Nov 2026 12:04:03 -0300 Subject: [PATCH 3/6] test(core): build expected paths with path.join so the suite passes on Windows --- packages/core/test/release.test.ts | 13 +++++++------ packages/core/test/workflows.test.ts | 22 +++++++++++++++++----- 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/packages/core/test/release.test.ts b/packages/core/test/release.test.ts index e1286cf..d6bd2c9 100644 --- a/packages/core/test/release.test.ts +++ b/packages/core/test/release.test.ts @@ -1,3 +1,4 @@ +import path from "path"; import { describe, it, expect, vi, beforeEach } from "vitest"; import { performReleaseCommit } from "../src/release"; import * as utils from "../src/utils"; @@ -32,8 +33,8 @@ describe("performReleaseCommit", () => { "git", [ "add", - "/fake/path/to/cli/package.json", - "/fake/path/to/cli/CHANGELOG.md", + path.join("/fake/path/to/cli", "package.json"), + path.join("/fake/path/to/cli", "CHANGELOG.md"), ], { cwd: projectRoot }, ); @@ -78,10 +79,10 @@ describe("performReleaseCommit", () => { "git", [ "add", - "/fake/path/to/cli/package.json", - "/fake/path/to/cli/CHANGELOG.md", - "/fake/path/to/core/package.json", - "/fake/path/to/core/CHANGELOG.md", + path.join("/fake/path/to/cli", "package.json"), + path.join("/fake/path/to/cli", "CHANGELOG.md"), + path.join("/fake/path/to/core", "package.json"), + path.join("/fake/path/to/core", "CHANGELOG.md"), ], { cwd: projectRoot }, ); diff --git a/packages/core/test/workflows.test.ts b/packages/core/test/workflows.test.ts index aa54160..441830c 100644 --- a/packages/core/test/workflows.test.ts +++ b/packages/core/test/workflows.test.ts @@ -520,7 +520,7 @@ describe("runReleaseWorkflow", () => { "1.2.4", ); expect(mockedFs.writeFile).toHaveBeenCalledWith( - `${cwd}/CHANGELOG.md`, + path.join(cwd, "CHANGELOG.md"), "# Changelog\n", ); }); @@ -551,15 +551,27 @@ describe("runReleaseWorkflow", () => { strategy: "independent", rootDir: cwd, packages: [ - { name: "pkg1", version: "1.0.0", path: `${cwd}/packages/pkg1` }, + { + name: "pkg1", + version: "1.0.0", + path: path.join(cwd, "packages", "pkg1"), + }, ], }); vi.mocked(releaseModule.findChangedPackages).mockResolvedValue([ - { name: "pkg1", version: "1.0.0", path: `${cwd}/packages/pkg1` }, + { + name: "pkg1", + version: "1.0.0", + path: path.join(cwd, "packages", "pkg1"), + }, ]); vi.mocked(releaseModule.determinePackageBumps).mockResolvedValue([ { - pkg: { name: "pkg1", version: "1.0.0", path: `${cwd}/packages/pkg1` }, + pkg: { + name: "pkg1", + version: "1.0.0", + path: path.join(cwd, "packages", "pkg1"), + }, bumpType: "patch", newVersion: "1.0.1", }, @@ -597,7 +609,7 @@ describe("runReleaseWorkflow", () => { cwd, ); expect(mockedFs.writeFile).toHaveBeenCalledWith( - `${cwd}/packages/pkg1/CHANGELOG.md`, + path.join(cwd, "packages", "pkg1", "CHANGELOG.md"), "Changelog for pkg1\n", ); }); From cb884e6cb920759c960d61a365c7ffd062a333f4 Mon Sep 17 00:00:00 2001 From: Yago Borba <140000816+YagoBorba@users.noreply.github.com> Date: Fri, 27 Nov 2026 12:04:03 -0300 Subject: [PATCH 4/6] chore: tidy devcontainer extensions and CLI package description --- .devcontainer/devcontainer.json | 3 +-- packages/cli/package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3b1afa3..10684f7 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -9,8 +9,7 @@ "dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "EditorConfig.EditorConfig", - "ms-azuretools.vscode-docker", - "GitHub.copilot" + "ms-azuretools.vscode-docker" ] } }, diff --git a/packages/cli/package.json b/packages/cli/package.json index 047cad5..a67d73b 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,7 +1,7 @@ { "name": "@stackcode/cli", "version": "2.1.0", - "description": "The Command-/Line Interface for StackCode", + "description": "The Command-Line Interface for StackCode", "type": "module", "main": "dist/index.js", "bin": { From 14b6a18cbb2794d8fc7b0fc79f7fda62bfc4aafc Mon Sep 17 00:00:00 2001 From: Yago Borba <140000816+YagoBorba@users.noreply.github.com> Date: Fri, 27 Nov 2026 12:07:10 -0300 Subject: [PATCH 5/6] docs: link the extension to GitHub Releases and fix broken pt-BR links --- docs/README.md | 2 +- docs/es/README.md | 2 +- docs/pt-BR/EDUCATIONAL_MODE.md | 2 +- docs/pt-BR/README.md | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/README.md b/docs/README.md index f106143..e0adfd1 100644 --- a/docs/README.md +++ b/docs/README.md @@ -108,7 +108,7 @@ See our [Contributing Guide](CONTRIBUTING.md) for detailed instructions. - **[GitHub Repository](https://github.com/YagoBorba/StackCode)** - Source code and issues - **[NPM Package](https://www.npmjs.com/package/@stackcode/cli)** - Published CLI package -- **[VS Code Extension](https://marketplace.visualstudio.com/items?itemName=YagoBorba.stackcode-vscode)** - VS Code Marketplace +- **[VS Code Extension](https://github.com/YagoBorba/StackCode/releases/latest)** - VSIX package (GitHub Releases) ## 📞 **Getting Help** diff --git a/docs/es/README.md b/docs/es/README.md index a633a77..46a3b40 100644 --- a/docs/es/README.md +++ b/docs/es/README.md @@ -142,7 +142,7 @@ Para más detalles, consulta la **[Guía del Modo Educativo](EDUCATIONAL_MODE.md - **[Repositorio GitHub](https://github.com/YagoBorba/StackCode)** - Código fuente e issues - **[Paquete NPM](https://www.npmjs.com/package/@stackcode/cli)** - Paquete CLI publicado -- **[Extensión VS Code](https://marketplace.visualstudio.com/items?itemName=YagoBorba.stackcode-vscode)** - VS Code Marketplace +- **[Extensión VS Code](https://github.com/YagoBorba/StackCode/releases/latest)** - Paquete VSIX (GitHub Releases) ## 📞 **Obteniendo Ayuda** diff --git a/docs/pt-BR/EDUCATIONAL_MODE.md b/docs/pt-BR/EDUCATIONAL_MODE.md index 39882a4..5dab808 100644 --- a/docs/pt-BR/EDUCATIONAL_MODE.md +++ b/docs/pt-BR/EDUCATIONAL_MODE.md @@ -343,7 +343,7 @@ stackcode config set lang pt # se audiência portuguesa - **[Guia de Configuração](../CONTRIBUTING.md#configuration)**: Opções completas de configuração - **[Referência de Comandos](../README.md#commands)**: Todos os comandos disponíveis -- **[Internacionalização](../docs/CONTRIBUTING.md#internationalization)**: Adicionando novos idiomas +- **[Internacionalização](CONTRIBUTING.md#-internacionalização)**: Adicionando novos idiomas - **[Arquitetura](ARCHITECTURE.md#educational-mode)**: Detalhes de implementação técnica --- diff --git a/docs/pt-BR/README.md b/docs/pt-BR/README.md index c4f9687..2ceb0de 100644 --- a/docs/pt-BR/README.md +++ b/docs/pt-BR/README.md @@ -21,7 +21,7 @@ Bem-vindo ao hub de documentação do StackCode! Este diretório contém documen ### 🌐 **Traduções** -- **[🇧🇷 Português (Brasil)](pt-BR/)** - Documentação em português _(atual)_ +- **[🇧🇷 Português (Brasil)](./)** - Documentação em português _(atual)_ - **[🇪🇸 Español](../es/)** - Documentación en español - **[🇺🇸 English](../)** - English documentation _(original)_ @@ -140,7 +140,7 @@ stackcode config - **[Repositório GitHub](https://github.com/YagoBorba/StackCode)** - Código fonte e issues - **[Pacote NPM](https://www.npmjs.com/package/@stackcode/cli)** - Pacote CLI publicado -- **[Extensão VS Code](https://marketplace.visualstudio.com/items?itemName=YagoBorba.stackcode-vscode)** - VS Code Marketplace +- **[Extensão VS Code](https://github.com/YagoBorba/StackCode/releases/latest)** - Pacote VSIX (GitHub Releases) ## 📞 **Obtendo Ajuda** From 87e927af2db19b7e35df0ef62be3142ebc4588e1 Mon Sep 17 00:00:00 2001 From: Yago Borba <140000816+YagoBorba@users.noreply.github.com> Date: Fri, 27 Nov 2026 12:12:29 -0300 Subject: [PATCH 6/6] chore(release): prepare version 2.1.1 --- CHANGELOG.md | 7 +++++++ README.md | 2 +- package-lock.json | 20 ++++++++++---------- package.json | 2 +- packages/cli/package.json | 6 +++--- packages/core/package.json | 2 +- packages/i18n/package.json | 2 +- packages/vscode-extension/package.json | 6 +++--- 8 files changed, 27 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c8e9438..338bcf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 2.1.1 (2026-11-27) + +- 🐛 fix(cli): `stc validate` no longer prints its status icon twice +- 📚 docs: the README documents the VS Code extension and how to install the VSIX; translated docs link to GitHub Releases instead of an unpublished Marketplace page; broken pt-BR links fixed +- ✅ test(core): expected paths are built with `path.join`, so the suite also passes on Windows +- 🧹 chore: devcontainer extension list and CLI package description cleaned up + ## 2.1.0 (2026-11-25) - ✨ feat: warn before committing directly on main, master or develop, in the CLI (`stc commit`) and in VS Code, with a suggestion to start a branch (closes [#30](https://github.com/YagoBorba/StackCode/issues/30)) diff --git a/README.md b/README.md index bd3f9dc..e4eba0d 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ This is the best approach for ensuring everyone on a project uses the exact same Download `stackcode-vscode-.vsix` from the [latest release](https://github.com/YagoBorba/StackCode/releases/latest) and install it: ```bash -code --install-extension stackcode-vscode-2.1.0.vsix +code --install-extension stackcode-vscode-2.1.1.vsix ``` Or, in VS Code, open the Extensions view, choose **…** → **Install from VSIX...** and select the file. diff --git a/package-lock.json b/package-lock.json index a029db0..3b17e7c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "stackcode-monorepo", - "version": "2.1.0", + "version": "2.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "stackcode-monorepo", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT", "workspaces": [ "packages/*" @@ -14530,13 +14530,13 @@ }, "packages/cli": { "name": "@stackcode/cli", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT", "dependencies": { "@octokit/rest": "^22.0.0", - "@stackcode/core": "^2.1.0", + "@stackcode/core": "^2.1.1", "@stackcode/github-auth": "^1.0.0", - "@stackcode/i18n": "^2.1.0", + "@stackcode/i18n": "^2.1.1", "chalk": "^5.3.0", "configstore": "^7.0.0", "inquirer": "^8.2.6", @@ -14589,7 +14589,7 @@ }, "packages/core": { "name": "@stackcode/core", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT", "dependencies": { "@octokit/rest": "^22.0.0", @@ -14625,7 +14625,7 @@ }, "packages/i18n": { "name": "@stackcode/i18n", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT", "dependencies": { "configstore": "^7.0.0", @@ -14644,13 +14644,13 @@ }, "packages/vscode-extension": { "name": "stackcode-vscode", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT", "dependencies": { "@octokit/rest": "^22.0.0", - "@stackcode/core": "^2.1.0", + "@stackcode/core": "^2.1.1", "@stackcode/github-auth": "^1.0.0", - "@stackcode/i18n": "^2.1.0" + "@stackcode/i18n": "^2.1.1" }, "devDependencies": { "@tailwindcss/postcss": "^4.1.11", diff --git a/package.json b/package.json index f3ebcb4..34b17cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stackcode-monorepo", - "version": "2.1.0", + "version": "2.1.1", "private": true, "type": "module", "description": "An intelligent tool to help junior developers apply best practices from day one.", diff --git a/packages/cli/package.json b/packages/cli/package.json index a67d73b..7c7a45b 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@stackcode/cli", - "version": "2.1.0", + "version": "2.1.1", "description": "The Command-Line Interface for StackCode", "type": "module", "main": "dist/index.js", @@ -36,8 +36,8 @@ "dependencies": { "@octokit/rest": "^22.0.0", "@stackcode/github-auth": "^1.0.0", - "@stackcode/core": "^2.1.0", - "@stackcode/i18n": "^2.1.0", + "@stackcode/core": "^2.1.1", + "@stackcode/i18n": "^2.1.1", "chalk": "^5.3.0", "configstore": "^7.0.0", "inquirer": "^8.2.6", diff --git a/packages/core/package.json b/packages/core/package.json index 01dc7fa..968a07b 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@stackcode/core", - "version": "2.1.0", + "version": "2.1.1", "description": "Core logic for the StackCode tool.", "type": "module", "main": "dist/index.js", diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 51f3cae..54553e4 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@stackcode/i18n", - "version": "2.1.0", + "version": "2.1.1", "description": "Internationalization (i18n) package for StackCode.", "type": "module", "main": "dist/index.js", diff --git a/packages/vscode-extension/package.json b/packages/vscode-extension/package.json index 2c1c2ff..54100f5 100644 --- a/packages/vscode-extension/package.json +++ b/packages/vscode-extension/package.json @@ -2,7 +2,7 @@ "name": "stackcode-vscode", "displayName": "StackCode", "description": "Complete development assistant with project scaffolding, Git workflow, and real-time best practices enforcement", - "version": "2.1.0", + "version": "2.1.1", "publisher": "YagoBorba", "engines": { "vscode": "^1.85.0" @@ -291,8 +291,8 @@ "dependencies": { "@octokit/rest": "^22.0.0", "@stackcode/github-auth": "^1.0.0", - "@stackcode/core": "^2.1.0", - "@stackcode/i18n": "^2.1.0" + "@stackcode/core": "^2.1.1", + "@stackcode/i18n": "^2.1.1" }, "keywords": [ "git",