Skip to content

Commit

Permalink
Merge pull request #10 from omnisat/cursor
Browse files Browse the repository at this point in the history
Updated cursor rules file
  • Loading branch information
0xBunzy authored Nov 15, 2024
2 parents c519eae + 31e65ac commit e7b4a77
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 39 deletions.
37 changes: 0 additions & 37 deletions .cursorrules

This file was deleted.

37 changes: 36 additions & 1 deletion src/bin/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,47 @@ async function init() {
{ cwd: root },
true
);
console.log(`${pc.green("✓")} @omnisat/lasereyes installed!`);
console.log(`${pc.green("✓")} @omnisat/lasereyes installed!\n`);
} catch (error) {
console.error("Failed to install @omnisat/lasereyes:", error);
throw error;
}

// Ask about cursor rules
const cursorResult = await prompts(
{
type: "confirm",
name: "addCursorRules",
message:
"🤖 Using Cursor.ai?\nWould you like to add LaserEyes-specific .cursorrules file?",
initial: true,
},
{
onCancel: () => {
throw new Error(`${pc.red("✖")} Operation cancelled`);
},
}
);

if (cursorResult.addCursorRules) {
console.log("\nAdding .cursorrules file...");
try {
const cursorRulesPath = path.join(templateDir, ".cursorrules");
const targetCursorRulesPath = path.join(root, ".cursorrules");

if (fs.existsSync(cursorRulesPath)) {
fs.copyFileSync(cursorRulesPath, targetCursorRulesPath);
console.log(
`${pc.green("✓")} Added .cursorrules file for Cursor.ai integration`
);
}
} catch (error) {
console.warn("Failed to copy .cursorrules file:", error);
}
} else {
console.log(`${pc.yellow("⚠")} Adding .cursorrules file skipped`);
}

console.log("\nInstalling next-themes...");
await executeCommand(
"npm",
Expand Down
1 change: 0 additions & 1 deletion templates/next-app/src/components/ConnectWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { useState } from "react";
import { Button } from "@/components/ui/button";
import { ChevronRight } from "lucide-react";
import Image from "next/image";

import {
LEATHER,
Expand Down

0 comments on commit e7b4a77

Please sign in to comment.