siteleaf / siteleaf-gem

Command-line interface (CLI) and Ruby interface for the Siteleaf API
http://siteleaf.com
MIT License
77 stars 11 forks source link

Improve .siteleafignore syntax #28

Closed stewartknapman closed 6 years ago

stewartknapman commented 10 years ago

I'm using the following .siteleafignore, but I am still seeing bower_components and node_modules being uploaded when I run siteleaf push theme.

.DS_Store
.sass-*
*.lock
*.zip
config.ru

# Folders to ignore
node_modules
bower_components

I even added bower_components/*.* and node_modules/*.* but that had no effect.

I did also notice that when I made a change to the ignore file and the pushed the theme again it started up from where it last left off if I'd stopped it mid stream.

themeteorchef commented 10 years ago

+ 1 for this. Have made a handful of changes similar to the above but unwanted files are still being pushed.

larryfox commented 10 years ago

Try using this instead

node_modules/*
bower_components/*
stewartknapman commented 10 years ago

I can confirm that:

node_modules/*
bower_components/*

works as expected, but any of the following does not.

node_modules
bower_components
node_modules/*.*
bower_components/*.*
themeteorchef commented 10 years ago

Confirmed, looks like it works! Thanks @larryfox and @stewartknapman.