create-bunspace 0.2.1 → 0.2.3

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.
Files changed (20) hide show
  1. package/dist/bin.js +8 -1
  2. package/dist/templates/fumadocs/content-template/docs/getting-started/index.mdx +0 -3
  3. package/dist/templates/fumadocs/content-template/docs/getting-started/installation.mdx +0 -3
  4. package/dist/templates/fumadocs/content-template/docs/getting-started/quick-start.mdx +4 -7
  5. package/dist/templates/fumadocs/content-template/docs/index.mdx +0 -4
  6. package/dist/templates/fumadocs/content-template/en/docs/getting-started/index.mdx +0 -3
  7. package/dist/templates/fumadocs/content-template/en/docs/getting-started/installation.mdx +0 -3
  8. package/dist/templates/fumadocs/content-template/en/docs/getting-started/quick-start.mdx +0 -3
  9. package/dist/templates/fumadocs/content-template/en/docs/index.mdx +0 -3
  10. package/dist/templates/fumadocs/src/mdx-components.tsx +6 -0
  11. package/package.json +1 -1
  12. package/templates/fumadocs/content-template/docs/getting-started/index.mdx +0 -3
  13. package/templates/fumadocs/content-template/docs/getting-started/installation.mdx +0 -3
  14. package/templates/fumadocs/content-template/docs/getting-started/quick-start.mdx +4 -7
  15. package/templates/fumadocs/content-template/docs/index.mdx +0 -4
  16. package/templates/fumadocs/content-template/en/docs/getting-started/index.mdx +0 -3
  17. package/templates/fumadocs/content-template/en/docs/getting-started/installation.mdx +0 -3
  18. package/templates/fumadocs/content-template/en/docs/getting-started/quick-start.mdx +0 -3
  19. package/templates/fumadocs/content-template/en/docs/index.mdx +0 -3
  20. package/templates/fumadocs/src/mdx-components.tsx +6 -0
package/dist/bin.js CHANGED
@@ -5516,7 +5516,7 @@ async function getDefaults(args, templateType) {
5516
5516
  }
5517
5517
 
5518
5518
  // src/generator.ts
5519
- import { mkdir, readdir, stat, readFile, writeFile, copyFile } from "fs/promises";
5519
+ import { mkdir, readdir, stat, readFile, writeFile, copyFile, rename } from "fs/promises";
5520
5520
  import { join, dirname } from "path";
5521
5521
  import { existsSync } from "fs";
