create-rubrica 0.3.4 → 0.3.5

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 (2) hide show
  1. package/dist/index.js +46 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -645,7 +645,16 @@ async function runCreate(projectName, deps) {
645
645
  theme: themeChoice,
646
646
  fontSans,
647
647
  fontMono,
648
- plugins: pluginsRecord
648
+ plugins: pluginsRecord,
649
+ identity: {
650
+ siteName: identity.siteName,
651
+ siteUrl: identity.siteUrl,
652
+ siteDescription: identity.siteDescription,
653
+ authorName: identity.authorName,
654
+ authorEmail: identity.authorEmail,
655
+ twitterHandle: identity.twitterHandle,
656
+ lang: identity.lang
657
+ }
649
658
  },
650
659
  fs
651
660
  );
@@ -1281,6 +1290,42 @@ async function runSetup(deps = {}) {
1281
1290
  execFileSync("npx", ["convex", "run", "siteTexts:seed"], { stdio: "pipe" });
1282
1291
  } catch {
1283
1292
  }
1293
+ const identity = state.identity;
1294
+ if (identity?.siteName) {
1295
+ try {
1296
+ execFileSync(
1297
+ "npx",
1298
+ ["convex", "run", "siteConfig:setBatch", JSON.stringify({
1299
+ items: [
1300
+ { key: "site_title", value: identity.siteName },
1301
+ { key: "site_name", value: identity.siteName },
1302
+ { key: "site_url", value: identity.siteUrl || "" },
1303
+ { key: "site_description", value: identity.siteDescription || "" },
1304
+ { key: "author_name", value: identity.authorName || "" },
1305
+ { key: "author_email", value: identity.authorEmail || "" },
1306
+ { key: "twitter_handle", value: identity.twitterHandle || "" },
1307
+ { key: "lang", value: identity.lang || "pt-BR" }
1308
+ ]
1309
+ })],
1310
+ { stdio: "pipe" }
1311
+ );
1312
+ } catch {
1313
+ }
1314
+ if (identity.authorName) {
1315
+ try {
1316
+ execFileSync(
1317
+ "npx",
1318
+ ["convex", "run", "contactInfo:update", JSON.stringify({
1319
+ name: identity.authorName,
1320
+ email: identity.authorEmail || "",
1321
+ showEmail: false
1322
+ })],
1323
+ { stdio: "pipe" }
1324
+ );
1325
+ } catch {
1326
+ }
1327
+ }
1328
+ }
1284
1329
  const vercelHookUrl = await text2({
1285
1330
  message: "VERCEL_DEPLOY_HOOK_URL (Enter para pular):",
1286
1331
  initialValue: ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rubrica",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "CLI para criar e configurar projetos Rubrica — portfólio profissional com React + Convex",
5
5
  "type": "module",
6
6
  "bin": {