question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why is dist directory in source control?

See original GitHub issue

Generally, build artifacts should not be checked in to source control. This includes the dist directory in your repo. Out of curiosity, why did you decide to check this in? You can use the “releases” feature of Github to upload .zip files for people that don’t want to use the npm package.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Daniel15commented, Oct 24, 2015

Ahh. That sucks 😦

Bower is silly for requiring that. It would be nice to drop dist and Bower one day.

0reactions
Daniel15commented, Apr 28, 2016

the fact that at moment there is no dist folder is a big problem

You don’t need to have dist checked in to your repo to handle Bower. You could either have a separate repo (eg. https://github.com/daniel15/babel-standalone-bower), or use npmcdn (which can load modules from NPM and package them so they work with Bower): https://npmcdn.com/

You can use NPM with ASP.NET Core projects with no issues. You can use a module bundler (such as Webpack or Browserify) and just make sure the resulting bundle is output to the wwwroot directory.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the meaning of the /dist directory in open source ...
The shortform dist stands for distributable and refers to a directory where files will be stored that can be directly used by others...
Read more >
What is the role of src and dist folders in JavaScript/jQuery
The /dist stands for distributable. · The /dist folder contains the minimized version of the source code. · The code present in the...
Read more >
Do I include my dist folder when I upload to my github repo?
We usually don't include the .dist files in our internal source control this helps cut down on merge conflicts and bloat from compiled...
Read more >
the meaning of the /dist directory in open source projects
/dist means "distributable", the compiled code/library. Folder structure varies by build system and programming language. Here are some standard conventions:.
Read more >
Node: How to handle your dist files | by Ikechi Michael - Medium
No, we shouldn't! Never add generated files to source control. Go to your .gitignore file and be sure to ignore those generated files,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found