create-snappy 0.0.15 → 0.0.16

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 +5 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import prompts2 from "prompts";
9
9
  // src/constants.ts
10
10
  var SNAPPY_API_URL = "https://core.wicky.id";
11
11
  var SNAPPY_TEMPLATE_REPO = "github.com/Snappy-Stack/Snappy_Template";
12
- var SNAPPY_VERSION = "0.0.12";
12
+ var SNAPPY_VERSION = "0.0.16";
13
13
  var TEMPLATES = [
14
14
  { title: "Portfolio", value: "portfolio", description: "Personal branding & projects" },
15
15
  { title: "Portfolio + Services", value: "portfolio-services", description: "Portfolio with lead capture" },
@@ -59,12 +59,6 @@ async function askQuestions() {
59
59
  message: "Primary domain (for heatmap/heartbeat):",
60
60
  initial: "example.com"
61
61
  },
62
- {
63
- type: "password",
64
- name: "githubToken",
65
- message: "Enter your GitHub Token (for cloning):",
66
- validate: (value) => value.length > 0 || "GitHub Token is required"
67
- },
68
62
  {
69
63
  type: "select",
70
64
  name: "locale",
@@ -85,15 +79,15 @@ import path from "path";
85
79
  import { execSync } from "child_process";
86
80
  import kleur from "kleur";
87
81
  function runSetup(targetDir, options) {
88
- const { projectName, template, token, domain, githubToken, locale } = options;
82
+ const { projectName, template, token, domain, locale } = options;
89
83
  console.log(kleur.blue(`
90
84
  \u{1F4E6} Cloning [${template}] template...`));
91
85
  try {
92
- const cloneUrl = `https://${githubToken}@${SNAPPY_TEMPLATE_REPO}`;
86
+ const cloneUrl = `https://${SNAPPY_TEMPLATE_REPO}`;
93
87
  execSync(`git clone --depth 1 -b ${template} ${cloneUrl} "${targetDir}"`, { stdio: "inherit" });
94
88
  fs.rmSync(path.join(targetDir, ".git"), { recursive: true, force: true });
95
- const npmrcContent = `//npm.pkg.github.com/:_authToken=${githubToken}
96
- @snappy:registry=https://npm.pkg.github.com`;
89
+ const npmrcContent = `@snappy:registry=https://npm.pkg.github.com
90
+ `;
97
91
  fs.writeFileSync(path.join(targetDir, ".npmrc"), npmrcContent);
98
92
  const pkgPath = path.join(targetDir, "package.json");
99
93
  if (fs.existsSync(pkgPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-snappy",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "The official SNAPPY Stack CLI for project initialization.",
5
5
  "type": "module",
6
6
  "private": false,