create-bearminion 0.0.0-stage → 1.1.0

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 (121) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +65 -2
  4. package/dist/cli.mjs +1369 -0
  5. package/package.json +53 -3
  6. package/template/.storybook/main.ts +14 -0
  7. package/template/.storybook/preview.css +8 -0
  8. package/template/.storybook/preview.ts +17 -0
  9. package/template/README.md +251 -0
  10. package/template/_gitignore +21 -0
  11. package/template/astro.config.ts +46 -0
  12. package/template/content/pages/404.json +36 -0
  13. package/template/content/pages/about.json +101 -0
  14. package/template/content/pages/index.json +463 -0
  15. package/template/content/pages/preview.json +40 -0
  16. package/template/content/site.json +117 -0
  17. package/template/package.json +37 -0
  18. package/template/src/assets/uploads/favicon.png +0 -0
  19. package/template/src/assets/uploads/hero.png +0 -0
  20. package/template/src/assets/uploads/logo.png +0 -0
  21. package/template/src/assets/uploads/og.png +0 -0
  22. package/template/src/components/atoms/Button.astro +64 -0
  23. package/template/src/components/atoms/Button.stories.ts +42 -0
  24. package/template/src/components/atoms/Emphasis.astro +24 -0
  25. package/template/src/components/atoms/Emphasis.stories.ts +25 -0
  26. package/template/src/components/atoms/Image.astro +78 -0
  27. package/template/src/components/atoms/Image.stories.ts +35 -0
  28. package/template/src/components/atoms/LogoMark.astro +53 -0
  29. package/template/src/components/atoms/LogoMark.stories.ts +25 -0
  30. package/template/src/components/atoms/Typography.astro +50 -0
  31. package/template/src/components/atoms/Typography.stories.ts +20 -0
  32. package/template/src/components/atoms/button.ts +31 -0
  33. package/template/src/components/atoms/image.ts +34 -0
  34. package/template/src/components/atoms/options.ts +39 -0
  35. package/template/src/components/atoms/typography.ts +63 -0
  36. package/template/src/components/molecules/MediaFrame.astro +71 -0
  37. package/template/src/components/molecules/MediaFrame.stories.ts +14 -0
  38. package/template/src/components/molecules/Pill.astro +24 -0
  39. package/template/src/components/molecules/Pill.stories.ts +12 -0
  40. package/template/src/components/molecules/SectionHeader.astro +63 -0
  41. package/template/src/components/molecules/SectionHeader.stories.ts +15 -0
  42. package/template/src/components/molecules/SectionShell.astro +33 -0
  43. package/template/src/components/molecules/SectionShell.stories.ts +25 -0
  44. package/template/src/components/organisms/Footer.astro +133 -0
  45. package/template/src/components/organisms/Footer.stories.ts +16 -0
  46. package/template/src/components/organisms/FooterLinks.astro +32 -0
  47. package/template/src/components/organisms/Header.astro +94 -0
  48. package/template/src/components/organisms/Header.stories.ts +27 -0
  49. package/template/src/components/organisms/MobileBranch.astro +52 -0
  50. package/template/src/components/organisms/MobileMenu.astro +110 -0
  51. package/template/src/components/organisms/MobileMenu.stories.ts +30 -0
  52. package/template/src/components/organisms/NavBranch.astro +61 -0
  53. package/template/src/components/organisms/Navigation.astro +32 -0
  54. package/template/src/components/organisms/Navigation.stories.ts +25 -0
  55. package/template/src/components/organisms/site-definition.ts +28 -0
  56. package/template/src/components/sections/SectionList.astro +53 -0
  57. package/template/src/components/sections/contact/Contact.astro +227 -0
  58. package/template/src/components/sections/contact/Contact.stories.ts +16 -0
  59. package/template/src/components/sections/contact/definition.ts +50 -0
  60. package/template/src/components/sections/contact/wireframe.ts +15 -0
  61. package/template/src/components/sections/cta/Cta.astro +181 -0
  62. package/template/src/components/sections/cta/Cta.stories.ts +19 -0
  63. package/template/src/components/sections/cta/definition.ts +35 -0
  64. package/template/src/components/sections/cta/wireframe.ts +9 -0
  65. package/template/src/components/sections/definitions.ts +54 -0
  66. package/template/src/components/sections/faq/Faq.astro +131 -0
  67. package/template/src/components/sections/faq/Faq.stories.ts +16 -0
  68. package/template/src/components/sections/faq/definition.ts +51 -0
  69. package/template/src/components/sections/faq/wireframe.ts +19 -0
  70. package/template/src/components/sections/features/Features.astro +121 -0
  71. package/template/src/components/sections/features/Features.stories.ts +19 -0
  72. package/template/src/components/sections/features/definition.ts +64 -0
  73. package/template/src/components/sections/features/wireframe.ts +19 -0
  74. package/template/src/components/sections/hero/Hero.astro +155 -0
  75. package/template/src/components/sections/hero/Hero.stories.ts +28 -0
  76. package/template/src/components/sections/hero/definition.ts +36 -0
  77. package/template/src/components/sections/hero/wireframe.ts +12 -0
  78. package/template/src/components/sections/logo-strip/LogoStrip.astro +107 -0
  79. package/template/src/components/sections/logo-strip/LogoStrip.stories.ts +20 -0
  80. package/template/src/components/sections/logo-strip/definition.ts +30 -0
  81. package/template/src/components/sections/logo-strip/wireframe.ts +11 -0
  82. package/template/src/components/sections/pricing/Pricing.astro +210 -0
  83. package/template/src/components/sections/pricing/Pricing.stories.ts +16 -0
  84. package/template/src/components/sections/pricing/definition.ts +62 -0
  85. package/template/src/components/sections/pricing/wireframe.ts +18 -0
  86. package/template/src/components/sections/registry.ts +25 -0
  87. package/template/src/components/sections/shared.ts +13 -0
  88. package/template/src/components/sections/stats/Stats.astro +110 -0
  89. package/template/src/components/sections/stats/Stats.stories.ts +16 -0
  90. package/template/src/components/sections/stats/definition.ts +41 -0
  91. package/template/src/components/sections/stats/wireframe.ts +15 -0
  92. package/template/src/components/sections/testimonials/Testimonials.astro +172 -0
  93. package/template/src/components/sections/testimonials/Testimonials.stories.ts +19 -0
  94. package/template/src/components/sections/testimonials/definition.ts +42 -0
  95. package/template/src/components/sections/testimonials/wireframe.ts +21 -0
  96. package/template/src/components/sections/text-image/TextImage.astro +109 -0
  97. package/template/src/components/sections/text-image/TextImage.stories.ts +19 -0
  98. package/template/src/components/sections/text-image/definition.ts +38 -0
  99. package/template/src/components/sections/text-image/wireframe.ts +12 -0
  100. package/template/src/components/seo/Seo.astro +63 -0
  101. package/template/src/content.config.ts +19 -0
  102. package/template/src/dev/style-guide.astro +124 -0
  103. package/template/src/dev/variants.astro +117 -0
  104. package/template/src/env.d.ts +1 -0
  105. package/template/src/layouts/Base.astro +74 -0
  106. package/template/src/lib/assets.ts +13 -0
  107. package/template/src/lib/cn.ts +6 -0
  108. package/template/src/lib/content-dir.ts +8 -0
  109. package/template/src/lib/content-model.ts +25 -0
  110. package/template/src/lib/content.ts +26 -0
  111. package/template/src/lib/link-attrs.ts +74 -0
  112. package/template/src/lib/render-preview.ts +29 -0
  113. package/template/src/lib/sitemap.ts +36 -0
  114. package/template/src/pages/404.astro +15 -0
  115. package/template/src/pages/[...slug].astro +32 -0
  116. package/template/src/pages/robots.txt.ts +10 -0
  117. package/template/src/stories/args.ts +34 -0
  118. package/template/src/stories/options.ts +63 -0
  119. package/template/src/stories/sample.ts +24 -0
  120. package/template/src/styles/global.css +379 -0
  121. package/template/tsconfig.json +8 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # create-bearminion