5522
5522
  var TEXT_EXTENSIONS = new Set([
@@ -5582,6 +5582,13 @@ async function generateProject(config, templateType) {
5582
5582
  await mkdir(targetDir, { recursive: true });
5583
5583
  printStep("Copying template files...");
5584
5584
  await copyTemplateDir(templateDir, targetDir, placeholders);
5585
+ if (templateType === "fumadocs") {
5586
+ const contentTemplatePath = join(targetDir, "content-template");
5587
+ const contentPath = join(targetDir, "content");
5588
+ if (existsSync(contentTemplatePath)) {
5589
+ await rename(contentTemplatePath, contentPath);
5590
+ }
5591
+ }
5585
5592
  if (config.initGit) {
5586
5593
  printStep("Initializing git repository...");
5587
5594
  await initGit(targetDir);
@@ -3,9 +3,6 @@ title: Introducción
3
3
  description: 'Introducción a {{PROJECT_NAME}} - {{DESCRIPTION}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps } from 'fumadocs-ui/components';
7
- import { Terminal } from 'lucide-react';
8
-
9
6
  # Introducción
10
7
 
11
8
  Bienvenido a la documentación de **{{PROJECT_NAME}}**.
@@ -3,9 +3,6 @@ title: Instalación
3
3
  description: 'Instalación y configuración de {{PROJECT_NAME}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps, Tabs, Tab } from 'fumadocs-ui/components';
7
- import { Terminal, FileCode } from 'lucide-react';
8
-
9
6
  # Instalación
10
7
 
11
8
  Guía completa de instalación para {{PROJECT_NAME}}.
@@ -3,9 +3,6 @@ title: Quick Start
3
3
  description: 'Comienza rápidamente con {{PROJECT_NAME}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps } from 'fumadocs-ui/components';
7
- import { FileEdit, Globe, CheckCircle2 } from 'lucide-react';
8
-
9
6
  # Quick Start
10
7
 
11
8
  Comienza a escribir tu documentación en minutos.
@@ -138,22 +135,22 @@ El navegador se actualiza automáticamente.
138
135
  ## Checklist Inicial
139
136
 
140
137
  <Callout type="success">
141
- <CheckCircle2 className="w-4 h-4 inline mr-2" />
138
+
142
139
  Instalación completada
143
140
  </Callout>
144
141
 
145
142
  <Callout type="success">
146
- <CheckCircle2 className="w-4 h-4 inline mr-2" />
143
+
147
144
  Servidor de desarrollo funcionando
148
145
  </Callout>
149
146
 
150
147
  <Callout type="success">
151
- <CheckCircle2 className="w-4 h-4 inline mr-2" />
148
+
152
149
  Primera página editada
153
150
  </Callout>
154
151
 
155
152
  <Callout type="success">
156
- <CheckCircle2 className="w-4 h-4 inline mr-2" />
153
+
157
154
  Configuración personalizada
158
155
  </Callout>
159
156
 
@@ -3,10 +3,6 @@ title: Bienvenido
3
3
  description: 'Bienvenido a {{PROJECT_NAME}} - {{DESCRIPTION}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps } from 'fumadocs-ui/components';
7
- import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
8
- import { FileCode, Terminal } from 'lucide-react';
9
-
10
6
  # Bienvenido a {{PROJECT_NAME}}
11
7
 
12
8
  <Callout type="info">
@@ -3,9 +3,6 @@ title: Introduction
3
3
  description: 'Introduction to {{PROJECT_NAME}} - {{DESCRIPTION}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps } from 'fumadocs-ui/components';
7
- import { Terminal } from 'lucide-react';
8
-
9
6
  # Introduction
10
7
 
11
8
  Welcome to the **{{PROJECT_NAME}}** documentation.
@@ -3,9 +3,6 @@ title: Installation
3
3
  description: 'Installation and configuration of {{PROJECT_NAME}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps, Tabs, Tab } from 'fumadocs-ui/components';
7
- import { Terminal, FileCode } from 'lucide-react';
8
-
9
6
  # Installation
10
7
 
11
8
  Complete installation guide for {{PROJECT_NAME}}.
@@ -3,9 +3,6 @@ title: Quick Start
3
3
  description: 'Get started quickly with {{PROJECT_NAME}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps } from 'fumadocs-ui/components';
7
- import { FileEdit, Globe, CheckCircle2 } from 'lucide-react';
8
-
9
6
  # Quick Start
10
7
 
11
8
  Start writing your documentation in minutes.
@@ -3,9 +3,6 @@ title: Welcome
3
3
  description: 'Welcome to {{PROJECT_NAME}} - {{DESCRIPTION}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps } from 'fumadocs-ui/components';
7
- import { FileCode, Terminal } from 'lucide-react';
8
-
9
6
  # Welcome to {{PROJECT_NAME}}
10
7
 
11
8
  <Callout type="info">
@@ -1,6 +1,7 @@
1
1
  import defaultMdxComponents from 'fumadocs-ui/mdx';
2
2
  import { Steps } from 'fumadocs-ui/components/steps';
3
3
  import { Tabs, Tab } from 'fumadocs-ui/components/tabs';
4
+ import { CheckCircle2, Terminal, FileEdit, Globe, FileCode } from 'lucide-react';
4
5
  import type { MDXComponents } from 'mdx/types';
5
6
 
6
7
  export function getMDXComponents(components?: MDXComponents): MDXComponents {
@@ -8,6 +9,11 @@ export function getMDXComponents(components?: MDXComponents): MDXComponents {
8
9
  Steps,
9
10
  Tabs,
10
11
  Tab,
12
+ CheckCircle2,
13
+ Terminal,
14
+ FileEdit,
15
+ Globe,
16
+ FileCode,
11
17
  ...defaultMdxComponents,
12
18
  ...components,
13
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bunspace",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "description": "Multi-template project scaffolder for Bun",
6
6
  "author": "MKS2508",
@@ -3,9 +3,6 @@ title: Introducción
3
3
  description: 'Introducción a {{PROJECT_NAME}} - {{DESCRIPTION}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps } from 'fumadocs-ui/components';
7
- import { Terminal } from 'lucide-react';
8
-
9
6
  # Introducción
10
7
 
11
8
  Bienvenido a la documentación de **{{PROJECT_NAME}}**.
@@ -3,9 +3,6 @@ title: Instalación
3
3
  description: 'Instalación y configuración de {{PROJECT_NAME}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps, Tabs, Tab } from 'fumadocs-ui/components';
7
- import { Terminal, FileCode } from 'lucide-react';
8
-
9
6
  # Instalación
10
7
 
11
8
  Guía completa de instalación para {{PROJECT_NAME}}.
@@ -3,9 +3,6 @@ title: Quick Start
3
3
  description: 'Comienza rápidamente con {{PROJECT_NAME}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps } from 'fumadocs-ui/components';
7
- import { FileEdit, Globe, CheckCircle2 } from 'lucide-react';
8
-
9
6
  # Quick Start
10
7
 
11
8
  Comienza a escribir tu documentación en minutos.
@@ -138,22 +135,22 @@ El navegador se actualiza automáticamente.
138
135
  ## Checklist Inicial
139
136
 
140
137
  <Callout type="success">
141
- <CheckCircle2 className="w-4 h-4 inline mr-2" />
138
+
142
139
  Instalación completada
143
140
  </Callout>
144
141
 
145
142
  <Callout type="success">
146
- <CheckCircle2 className="w-4 h-4 inline mr-2" />
143
+
147
144
  Servidor de desarrollo funcionando
148
145
  </Callout>
149
146
 
150
147
  <Callout type="success">
151
- <CheckCircle2 className="w-4 h-4 inline mr-2" />
148
+
152
149
  Primera página editada
153
150
  </Callout>
154
151
 
155
152
  <Callout type="success">
156
- <CheckCircle2 className="w-4 h-4 inline mr-2" />
153
+
157
154
  Configuración personalizada
158
155
  </Callout>
159
156
 
@@ -3,10 +3,6 @@ title: Bienvenido
3
3
  description: 'Bienvenido a {{PROJECT_NAME}} - {{DESCRIPTION}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps } from 'fumadocs-ui/components';
7
- import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
8
- import { FileCode, Terminal } from 'lucide-react';
9
-
10
6
  # Bienvenido a {{PROJECT_NAME}}
11
7
 
12
8
  <Callout type="info">
@@ -3,9 +3,6 @@ title: Introduction
3
3
  description: 'Introduction to {{PROJECT_NAME}} - {{DESCRIPTION}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps } from 'fumadocs-ui/components';
7
- import { Terminal } from 'lucide-react';
8
-
9
6
  # Introduction
10
7
 
11
8
  Welcome to the **{{PROJECT_NAME}}** documentation.
@@ -3,9 +3,6 @@ title: Installation
3
3
  description: 'Installation and configuration of {{PROJECT_NAME}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps, Tabs, Tab } from 'fumadocs-ui/components';
7
- import { Terminal, FileCode } from 'lucide-react';
8
-
9
6
  # Installation
10
7
 
11
8
  Complete installation guide for {{PROJECT_NAME}}.
@@ -3,9 +3,6 @@ title: Quick Start
3
3
  description: 'Get started quickly with {{PROJECT_NAME}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps } from 'fumadocs-ui/components';
7
- import { FileEdit, Globe, CheckCircle2 } from 'lucide-react';
8
-
9
6
  # Quick Start
10
7
 
11
8
  Start writing your documentation in minutes.
@@ -3,9 +3,6 @@ title: Welcome
3
3
  description: 'Welcome to {{PROJECT_NAME}} - {{DESCRIPTION}}'
4
4
  ---
5
5
 
6
- import { Callout, Steps } from 'fumadocs-ui/components';
7
- import { FileCode, Terminal } from 'lucide-react';
8
-
9
6
  # Welcome to {{PROJECT_NAME}}
10
7
 
11
8
  <Callout type="info">
@@ -1,6 +1,7 @@
1
1
  import defaultMdxComponents from 'fumadocs-ui/mdx';
2
2
  import { Steps } from 'fumadocs-ui/components/steps';
3
3
  import { Tabs, Tab } from 'fumadocs-ui/components/tabs';
4
+ import { CheckCircle2, Terminal, FileEdit, Globe, FileCode } from 'lucide-react';
4
5
  import type { MDXComponents } from 'mdx/types';
5
6
 
6
7
  export function getMDXComponents(components?: MDXComponents): MDXComponents {
@@ -8,6 +9,11 @@ export function getMDXComponents(components?: MDXComponents): MDXComponents {
8
9
  Steps,
9
10
  Tabs,
10
11
  Tab,
12
+ CheckCircle2,
13
+ Terminal,
14
+ FileEdit,
15
+ Globe,
16
+ FileCode,
11
17
  ...defaultMdxComponents,
12
18
  ...components,
13
19
  };