FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.44k stars 637 forks source link

Clean up ignore files #1366

Closed Hirse closed 4 years ago

Hirse commented 4 years ago

This PR cleans up 4 of the existing ignore files (.gitignore, .nodemonignore, .npmignore, and .prettierignore). The most important changes are in which files are included in the npm package.

Updated npm ignore

The configuration in this PR removes as many files from the npm package as possible (including for example screenshots and documentation). This is more intended as a starting point to pick which other files to include.

Removed files are

See below for the complete list of which files were and are now included. In total 99 files, taking about 700kb, are now excluded.

Other Changes

List of files in npm package

-.gitattributes
-.nodemonignore
 bin/credentials-helper
 bin/ungit
 CHANGELOG.md
 components/app/app.bundle.js
 components/app/app.css
 components/app/app.html
-components/app/app.js
-components/app/app.less
 components/app/ungit-plugin.json
 components/branches/branches.bundle.js
 components/branches/branches.css
 components/branches/branches.html
-components/branches/branches.js
-components/branches/branches.less
 components/branches/ungit-plugin.json
 components/commit/commit.bundle.js
 components/commit/commit.css
 components/commit/commit.html
-components/commit/commit.js
-components/commit/commit.less
 components/commit/ungit-plugin.json
 components/commitdiff/commitdiff.bundle.js
 components/commitdiff/commitdiff.css
 components/commitdiff/commitdiff.html
-components/commitdiff/commitdiff.js
-components/commitdiff/commitdiff.less
-components/commitdiff/commitlinediff.js
 components/commitdiff/ungit-plugin.json
 components/crash/crash.bundle.js
 components/crash/crash.css
 components/crash/crash.html
-components/crash/crash.js
-components/crash/crash.less
 components/crash/ungit-plugin.json
 components/dialogs/dialogs.bundle.js
-components/dialogs/dialogs.js
 components/dialogs/formDialog.html
 components/dialogs/prompt.html
 components/dialogs/ungit-plugin.json
 components/gitErrors/gitErrors.bundle.js
 components/gitErrors/gitErrors.html
-components/gitErrors/gitErrors.js
 components/gitErrors/ungit-plugin.json
-components/graph/animateable.js
-components/graph/edge.js
-components/graph/git-graph-actions.js
-components/graph/git-node.js
-components/graph/git-ref.js
 components/graph/graph-graphics.html
 components/graph/graph.bundle.js
 components/graph/graph.css
 components/graph/graph.html
-components/graph/graph.js
-components/graph/graph.less
-components/graph/hover-actions.js
-components/graph/selectable.js
 components/graph/ungit-plugin.json
 components/header/header.bundle.js
 components/header/header.css
 components/header/header.html
-components/header/header.js
-components/header/header.less
 components/header/ungit-plugin.json
 components/home/home.bundle.js
 components/home/home.css
 components/home/home.html
-components/home/home.js
-components/home/home.less
 components/home/ungit-plugin.json
 components/imagediff/imagediff.bundle.js
 components/imagediff/imagediff.css
 components/imagediff/imagediff.html
-components/imagediff/imagediff.js
-components/imagediff/imagediff.less
 components/imagediff/ungit-plugin.json
 components/login/login.bundle.js
 components/login/login.html
-components/login/login.js
 components/login/ungit-plugin.json
 components/path/path.bundle.js
 components/path/path.css
 components/path/path.html
-components/path/path.js
-components/path/path.less
 components/path/ungit-plugin.json
 components/refreshbutton/refreshbutton.bundle.js
 components/refreshbutton/refreshbutton.css
 components/refreshbutton/refreshbutton.html
-components/refreshbutton/refreshbutton.js
-components/refreshbutton/refreshbutton.less
 components/refreshbutton/ungit-plugin.json
 components/remotes/remotes.bundle.js
 components/remotes/remotes.html
-components/remotes/remotes.js
 components/remotes/ungit-plugin.json
 components/repository/repository.bundle.js
 components/repository/repository.css
 components/repository/repository.html
-components/repository/repository.js
-components/repository/repository.less
 components/repository/ungit-plugin.json
 components/staging/staging.bundle.js
 components/staging/staging.css
 components/staging/staging.html
-components/staging/staging.js
-components/staging/staging.less
 components/staging/ungit-plugin.json
 components/stash/stash.bundle.js
 components/stash/stash.css
 components/stash/stash.html
