Skip to content

Conversation

@carletex
Copy link
Member

Pushed the extensions here: https://github.com/scaffold-eth/create-eth-extensions/tree/drizzle-neon

Pushed some README tweaks, but couldn't make the .gitignore work. I think I'm missing something. I created a .gitignore.args.mjs in the extension/ folder and added this for test:

export const contents = "data";

I can see the generated -dev file when running locally:

--- TEMPLATE FILE
templates/base/.gitignore.template.mjs


--- ARGS FILES
	- /drizzle-neon/extension/.gitignore.args.mjs


--- RESULTING ARGS
	- contents:	[data]

but the root gitignore remains unchanged. What am I doing wrong?

Thanks!!

@rin-st
Copy link
Member

rin-st commented Oct 21, 2025

but the root gitignore remains unchanged. What am I doing wrong?

Currently, .gitignore.template.mjs template doesn't have arguments in according contents functions and hence content can't be changed. But it should be easy to change it if needed.

See also
.gitignore related info at the end of the file
https://github.com/scaffold-eth/create-eth/blob/main/contributors/TEMPLATE-FILES.md

and

prettyLog.info(`.gitignore and .env files could not be changed`, 3);

which is not true anymore since we added argument to the env file https://github.com/scaffold-eth/create-eth/blob/main/templates/base/packages/nextjs/.env.example.template.mjs

@carletex
Copy link
Member Author

ok, thanks, Rinat!!

We can add the .gitignore.args.mjs if we decide to add support for it (I think we should if it doesn't break anything?)

I think the extension is ready then.

@rin-st
Copy link
Member

rin-st commented Oct 21, 2025

I think we should if it doesn't break anything?

I think the only reason we didn't add possibility to change it because we didn't need it yet. Created the issue #352

I think the extension is ready then.

Lgtm!

@technophile-04
Copy link
Collaborator

Thanks @carletex and @rin-st for review 🙌

Just pused the commits to allow .gitignores to accepts postContent args, updated TEMPLATING-FILES.md and added examples in examples create-eth-extensions scaffold-eth/create-eth-extensions#105 and pushed a commit to drizzle-neon branch with data being ignored.

Merging this!

@technophile-04 technophile-04 merged commit 6841903 into main Oct 22, 2025
7 checks passed
@technophile-04 technophile-04 deleted the drizzle-curated branch October 22, 2025 14:39
@carletex
Copy link
Member Author

Thanks Shiv! <3

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.

4 participants