A CLI for scaffolding ATProto web applications

fix: update template .gitignore #1

merged opened by besaid.zone targeting main from fix/update-template-gitignore
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:qttsv4e7pu2jl3ilanfgc3zn/sh.tangled.repo.pull/3mezj7iqph422
+14 -2
Diff #1
+5
.changeset/modern-geckos-yawn.md
··· 1 + --- 2 + "@nulfrost/create-atproto-app": patch 3 + --- 4 + 5 + add generated files to gitignore
+9 -2
src/commands/init.ts
··· 17 17 } from "@clack/prompts"; 18 18 import { execSync } from "node:child_process"; 19 19 import { 20 + appendFileSync, 20 21 copyFileSync, 21 22 existsSync, 22 23 mkdirSync, ··· 169 170 170 171 for (const file of readdirSync(templateDir)) { 171 172 const sourceTemplateFiles = resolve(templateDir, file); 172 - const destinationTemplateFile = resolve(root, file); 173 - copy(sourceTemplateFiles, destinationTemplateFile); 173 + const destinationTemplateFiles = resolve(root, file); 174 + copy(sourceTemplateFiles, destinationTemplateFiles); 174 175 } 176 + 177 + appendFileSync( 178 + join(root, ".gitignore"), 179 + "\n# atproto specific ignore\n/src/__generated__", 180 + "utf-8", 181 + ); 175 182 176 183 try { 177 184 s.stop("Project created!");

History

2 rounds 0 comments
sign up or login to add to the discussion
3 commits
expand
fix: append generated type files to gitignore for templates
chore: changeset
chore: remove dot
2/2 success
expand
expand 0 comments
pull request successfully merged
2 commits
expand
fix: append generated type files to gitignore for templates
chore: changeset
2/2 success
expand
expand 0 comments