.gitignore File for Extension Development SuiteCRM 8

Hello can anybody share their Gitignore file they use for development. There are similar posts in the forum but this one focusses on developing on SuiteCRM Core while developing Extensions requires working on different folders. I am currently using this:

# Dependency directories
/node_modules
/dist
/.sass-cache

# Logs and debugging files
/logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Compiled TypeScript files
*.js
*.js.map

# Editor-specific files
.vscode
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
*.swn
*.user
*.suo
*.ide
.idea/

# OS-generated files
.DS_Store
Thumbs.db

# Build artifacts and temporary files
/*.pid
/*.pid.lock
*.stackdump

#custom suitecrm stuff
/cache
/vendor
.lock
/public/legacy/cache
/public/legacy/upload
/public/legacy/modules/*/language/
# db backup?

I am fighting git at this very moment :facepunch: :sweat_smile:

I have different stuff because I exclude the compiled stuff with

/dist/
/public/dist/
/public/extensions
/public/..???

But maybe your approach is better? I don’t know. I think *.js.map is ok to exclude, but *.js seems too much, because there is still plain js stuff in legacy.

1 Like

I just added

/extensions/**/public/

because I started using defaultExt and got a bunch of new compiled stuff under extensions/defaultExt/public/

1 Like