flowbook 0.1.1 → 0.1.2

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.de.md CHANGED
@@ -12,9 +12,6 @@ Storybook für Flussdiagramme. Erkennt automatisch Mermaid-Diagrammdateien in Ih
12
12
  ## Schnellstart
13
13
 
14
14
  ```bash
15
- # Installieren
16
- npm install -D flowbook
17
-
18
15
  # Initialisieren — fügt Skripte + Beispieldatei hinzu
19
16
  npx flowbook@latest init
20
17
 
package/README.es.md CHANGED
@@ -12,9 +12,6 @@ Storybook para diagramas de flujo. Descubre automáticamente archivos de diagram
12
12
  ## Inicio Rápido
13
13
 
14
14
  ```bash
15
- # Instalar
16
- npm install -D flowbook
17
-
18
15
  # Inicializar — agrega scripts + archivo de ejemplo
19
16
  npx flowbook@latest init
20
17
 
package/README.fr.md CHANGED
@@ -12,9 +12,6 @@ Storybook pour les diagrammes de flux. Découvre automatiquement les fichiers de
12
12
  ## Démarrage Rapide
13
13
 
14
14
  ```bash
15
- # Installer
16
- npm install -D flowbook
17
-
18
15
  # Initialiser — ajoute les scripts + fichier d'exemple
19
16
  npx flowbook@latest init
20
17
 
package/README.ja.md CHANGED
@@ -12,9 +12,6 @@
12
12
  ## クイックスタート
13
13
 
14
14
  ```bash
15
- # インストール
16
- npm install -D flowbook
17
-
18
15
  # 初期化 — スクリプト + サンプルファイルを追加
19
16
  npx flowbook@latest init
20
17
 
package/README.ko.md CHANGED
@@ -12,9 +12,6 @@
12
12
  ## 빠른 시작
13
13
 
14
14
  ```bash
15
- # 설치
16
- npm install -D flowbook
17
-
18
15
  # 초기화 — 스크립트 + 예제 파일 추가
19
16
  npx flowbook@latest init
20
17
 
package/README.md CHANGED
@@ -12,9 +12,6 @@ Storybook for flowcharts. Auto-discovers Mermaid diagram files from your codebas
12
12
  ## Quick Start
13
13
 
14
14
  ```bash
15
- # Install
16
- npm install -D flowbook
17
-
18
15
  # Initialize — adds scripts + example file
19
16
  npx flowbook@latest init
20
17
 
package/README.pt-BR.md CHANGED
@@ -12,9 +12,6 @@ Storybook para fluxogramas. Descobre automaticamente arquivos de diagramas Merma
12
12
  ## Início Rápido
13
13
 
14
14
  ```bash
15
- # Instalar
16
- npm install -D flowbook
17
-
18
15
  # Inicializar — adiciona scripts + arquivo de exemplo
19
16
  npx flowbook@latest init
20
17
 
package/README.ru.md CHANGED
@@ -12,9 +12,6 @@ Storybook для блок-схем. Автоматически обнаружи
12
12
  ## Быстрый Старт
13
13
 
14
14
  ```bash
15
- # Установка
16
- npm install -D flowbook
17
-
18
15
  # Инициализация — добавляет скрипты + файл-пример
19
16
  npx flowbook@latest init
20
17
 
package/README.zh-CN.md CHANGED
@@ -12,9 +12,6 @@
12
12
  ## 快速开始
13
13
 
14
14
  ```bash
15
- # 安装
16
- npm install -D flowbook
17
-
18
15
  # 初始化 — 添加脚本 + 示例文件
19
16
  npx flowbook@latest init
20
17
 
package/dist/cli.js CHANGED
@@ -64,6 +64,14 @@ async function initFlowbook() {
64
64
  } else {
65
65
  console.log(" \u2713 Example flow already exists");
66
66
  }
67
+ const gitignorePath = resolve(cwd, ".gitignore");
68
+ if (existsSync(gitignorePath)) {
69
+ const gitignore = readFileSync(gitignorePath, "utf-8");
70
+ if (!gitignore.includes("flowbook-static")) {
71
+ writeFileSync(gitignorePath, gitignore.trimEnd() + "\nflowbook-static\n");
72
+ console.log(" \u2713 Added flowbook-static to .gitignore");
73
+ }
74
+ }
67
75
  const run = pm === "yarn" ? "yarn" : `${pm} run`;
68
76
  console.log("");
69
77
  console.log(" Next steps:");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbook",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "flowbook": "./dist/cli.js"
package/src/node/init.ts CHANGED
@@ -75,6 +75,16 @@ export async function initFlowbook() {
75
75
  console.log(" ✓ Example flow already exists");
76
76
  }
77
77
 
78
+ // 4. Add flowbook-static to .gitignore
79
+ const gitignorePath = resolve(cwd, ".gitignore");
80
+ if (existsSync(gitignorePath)) {
81
+ const gitignore = readFileSync(gitignorePath, "utf-8");
82
+ if (!gitignore.includes("flowbook-static")) {
83
+ writeFileSync(gitignorePath, gitignore.trimEnd() + "\nflowbook-static\n");
84
+ console.log(" ✓ Added flowbook-static to .gitignore");
85
+ }
86
+ }
87
+
78
88
  const run = pm === "yarn" ? "yarn" : `${pm} run`;
79
89
  console.log("");
80
90
  console.log(" Next steps:");