Skip to content

Conversation

@HimanshuKumarDutt094
Copy link

@HimanshuKumarDutt094 HimanshuKumarDutt094 commented Oct 4, 2025

this pr adds tailwind setup following official docs lynx tailwind setup

  • nothing else updated or upgraded to keep everything working
image

i have a single util file that takes in all the folders needed for scaffold and copies them into a temp folder and then inside the project (perf is decent).
for tailwind i have 4 files that overwrites the base react but if needed we can make it a standalone template so we just either copy react or react-tailwind template.
This way we dont have to publish the templates to other sources.

@HimanshuKumarDutt094
Copy link
Author

HimanshuKumarDutt094 commented Oct 5, 2025

@okwasniewski @szymonrybczak mind taking a look at this

import fs from 'fs-extra';
import path from 'path';

export async function setupTailwind(targetPath: string): Promise<void> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we delete the comments, function names are pretty self-explanatory already

}

async function updateAppCSSForTailwind(targetPath: string): Promise<void> {
const appCSSContent = `@tailwind base;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's leave a comment or let's open an issue to properly implement templates where each template which be used based on the option because it's much harder to maintain this kind flow that is added here.

@HimanshuKumarDutt094 HimanshuKumarDutt094 changed the title feat: tailwind option for cli feat: template based installer + tailwind option for cli + git init option for cli Oct 20, 2025
@HimanshuKumarDutt094
Copy link
Author

@szymonrybczak i added template based installer using github. sparse checkout, removed the copy-templates logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants