ngokevin / angle

:clock430: A-Frame command-line tool for installing components and scaffolding templates.
https://www.npmjs.com/package/angle
MIT License
81 stars 20 forks source link

Exclude dist from version control #42

Open timwis opened 6 years ago

timwis commented 6 years ago

Hiya! I wanted to recommend excluding the dist directory from version control by adding it to .gitignore. I know we want it in the npmjs distributed version, but we can accomplish that by (1) building on prepublish (which the template already does), and (2) whitelisting the built files in package.json's files array, as I've done here. This would make sure it's available on unpkg too.

(Including compiled code in version control makes diffs much harder to read and increases the potential of merge conflicts when collaborating). Unless there's some other reason it's included?