Created
April 9, 2025 21:11
-
-
Save NickDeckerDevs/39376ff418c7bb105640f1f4a3d9484e to your computer and use it in GitHub Desktop.
HubSpot Developer Projects / UIE / UI Extension Sample .gitignore files with an explanation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# depending on how you set up your project, having the ** here will make sure | |
# to cover your entire project | |
**/node_modules/ | |
# HubSpot config file | |
**/hubspot.config.yml | |
**/hubspot.config.yaml | |
# this is a file that keeps the packages in your project in sync | |
# if you want to make sure everyone is using the same version of packages it is a | |
# good idea to commit these files and not ignore them. It is also helpful when | |
# you are working with newer developers -- this makes it so anyone sharing this | |
# repo will be in sync with all packages, prevents issues with different package | |
# versions that could have different syntax, bugs, deprecations, etc. | |
**/package-lock.json | |
# env variables as you may use these, I have the !.env.example after the .env files | |
# so that you can create a .env.example file and commit it to the repo | |
# this allows you to share what your teams .env vars should be set up like | |
.env | |
.env.* | |
!.env.example | |
# build and log stuff, depending on what you do, you may not need the log stuff | |
target/ | |
dist/ | |
.vite/ | |
logs/ | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
lerna-debug.log* | |
# operating system files that can get created in folders | |
.DS_Store | |
Icon? | |
__MACOSX/ | |
Thumbs.db | |
ehthumbs.db | |
Desktop.ini | |
@eaDir/ | |
*~ | |
*.swp | |
# for hidden files I don't like to ignore all of them wiht a *. | |
# If you aren't sharing setup with others, then you can just uncomment them | |
# if you want to share them in your repo | |
# then we have teh ! which allows you to override a previous rule | |
# vscode/cursor or any other branched forked editor | |
# the first two lines ignores all the vscode / code editor stuff | |
# the lines under that are allowing specific files to be shared in the repo | |
# *.code-workspace | |
# .vscode/* | |
# !.vscode/settings.json | |
# !.vscode/tasks.json | |
# !.vscode/launch.json | |
# !.vscode/extensions.json | |
# cache files for linters and formatters that are commonly used | |
.eslintcache | |
.prettiercache | |
.stylelintcache | |
.history/ | |
# as a last tidbit to add here -- If you are using webpack to extend your project | |
# so you can use other dependeices that HubSpot does not allow you should see: | |
# https://docs.google.com/document/d/e/2PACX-1vRGX60V2wQ2Co9X1NO73hkLObcQdNWp2i49XE-pY_DRS6UjZnv4UuODz4nsI_g1gUIXFC1MhN4AFsnZ/pub | |
# https://github.com/HubSpot/cms-webpack-serverless-boilerplate?tab=readme-ov-file | |
# **/dist/ | |
# /coverage/ | |
# config.json | |
# /.pnp | |
# .pnp.js | |
# /build/ | |
# /public/ | |
# /out/ | |
# *.bundle.js | |
# *.bundle.js.map |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment