Skip to content

Commit 335d468

Browse files
chore: rename StackSync references and clarify README
1 parent 60c18a9 commit 335d468

File tree

5 files changed

+14
-16
lines changed

5 files changed

+14
-16
lines changed

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ stackscan
3838
## Usage
3939

4040
1. **Prepare Input**:
41-
* Place your project folders inside `stackscan/`.
42-
* **OR** simply drop your `package.json` files directly into `stackscan/`.
43-
* If you have multiple, you can name them `package (1).json`, `package (2).json`, etc.
44-
* StackScan will automatically create folders based on the project name defined in each file.
41+
* Place a folder for each desired project inside `public/stackscan/`.
42+
* Each folder should contain a `package.json` file.
4543
2. **Run Scan**:
4644

4745
```bash
@@ -60,10 +58,10 @@ npx stackscan add ./path/to/package.json
6058
npx stackscan add ../my-project
6159
```
6260

63-
This will copy the `package.json` into a new folder inside `stackscan/` (e.g., `stackscan/my-project/`), handling name collisions automatically.
61+
This will copy the `package.json` into a new folder inside `public/stackscan/` (e.g., `public/stackscan/my-project/`), handling name collisions automatically.
6462

6563
This will:
66-
* Scan all projects in `stackscan/`.
64+
* Scan all projects in `public/stackscan/`.
6765
* Generate `stack.json` and `stack.md` inside each project folder.
6866
* Copy logo assets to `public/assets/logos/`.
6967
* Update your root `README.md` with a "My Projects" section.
@@ -85,7 +83,7 @@ npx stackscan scan --color brand
8583

8684
## Output
8785

88-
For each project in `stackscan/`, a `stack.json` is generated in the same folder.
86+
For each project in `public/stackscan/`, a `stack.json` is generated in the same folder.
8987

9088
Example `stack.json`:
9189

@@ -149,7 +147,7 @@ jobs:
149147

150148
---
151149

152-
## What StackSync does *not* do
150+
## What StackScan does *not* do
153151

154152
* ❌ It does not execute or analyze runtime code
155153
* ❌ It does not attempt to infer architectural quality

src/output.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from "fs-extra";
22
import path from "path";
33
import chalk from "chalk";
44
import { createRequire } from "module";
5-
import { DetectorResult, StackSyncConfig } from "./types";
5+
import { DetectorResult, StackScanConfig } from "./types";
66
import { DEFAULT_CATEGORY_ICONS } from "./defaults";
77
import simpleIconsHex from "./simple-icons-hex.json";
88

@@ -11,7 +11,7 @@ const require = createRequire(import.meta.url);
1111
export async function writeOutput(
1212
outPath: string,
1313
techs: DetectorResult[],
14-
config: StackSyncConfig,
14+
config: StackScanConfig,
1515
format: "json" | "markdown" = "json",
1616
assetsOutPath?: string
1717
) {
@@ -50,7 +50,7 @@ export async function writeOutput(
5050
}
5151
}
5252

53-
export async function copyAssets(techs: DetectorResult[], dest: string, config: StackSyncConfig): Promise<Set<string>> {
53+
export async function copyAssets(techs: DetectorResult[], dest: string, config: StackScanConfig): Promise<Set<string>> {
5454
// Assume assets are in ../public/assets/logos relative to this file (dist/output.js or src/output.ts)
5555
const srcDir = path.resolve(__dirname, "../public/assets/logos");
5656

src/scan.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ function updateRootReadme(projects: { name: string; techs: any[] }[]) {
269269
}
270270

271271
let readmeContent = fs.readFileSync(readmePath, 'utf-8');
272-
const startMarker = '<!-- STACKSYNC_START -->';
273-
const endMarker = '<!-- STACKSYNC_END -->';
272+
const startMarker = '<!-- STACKSCAN_START -->';
273+
const endMarker = '<!-- STACKSCAN_END -->';
274274

275275
let newSection = `${startMarker}\n## My Projects\n\n`;
276276

src/sync.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ function updateRootReadme(projects: { name: string; techs: any[] }[]) {
177177
}
178178

179179
let readmeContent = fs.readFileSync(readmePath, 'utf-8');
180-
const startMarker = '<!-- STACKSYNC_START -->';
181-
const endMarker = '<!-- STACKSYNC_END -->';
180+
const startMarker = '<!-- STACKSCAN_START -->';
181+
const endMarker = '<!-- STACKSCAN_END -->';
182182

183183
let newSection = `${startMarker}\n## My Projects\n\n`;
184184

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface TechDefinition {
1414
frameworks?: string[];
1515
}
1616

17-
export interface StackSyncConfig {
17+
export interface StackScanConfig {
1818
ignore?: string[];
1919
aliases?: Record<string, string>;
2020
logosPath?: string;

0 commit comments

Comments
 (0)