-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to delete a single file from shopify? #7
Comments
Does it work if you do `console.log(event)` instead of `shopifyUpload(event.path);`? Then we'll know if it’s a `watch` thing or something else downstream.
|
Yes, the delete is registered in my gulp file along with the path of the item being deleted. And the stream function in the module does run on a delete. It's the |
Just messing around with the module, I have been able to get it to work if I create my own 'delete' function and task. I added and I call it with an This is, obviously, a temporary fix because it doesn't add the deleted files to the |
Thanks for investigating. I’ve not had time yet to do it myself, but I should be able to peek into the code soon.
|
I was wondering how this issue is going as I too would like there to be a single file delete option. Thanks |
Maybe I am just missing something but I can not seem to figure out how to delete a single file. After doing some messing around in the code a bit I noticed that the
return through.obj(function(file, encoding, callback)
doesn't fire on a delete. I'm not sure if it's because of how I am calling the module or if it just doesn't work that way. I'm currently calling the module by adding a watch to all my folders and files I want pushed to shopifygulp.watch('dist/{assets,layout,config,sections,snippets,templates,locales}/**/*.*', (event) => { shopifyUpload(event.path); });
and passing the changed file to a function that is calling the gulp-shopify-theme stream
function shopifyUpload(path) { return gulp.src(path) .pipe(shopifytheme.stream()); };
Any help with this would be much appreciated.
The text was updated successfully, but these errors were encountered: