Skip to content

Commit 7653db8

Browse files
committed
Add gitignore to the create-mod project
1 parent 402f7b0 commit 7653db8

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

Ida/srcjs/create-mod/_project.template/.gitignore renamed to Ida/srcjs/create-mod/_project.config/gitignore.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ Thumbs.db
3636
# Coverage
3737
coverage/
3838
.nyc_output/
39+
40+
# IdaJS specific
41+
.idajs.json
42+
media/README.md

Ida/srcjs/create-mod/install.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ function copyFiles() {
151151
{ source: "template.prettierrc.json", target: ".prettierrc.json" },
152152
];
153153

154+
// Add .gitignore only in standalone mode
155+
if (!idaRoot) {
156+
filesToCopy.push({ source: "gitignore.template", target: ".gitignore" });
157+
}
158+
154159
filesToCopy.forEach((file) => {
155160
const sourcePath = path.join(configDir, file.source);
156161
const targetPath = path.join(targetDir, file.target || file.source);

0 commit comments

Comments
 (0)