-components/stash/stash.js
-components/stash/stash.less
 components/stash/ungit-plugin.json
 components/submodules/submodules.bundle.js
 components/submodules/submodules.html
-components/submodules/submodules.js
 components/submodules/ungit-plugin.json
 components/textdiff/textdiff.bundle.js
 components/textdiff/textdiff.css
 components/textdiff/textdiff.html
-components/textdiff/textdiff.js
-components/textdiff/textdiff.less
 components/textdiff/ungit-plugin.json
-CONTRIBUTING.md
-gpg_save_screenshot.png
 LICENSE.md
-MERGETOOL.md
 package.json
-PLUGINS.md
 public/css/styles.css
 public/favicon.ico
 public/fonts/glyphicons-halflings-regular.eot
 public/fonts/glyphicons-halflings-regular.svg
 public/fonts/glyphicons-halflings-regular.ttf
 public/fonts/glyphicons-halflings-regular.woff
 public/fonts/OpenSans.woff
 public/fonts/SourceCodePro-Medium.woff
-public/images/icon.icns
-public/images/icon.ico
 public/images/icon.png
 public/images/logo.png
 public/index.html
-public/js/.keep
 public/js/raven.min.js
-public/js/raven.min.js.map
 public/js/ungit.js
-public/less/bootstrap.less
-public/less/d2h.less
-public/less/styles.less
-public/less/variables.less
 public/main.js
-public/vendor/less/bootstrap/alerts.less
-public/vendor/less/bootstrap/badges.less
-public/vendor/less/bootstrap/bootstrap.less
-public/vendor/less/bootstrap/breadcrumbs.less
-public/vendor/less/bootstrap/button-groups.less
-public/vendor/less/bootstrap/buttons.less
-public/vendor/less/bootstrap/carousel.less
-public/vendor/less/bootstrap/close.less
-public/vendor/less/bootstrap/code.less
-public/vendor/less/bootstrap/component-animations.less
-public/vendor/less/bootstrap/dropdowns.less
-public/vendor/less/bootstrap/forms.less
-public/vendor/less/bootstrap/glyphicons.less
-public/vendor/less/bootstrap/grid.less
-public/vendor/less/bootstrap/input-groups.less
-public/vendor/less/bootstrap/jumbotron.less
-public/vendor/less/bootstrap/labels.less
-public/vendor/less/bootstrap/list-group.less
-public/vendor/less/bootstrap/media.less
-public/vendor/less/bootstrap/mixins.less
-public/vendor/less/bootstrap/modals.less
-public/vendor/less/bootstrap/navbar.less
-public/vendor/less/bootstrap/navs.less
-public/vendor/less/bootstrap/normalize.less
-public/vendor/less/bootstrap/pager.less
-public/vendor/less/bootstrap/pagination.less
-public/vendor/less/bootstrap/panels.less
-public/vendor/less/bootstrap/popovers.less
-public/vendor/less/bootstrap/print.less
-public/vendor/less/bootstrap/progress-bars.less
-public/vendor/less/bootstrap/responsive-utilities.less
-public/vendor/less/bootstrap/scaffolding.less
-public/vendor/less/bootstrap/tables.less
-public/vendor/less/bootstrap/theme.less
-public/vendor/less/bootstrap/thumbnails.less
-public/vendor/less/bootstrap/tooltip.less
-public/vendor/less/bootstrap/type.less
-public/vendor/less/bootstrap/utilities.less
-public/vendor/less/bootstrap/variables.less
-public/vendor/less/bootstrap/wells.less
 README.md
-screenshot.png
 source/address-parser.js
 source/bugtracker.js
 source/config.js
 source/git-api.js
 source/git-parser.js
 source/git-promise.js
 source/server.js
 source/sysinfo.js
 source/ungit-plugin.js
 source/utils/cache.js
 source/utils/file-type.js
 source/utils/winston.js
-xkcd.png

npm pack archives

(Zipped as GitHub does not allow .tgz)

Old archive

package size:  2.0 MB
unpacked size: 6.6 MB
total files:   208

ungit-1.5.7-new.tgz.zip

New archive

package size:  1.3 MB
unpacked size: 5.6 MB
total files:   109

ungit-1.5.7-old.tgz.zip