style updates

This commit is contained in:
lucas-neynar 2025-03-13 15:59:07 -07:00
parent ace806fcb9
commit 8ab3b4317b
No known key found for this signature in database
3 changed files with 17 additions and 5 deletions

View File

@ -9,4 +9,9 @@ This is a [NextJS](https://nextjs.org/) + TypeScript + React app.
To create a new frames project, run: To create a new frames project, run:
```{bash} ```{bash}
npx frames-v2-quickstart npx frames-v2-quickstart
``` ```
TODO:
* pin dependencies
* install metrics / enable notifications
* solidify onchain tx support

View File

@ -99,7 +99,7 @@ async function init() {
type: 'confirm', type: 'confirm',
name: 'useNeynar', name: 'useNeynar',
message: 'Would you like to use Neynar in your frame?', message: 'Would you like to use Neynar in your frame?',
default: true default: false
} }
]); ]);
@ -234,7 +234,14 @@ async function init() {
execSync('git add .', { cwd: projectPath }); execSync('git add .', { cwd: projectPath });
execSync('git commit -m "initial commit from frames-v2-quickstart"', { cwd: projectPath }); execSync('git commit -m "initial commit from frames-v2-quickstart"', { cwd: projectPath });
console.log(`\n🪐✨ Successfully created frame ${projectName} with git and dependencies installed! ✨🪐`); // Calculate border length based on message length
const message = `✨🪐 Successfully created frame ${projectName} with git and dependencies installed! 🪐✨`;
const borderLength = message.length;
const borderStars = '✨'.repeat((borderLength / 2) + 1);
console.log(`\n${borderStars}`);
console.log(`${message}`);
console.log(`${borderStars}`);
console.log('\nTo run the app:'); console.log('\nTo run the app:');
console.log(` cd ${projectName}`); console.log(` cd ${projectName}`);
console.log(' npm run dev\n'); console.log(' npm run dev\n');

4
dev.js
View File

@ -10,10 +10,10 @@ async function startDev() {
tunnel = await localtunnel({ port: 3000 }); tunnel = await localtunnel({ port: 3000 });
console.log(`\n🌐 Local tunnel URL: ${tunnel.url}`); console.log(`\n🌐 Local tunnel URL: ${tunnel.url}`);
// Start next dev with the tunnel URL as an environment variable // Start next dev with the tunnel URL as relevant environment variables
nextDev = spawn('next', ['dev'], { nextDev = spawn('next', ['dev'], {
stdio: 'inherit', stdio: 'inherit',
env: { ...process.env, NEXT_PUBLIC_URL: tunnel.url } env: { ...process.env, NEXT_PUBLIC_URL: tunnel.url, NEXTAUTH_URL: tunnel.url }
}); });
// Handle cleanup // Handle cleanup