Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
cboneill0099
Helper I
Helper I

Checking a Custom Visual Into Source Control

I have a couple custom visuals I need to check into source control.  A while back I read a blog post detailing what folders I can delete and then there is an install command to run that'll get everything I need back when I have to load the project again.  It looks like the node_modules and .tmp folders are the ones (just over 8,200 files for this particular project).

 

Can anyone tell me what I have to do here, or point me to where I can read up on it?

 

Thanks

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @cboneill0099,

If you're using Git, here's a .gitignore file you can use in your project to ensure that all temp/unnecessary files are excluded (I've had this reviewed by MS as part of certifying a visual).

As long as your package.json and package-lock.json contains all dependencies and is committed, you can rebuild your visual locally after cloning the repo by running:

npm i

...from the root folder of your project. This will scan your package*.json files and reconstruct your project's dependencies in the node_modules folder.

This should be all you need, but feel free to ask any other questions and I'll see if I can clarify for you.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

2 REPLIES 2
dm-p
Super User
Super User

Hi @cboneill0099,

If you're using Git, here's a .gitignore file you can use in your project to ensure that all temp/unnecessary files are excluded (I've had this reviewed by MS as part of certifying a visual).

As long as your package.json and package-lock.json contains all dependencies and is committed, you can rebuild your visual locally after cloning the repo by running:

npm i

...from the root folder of your project. This will scan your package*.json files and reconstruct your project's dependencies in the node_modules folder.

This should be all you need, but feel free to ask any other questions and I'll see if I can clarify for you.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Thank you, appreciate the info.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.