create-boltdocs 0.1.0 → 0.2.1

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 (34) hide show
  1. package/dist/index.cjs +120 -728
  2. package/dist/index.d.cts +1 -1
  3. package/dist/index.d.mts +1 -0
  4. package/dist/index.mjs +114 -0
  5. package/dist/templates/base/boltdocs.config.ts +35 -0
  6. package/dist/templates/base/docs/getting-started/index.md +33 -0
  7. package/dist/templates/base/docs/layout.tsx +78 -0
  8. package/dist/templates/base/docs/pages-external/index.tsx +23 -0
  9. package/dist/templates/base/index.css +12 -0
  10. package/dist/templates/base/index.html +11 -0
  11. package/dist/templates/base/package.json +25 -0
  12. package/dist/templates/base/public/dark.svg +4 -0
  13. package/dist/templates/base/public/light.svg +4 -0
  14. package/dist/templates/base/src/components/footer.tsx +7 -0
  15. package/dist/templates/base/src/pages/home.tsx +43 -0
  16. package/dist/templates/base/tsconfig.json +22 -0
  17. package/dist/templates/base/tsconfig.node.json +10 -0
  18. package/dist/templates/i18n/boltdocs.config.ts +39 -0
  19. package/dist/templates/i18n/docs/es/getting-started/index.md +33 -0
  20. package/dist/templates/i18n/docs/getting-started/index.md +33 -0
  21. package/dist/templates/i18n/docs/layout.tsx +80 -0
  22. package/dist/templates/i18n/docs/pages-external/index.tsx +23 -0
  23. package/dist/templates/i18n/index.css +12 -0
  24. package/dist/templates/i18n/index.html +11 -0
  25. package/dist/templates/i18n/package.json +25 -0
  26. package/dist/templates/i18n/public/dark.svg +4 -0
  27. package/dist/templates/i18n/public/light.svg +4 -0
  28. package/dist/templates/i18n/src/components/footer.tsx +15 -0
  29. package/dist/templates/i18n/src/pages/home.tsx +43 -0
  30. package/dist/templates/i18n/tsconfig.json +22 -0
  31. package/dist/templates/i18n/tsconfig.node.json +10 -0
  32. package/package.json +6 -6
  33. package/dist/index.d.ts +0 -1
  34. package/dist/index.js +0 -724
