Skip to content

Possibility to use .gitignore (?) #5

Description

@faustort

Behavior:
Zip folder desired folder using .gitignore directives.

Ex of desired folder:

  • /node_modules/
  • /.git/
  • .gitignore
  • index.html
  • orther.rar
  • something_should_not_be_here.zip
  • style.css

Ex of .gitignore:
*.zip
*.rar
/node_modules/

Example of zipped file:

  • index.html
  • style.css

// Could be a .distignore too

Resolution:
Add an option/flag to make it possible.

Real world example using tar:
tar -czvf build.tar.gz -X ./desired_folder_to_bundle/.distignore ./desired_folder_to_bundle

Thanks for this amazing work, this enhancement will be very useful.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions