Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"EditorConfig.EditorConfig",
"ms-azuretools.vscode-docker",
"GitHub.copilot"
"ms-azuretools.vscode-docker"
]
}
},
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))
Expand Down
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.
Expand All @@ -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)

Expand Down Expand Up @@ -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-<version>.vsix` from the [latest release](https://github.com/YagoBorba/StackCode/releases/latest) and install it:

```bash
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.

### πŸŽ“ Enable Educational Mode (Recommended for Beginners)

StackCode can teach you best practices as you work. To enable educational explanations:
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand Down
2 changes: 1 addition & 1 deletion docs/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand Down
2 changes: 1 addition & 1 deletion docs/pt-BR/EDUCATIONAL_MODE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

---
Expand Down
4 changes: 2 additions & 2 deletions docs/pt-BR/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)_

Expand Down Expand Up @@ -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**

Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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.",
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@stackcode/cli",
"version": "2.1.0",
"description": "The Command-/Line Interface for StackCode",
"version": "2.1.1",
"description": "The Command-Line Interface for StackCode",
"type": "module",
"main": "dist/index.js",
"bin": {
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/commands/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export const getValidateCommand = (): CommandModule<object, ValidateArgs> => ({
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);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
13 changes: 7 additions & 6 deletions packages/core/test/release.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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 },
);
Expand Down Expand Up @@ -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 },
);
Expand Down
22 changes: 17 additions & 5 deletions packages/core/test/workflows.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ describe("runReleaseWorkflow", () => {
"1.2.4",
);
expect(mockedFs.writeFile).toHaveBeenCalledWith(
`${cwd}/CHANGELOG.md`,
path.join(cwd, "CHANGELOG.md"),
"# Changelog\n",
);
});
Expand Down Expand Up @@ -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",
},
Expand Down Expand Up @@ -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",
);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/i18n/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions packages/vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down
Loading