create-bearminion 0.0.0-stage → 1.0.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.
- package/LICENSE +21 -0
- package/README.md +65 -2
- package/dist/cli.mjs +1369 -0
- package/package.json +55 -4
- package/template/.storybook/main.ts +14 -0
- package/template/.storybook/preview.css +8 -0
- package/template/.storybook/preview.ts +17 -0
- package/template/README.md +251 -0
- package/template/_gitignore +21 -0
- package/template/astro.config.ts +46 -0
- package/template/content/pages/404.json +36 -0
- package/template/content/pages/about.json +101 -0
- package/template/content/pages/index.json +463 -0
- package/template/content/pages/preview.json +40 -0
- package/template/content/site.json +117 -0
- package/template/package.json +37 -0
- package/template/src/assets/uploads/favicon.png +0 -0
- package/template/src/assets/uploads/hero.png +0 -0
- package/template/src/assets/uploads/logo.png +0 -0
- package/template/src/assets/uploads/og.png +0 -0
- package/template/src/components/atoms/Button.astro +64 -0
- package/template/src/components/atoms/Button.stories.ts +42 -0
- package/template/src/components/atoms/Emphasis.astro +24 -0
- package/template/src/components/atoms/Emphasis.stories.ts +25 -0
- package/template/src/components/atoms/Image.astro +78 -0
- package/template/src/components/atoms/Image.stories.ts +35 -0
- package/template/src/components/atoms/LogoMark.astro +53 -0
- package/template/src/components/atoms/LogoMark.stories.ts +25 -0
- package/template/src/components/atoms/Typography.astro +50 -0
- package/template/src/components/atoms/Typography.stories.ts +20 -0
- package/template/src/components/atoms/button.ts +31 -0
- package/template/src/components/atoms/image.ts +34 -0
- package/template/src/components/atoms/options.ts +39 -0
- package/template/src/components/atoms/typography.ts +63 -0
- package/template/src/components/molecules/MediaFrame.astro +71 -0
- package/template/src/components/molecules/MediaFrame.stories.ts +14 -0
- package/template/src/components/molecules/Pill.astro +24 -0
- package/template/src/components/molecules/Pill.stories.ts +12 -0
- package/template/src/components/molecules/SectionHeader.astro +63 -0
- package/template/src/components/molecules/SectionHeader.stories.ts +15 -0
- package/template/src/components/molecules/SectionShell.astro +33 -0
- package/template/src/components/molecules/SectionShell.stories.ts +25 -0
- package/template/src/components/organisms/Footer.astro +133 -0
- package/template/src/components/organisms/Footer.stories.ts +16 -0
- package/template/src/components/organisms/FooterLinks.astro +32 -0
- package/template/src/components/organisms/Header.astro +94 -0
- package/template/src/components/organisms/Header.stories.ts +27 -0
- package/template/src/components/organisms/MobileBranch.astro +52 -0
- package/template/src/components/organisms/MobileMenu.astro +110 -0
- package/template/src/components/organisms/MobileMenu.stories.ts +30 -0
- package/template/src/components/organisms/NavBranch.astro +61 -0
- package/template/src/components/organisms/Navigation.astro +32 -0
- package/template/src/components/organisms/Navigation.stories.ts +25 -0
- package/template/src/components/organisms/site-definition.ts +28 -0
- package/template/src/components/sections/SectionList.astro +53 -0
- package/template/src/components/sections/contact/Contact.astro +227 -0
- package/template/src/components/sections/contact/Contact.stories.ts +16 -0
- package/template/src/components/sections/contact/definition.ts +50 -0
- package/template/src/components/sections/contact/wireframe.ts +15 -0
- package/template/src/components/sections/cta/Cta.astro +181 -0
- package/template/src/components/sections/cta/Cta.stories.ts +19 -0
- package/template/src/components/sections/cta/definition.ts +35 -0
- package/template/src/components/sections/cta/wireframe.ts +9 -0
- package/template/src/components/sections/definitions.ts +54 -0
- package/template/src/components/sections/faq/Faq.astro +131 -0
- package/template/src/components/sections/faq/Faq.stories.ts +16 -0
- package/template/src/components/sections/faq/definition.ts +51 -0
- package/template/src/components/sections/faq/wireframe.ts +19 -0
- package/template/src/components/sections/features/Features.astro +121 -0
- package/template/src/components/sections/features/Features.stories.ts +19 -0
- package/template/src/components/sections/features/definition.ts +64 -0
- package/template/src/components/sections/features/wireframe.ts +19 -0
- package/template/src/components/sections/hero/Hero.astro +155 -0
- package/template/src/components/sections/hero/Hero.stories.ts +28 -0
- package/template/src/components/sections/hero/definition.ts +36 -0
- package/template/src/components/sections/hero/wireframe.ts +12 -0
- package/template/src/components/sections/logo-strip/LogoStrip.astro +107 -0
- package/template/src/components/sections/logo-strip/LogoStrip.stories.ts +20 -0
- package/template/src/components/sections/logo-strip/definition.ts +30 -0
- package/template/src/components/sections/logo-strip/wireframe.ts +11 -0
- package/template/src/components/sections/pricing/Pricing.astro +210 -0
- package/template/src/components/sections/pricing/Pricing.stories.ts +16 -0
- package/template/src/components/sections/pricing/definition.ts +62 -0
- package/template/src/components/sections/pricing/wireframe.ts +18 -0
- package/template/src/components/sections/registry.ts +25 -0
- package/template/src/components/sections/shared.ts +13 -0
- package/template/src/components/sections/stats/Stats.astro +110 -0
- package/template/src/components/sections/stats/Stats.stories.ts +16 -0
- package/template/src/components/sections/stats/definition.ts +41 -0
- package/template/src/components/sections/stats/wireframe.ts +15 -0
- package/template/src/components/sections/testimonials/Testimonials.astro +172 -0
- package/template/src/components/sections/testimonials/Testimonials.stories.ts +19 -0
- package/template/src/components/sections/testimonials/definition.ts +42 -0
- package/template/src/components/sections/testimonials/wireframe.ts +21 -0
- package/template/src/components/sections/text-image/TextImage.astro +109 -0
- package/template/src/components/sections/text-image/TextImage.stories.ts +19 -0
- package/template/src/components/sections/text-image/definition.ts +38 -0
- package/template/src/components/sections/text-image/wireframe.ts +12 -0
- package/template/src/components/seo/Seo.astro +63 -0
- package/template/src/content.config.ts +19 -0
- package/template/src/dev/style-guide.astro +124 -0
- package/template/src/dev/variants.astro +117 -0
- package/template/src/env.d.ts +1 -0
- package/template/src/layouts/Base.astro +74 -0
- package/template/src/lib/assets.ts +13 -0
- package/template/src/lib/cn.ts +6 -0
- package/template/src/lib/content-dir.ts +8 -0
- package/template/src/lib/content-model.ts +25 -0
- package/template/src/lib/content.ts +26 -0
- package/template/src/lib/link-attrs.ts +74 -0
- package/template/src/lib/render-preview.ts +29 -0
- package/template/src/lib/sitemap.ts +36 -0
- package/template/src/pages/404.astro +15 -0
- package/template/src/pages/[...slug].astro +32 -0
- package/template/src/pages/robots.txt.ts +10 -0
- package/template/src/stories/args.ts +34 -0
- package/template/src/stories/options.ts +63 -0
- package/template/src/stories/sample.ts +24 -0
- package/template/src/styles/global.css +379 -0
- package/template/tsconfig.json +8 -0
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
|
-
|
|
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
|
-
|
|
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
|