@@ -0,0 +1,11 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>{{title}}</title>
7
+ </head>
8
+ <body>
9
+ <div id="root"></div>
10
+ </body>
11
+ </html>
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "{{name}}",
3
+ "version": "0.0.1",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "boltdocs",
8
+ "build": "boltdocs build",
9
+ "preview": "boltdocs preview",
10
+ "doctor": "boltdocs doctor"
11
+ },
12
+ "dependencies": {
13
+ "lucide-react": "^1.7.0",
14
+ "react": "^19.2.5",
15
+ "react-dom": "^19.2.5"
16
+ },
17
+ "devDependencies": {
18
+ "@tailwindcss/vite": "^4.2.2",
19
+ "@types/react": "^19.1.0",
20
+ "@types/react-dom": "^19.1.0",
21
+ "boltdocs": "latest",
22
+ "tailwindcss": "^4.2.2",
23
+ "typescript": "^5.0.0"
24
+ }
25
+ }
@@ -0,0 +1,4 @@
1
+ <svg width="60" height="52" viewBox="0 0 60 52" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M29.4449 0H19.4449V16.5L29.4449 6.5V0Z" fill="black"/>
3
+ <path d="M26.9449 22.7265C26.9449 22.5077 21.2201 27.0658 16.9449 28.5C13.7491 29.5721 12.3156 29.5038 8.94486 29.5C5.59532 29.4963 0 28.5 0 28.5C0 28.5 5.57953 28.5146 8.94486 27.5C12.5409 26.4158 14.8203 25.5843 17.9449 23.5C23.3445 19.898 29.4449 11.5 29.4449 11.5L29.9449 18.5C29.9449 18.5 33.5124 15.5332 36.4449 15C41.9449 14 45.4449 15 45.4449 15C45.4449 15 36.9449 19 34.4449 21.5C31.5322 24.4126 29.8582 26.9017 29.4449 31C29.1217 34.2041 29.4771 36.4508 31.4449 39C33.5792 41.765 35.952 43.0183 39.4449 43C42.677 42.9831 45.3003 42.4182 47.4449 40C49.7406 37.4113 50.2495 34.4466 49.9449 31C49.6603 27.7804 48.4876 25.4953 45.9449 23.5C43.2931 21.4191 36.4449 24 36.4449 24L47.4449 15.5C47.4449 15.5 50.4449 16 53.4449 19C56.4449 22 57.4449 23.5 57.9449 24.5C58.4449 25.5 59.9449 28.5 59.9449 33.5C59.9449 36.4869 59.9449 37.5 57.9449 41.5C55.9449 45.5 52.9449 47.5 52.9449 47.5C52.9449 47.5 51.9449 48.5 49.9449 49.5C47.9449 50.5 45.9289 50.8863 44.9449 51.1121C43.2783 51.4944 42.7023 51.5 41.4449 51.5C40.6256 51.5 39.3731 51.3693 37.9449 51.0624C36.9972 50.8587 35.9722 50.5774 34.9449 50.2051C33.7409 49.7688 32.5339 49.2076 31.4449 48.5C30.6262 47.9681 29.4449 47 29.4449 47V51H19.4449V37.9904L22.9449 31.4226L26.9449 22.7265Z" fill="black"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="60" height="51" viewBox="0 0 60 51" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M29.4449 0H19.4449V16.5L29.4449 6.5V0Z" fill="white"/>
3
+ <path d="M26.9449 22.7265C26.9449 22.5077 21.2201 27.0658 16.9449 28.5C13.7491 29.5721 12.3156 29.5038 8.94486 29.5C5.59532 29.4963 0 28.5 0 28.5C0 28.5 5.57953 28.5146 8.94486 27.5C12.5409 26.4158 14.8203 25.5843 17.9449 23.5C23.3445 19.898 29.4449 11.5 29.4449 11.5L29.9449 18C29.9449 18 33.5825 15.8308 36.4449 15C39.4452 14.1291 44.4449 14 44.4449 14C44.4449 14 36.9449 19 34.4449 21.5C31.5322 24.4126 29.8582 26.9017 29.4449 31C29.1217 34.2041 29.4771 36.4508 31.4449 39C33.5792 41.765 35.952 43.0183 39.4449 43C42.677 42.9831 45.3003 42.4182 47.4449 40C49.7406 37.4113 50.2495 34.4466 49.9449 31C49.6603 27.7804 48.4876 25.4953 45.9449 23.5C43.2931 21.4191 36.4449 24 36.4449 24L47.9449 15C47.9449 15 51.5761 16.771 53.4449 18.5C55.711 20.5967 56.7467 22.1546 57.9449 25C59.1784 27.9295 59.4832 29.8216 59.4449 33C59.4089 35.9867 59.179 37.78 57.9449 40.5C56.8475 42.9185 55.8511 44.6507 53.9449 46.5C51.9236 48.4609 50.5803 49.0076 47.9449 50C45.5414 50.9051 44.0131 51 41.4449 51C38.8766 51 37.3235 50.9685 34.9449 50C32.4851 48.9985 29.4449 46 29.4449 46V51H19.4449V37.9904L22.9449 31.4226L26.9449 22.7265Z" fill="white"/>
4
+ </svg>
@@ -0,0 +1,15 @@
1
+ import { useI18n } from 'boltdocs/client'
2
+
3
+ const locale = {
4
+ en: "@2026 BoltDocs. All rights reserved.",
5
+ es: "@2026 BoltDocs. Todos los derechos reservados."
6
+ }
7
+
8
+ export function Footer() {
9
+ const { currentLocale } = useI18n()
10
+ return (
11
+ <footer>
12
+ {locale[currentLocale ?? 'en']}
13
+ </footer>
14
+ )
15
+ }
@@ -0,0 +1,43 @@
1
+ import { Card, Cards } from 'boltdocs/client'
2
+ import { Route, FileText, Settings, Sparkles } from 'lucide-react'
3
+
4
+ const features = [
5
+ {
6
+ title: "File-route",
7
+ description: "Generate routes from file structure.",
8
+ Icon: Route
9
+ },
10
+ {
11
+ title: "Markdown",
12
+ description: "Support Markdown for writing documentation.",
13
+ Icon: FileText
14
+ },
15
+ {
16
+ title: "Customizable",
17
+ description: "Customizable to your needs.",
18
+ Icon: Settings
19
+ },
20
+ {
21
+ title: "Secure by design",
22
+ description: "Boltdocs is secure by design.",
23
+ Icon: Sparkles
24
+ }
25
+ ]
26
+
27
+ export function HomePage() {
28
+ return (
29
+ <div className='w-full h-[calc(100vh-120px)] flex items-center gap-10'>
30
+ <div className="flex flex-col justify-center py-10">
31
+ <h1 className="text-5xl font-extrabold">Power by <p className="text-purple-500 inline">Boltdocs</p></h1>
32
+ <p className="text-xl mt-4 text-text-muted">Docs generators for react.</p>
33
+ </div>
34
+ <Cards cols={4}>
35
+ {features.map((feature) => (
36
+ <Card key={feature.title} title={feature.title} icon={<feature.Icon />}>
37
+ {feature.description}
38
+ </Card>
39
+ ))}
40
+ </Cards>
41
+ </div>
42
+ )
43
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ESNext",
4
+ "useDefineForClassFields": true,
5
+ "lib": ["DOM", "DOM.Iterable", "ESNext"],
6
+ "allowJs": false,
7
+ "skipLibCheck": true,
8
+ "esModuleInterop": false,
9
+ "allowSyntheticDefaultImports": true,
10
+ "strict": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "module": "ESNext",
13
+ "moduleResolution": "Bundler",
14
+ "resolveJsonModule": true,
15
+ "isolatedModules": true,
16
+ "noEmit": true,
17
+ "jsx": "react-jsx",
18
+ "baseUrl": "."
19
+ },
20
+ "include": ["docs", "src", ".boltdocs/types.d.ts"],
21
+ "references": [{ "path": "./tsconfig.node.json" }]
22
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true,
4
+ "skipLibCheck": true,
5
+ "module": "ESNext",
6
+ "moduleResolution": "Bundler",
7
+ "allowSyntheticDefaultImports": true
8
+ },
9
+ "include": ["boltdocs.config.ts"]
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-boltdocs",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Create a new boltdocs project",
5
5
  "type": "module",
6
6
  "author": "Jesus Alcala",
@@ -8,9 +8,9 @@
8
8
  "publishConfig": {
9
9
  "access": "public"
10
10
  },
11
- "main": "./dist/index.js",
11
+ "main": "./dist/index.mjs",
12
12
  "bin": {
13
- "create-boltdocs": "./dist/index.js"
13
+ "create-boltdocs": "./dist/index.mjs"
14
14
  },
15
15
  "files": [
16
16
  "dist"
@@ -22,11 +22,11 @@
22
22
  "devDependencies": {
23
23
  "@types/node": "^22.0.0",
24
24
  "@types/prompts": "^2.4.9",
25
- "tsup": "^8.3.0",
25
+ "tsdown": "^0.21.7",
26
26
  "typescript": "^5.5.0"
27
27
  },
28
28
  "scripts": {
29
- "build": "tsup",
30
- "dev": "tsup --watch"
29
+ "build": "tsdown --config-loader unrun",
30
+ "dev": "tsdown --watch --config-loader unrun"
31
31
  }
32
32
  }
package/dist/index.d.ts DELETED
@@ -1 +0,0 @@
1
- #!/usr/bin/env node