create-sprinkles 0.3.0 → 0.3.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/README.md CHANGED
@@ -52,6 +52,7 @@ Server-rendered app with React Router, Tailwind CSS, Vite+, and Cloudflare deplo
52
52
  React Server Components with React Router, Tailwind CSS, Vite+, and Cloudflare deployment.
53
53
 
54
54
  - Optional: Content-layer plugin for MDX-based content
55
+ - Optional: Single Executable Application (SEA) — bundles the server and all client assets into a single portable Node.js binary via `node:sea`
55
56
 
56
57
  ## License
57
58
 
package/dist/bin.mjs CHANGED
@@ -4,6 +4,7 @@ import { createTemplate, runTemplate } from "bingo";
4
4
  import path from "node:path";
5
5
  import { handlebars } from "bingo-handlebars";
6
6
  import { z } from "zod";
7
+ import { readFileSync } from "node:fs";
7
8
  //#region src/metadata.ts
8
9
  const NAME = "create-sprinkles";
9
10
  //#endregion
@@ -59,6 +60,7 @@ const options = {
59
60
  };
60
61
  //#endregion
61
62
  //#region src/scripts.ts
63
+ const faviconBase64 = readFileSync(path.join(import.meta.dirname, "assets/favicon.ico")).toString("base64");
62
64
  function buildDependencyCommands(context) {
63
65
  const commands = [];
64
66
  commands.push("vp add -D @types/node @typescript/native-preview");
@@ -111,6 +113,10 @@ function buildScripts(context) {
111
113
  phase: 3,
112
114
  silent: true
113
115
  });
116
+ if (context.isReactRouter) scripts.push({
117
+ commands: ["mkdir -p public", `echo '${faviconBase64}' | base64 -d > public/favicon.ico`],
118
+ phase: 3
119
+ });
114
120
  scripts.push({
115
121
  commands: [
116
122
  "ln -sf AGENTS.md CLAUDE.md",
package/dist/index.mjs CHANGED
@@ -2,6 +2,7 @@ import { createTemplate } from "bingo";
2
2
  import { handlebars } from "bingo-handlebars";
3
3
  import path from "node:path";
4
4
  import { z } from "zod";
5
+ import { readFileSync } from "node:fs";
5
6
  //#region src/context.ts
6
7
  function buildContext(opts) {
7
8
  const isSPA = opts.kind === "react-router-spa";
@@ -57,6 +58,7 @@ const options = {
57
58
  };
58
59
  //#endregion
59
60
  //#region src/scripts.ts
61
+ const faviconBase64 = readFileSync(path.join(import.meta.dirname, "assets/favicon.ico")).toString("base64");
60
62
  function buildDependencyCommands(context) {
61
63
  const commands = [];
62
64
  commands.push("vp add -D @types/node @typescript/native-preview");
@@ -109,6 +111,10 @@ function buildScripts(context) {
109
111
  phase: 3,
110
112
  silent: true
111
113
  });
114
+ if (context.isReactRouter) scripts.push({
115
+ commands: ["mkdir -p public", `echo '${faviconBase64}' | base64 -d > public/favicon.ico`],
116
+ phase: 3
117
+ });
112
118
  scripts.push({
113
119
  commands: [
114
120
  "ln -sf AGENTS.md CLAUDE.md",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sprinkles",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Get started with development by creating projects from templates quickly.",
5
5
  "homepage": "https://github.com/withsprinkles/create-sprinkles#readme",
6
6
  "bugs": {