2
+
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 8a97a6c: New: `npm create bearminion@latest my-site` creates a BearMinion site. It asks for the folder, the site name and its web address, copies the default template, installs and makes the first git commit. `--storybook` adds Storybook, `--yes` asks nothing, and `--no-install`, `--no-git`, `--pm`, `--name` and `--url` cover the rest.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jakub Lange
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,66 @@
1
- # Temporary Holding Version
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/langehelp-software/bearminion/main/.github/assets/banner.png" alt="BearMinion: a git-based CMS for Astro. Click to edit. Commit to publish." width="100%" />
3
+ </p>
2
4
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
5
+ <p align="center">
6
+ Create a website you edit by clicking on it. No database, no admin panel, no server.<br />
7
+ Built on <a href="https://astro.build">Astro</a>.
8
+ </p>
9
+
10
+ <p align="center">
11
+ <a href="https://www.npmjs.com/package/create-bearminion"><img src="https://img.shields.io/npm/v/create-bearminion?color=169717" alt="npm version" /></a>
12
+ <a href="https://github.com/langehelp-software/bearminion/actions/workflows/ci.yml"><img src="https://github.com/langehelp-software/bearminion/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
13
+ <a href="https://github.com/langehelp-software/bearminion/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-169717" alt="MIT license" /></a>
14
+ </p>
15
+
16
+ ## Quick start
17
+
18
+ You need [Node.js](https://nodejs.org) 22.12 or newer.
19
+
20
+ ```bash
21
+ npm create bearminion@latest my-site
22
+ ```
23
+
24
+ It asks three things: the folder, the site's name and its web address (press Enter to skip it and set it later in the editor). Then it copies the site, installs it and makes the first git commit.
25
+
26
+ ```bash
27
+ cd my-site
28
+ npm run dev
29
+ ```
30
+
31
+ Open the address it prints and press **Ctrl+E** (**Cmd+E** on a Mac). Click any text to change it, and press **Ctrl/Cmd+S** to save. Push the folder to GitHub and import it in Vercel, Netlify or Cloudflare Pages to put it online.
32
+
33
+ `pnpm create bearminion`, `yarn create bearminion` and `bun create bearminion` work the same way and install with that package manager.
34
+
35
+ <p align="center">
36
+ <img src="https://raw.githubusercontent.com/langehelp-software/bearminion/main/.github/assets/editor.png" alt="The BearMinion editor: a section toolbar on the hero, a heading being edited, and the Pages tab in the sidebar" width="100%" />
37
+ </p>
38
+
39
+ ## Options
40
+
41
+ Pass options after `--` with npm (`npm create bearminion@latest my-site -- --yes`); pnpm, yarn and bun take them directly.
42
+
43
+ | Option | What it does |
44
+ | --- | --- |
45
+ | `--name <name>` | The site's name. Default: from the folder (`my-coffee-shop` becomes "My Coffee Shop") |
46
+ | `--url <address>` | Its public address, such as `https://example.com`. Used for search engines, the sitemap and link previews |
47
+ | `--storybook` | Also add [Storybook](https://storybook.js.org), a workshop for the theme's components |
48
+ | `--pm <manager>` | Install with `npm`, `pnpm`, `yarn` or `bun`. Default: the one you ran |
49
+ | `--no-install` | Skip installing |
50
+ | `--no-git` | Skip creating a git repository |
51
+ | `-y`, `--yes` | Ask nothing and use the defaults, for scripts and AI agents |
52
+
53
+ The folder must be new or empty. Inside an existing git repository, the site is added as a folder and no new repository is made.
54
+
55
+ ## What you get
56
+
57
+ The [default BearMinion template](https://github.com/langehelp-software/bearminion/tree/main/templates/default): an Astro and Tailwind site with ten section types, the [`bearminion`](https://www.npmjs.com/package/bearminion) editor at the same version as this package, and content as JSON files you own and commit. The template ships inside this package, so it works offline and always matches its editor.
58
+
59
+ ## Learn more
60
+
61
+ - [BearMinion on GitHub](https://github.com/langehelp-software/bearminion)
62
+ - [Documentation](https://github.com/langehelp-software/bearminion/blob/main/docs/README.md)
63
+
64
+ ## License
65
+
66
+ [MIT](https://github.com/langehelp-software/bearminion/blob/main/LICENSE) © Jakub Lange