Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Unpublish banner image #152

Closed
wants to merge 1 commit into from
Closed

Unpublish banner image #152

wants to merge 1 commit into from

Conversation

Alhadis
Copy link
Collaborator

@Alhadis Alhadis commented Nov 11, 2016

Minor fix to improve the package's filesize (shaving off ~1.6 MBs). Basically, this image is now being loaded from a specific commit, instead of the master branch:

fievel-mousekewitz48.gif

Ideally, we'd be using .npmignore to exclude the image from publication, but Atom's package manager has no support for this feature... so whatever the branch holds at the time of release is what gets tarballed.

This is adding 1.6 MBs to the package's filesize, which is too large for
a purely presentational asset. Ideally, we'd use an `.npmignore` file to
exclude the image from release tarballs, but APM lacks support for this.
@gorriecoe
Copy link
Contributor

You could use .gitattributes to ignore files during publication.

* text=auto
*.js text eol=lf
/.gitignore export-ignore
/.gitattributes export-ignore
/.editorconfig export-ignore
/fievel-mousekewitz48.gif export-ignore

@Alhadis
Copy link
Collaborator Author

Alhadis commented Nov 12, 2016

@gorriecoe That only works for git archive. NPM and APM work differently.

@gorriecoe
Copy link
Contributor

@Alhadis This works. I have used the same approach in https://github.com/gorriecoe/atom-silverstripe.

@Alhadis
Copy link
Collaborator Author

Alhadis commented Nov 12, 2016

Well, I'll be fucked... it does too. Quite happy to have been proven wrong.

Makes me wonder why the hell we even need .npmignore files, then...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants