Comments (3)
Good find! You're definitely right; the forget
api has no knowledge of how the file path may have been altered by other plugins.
I'm not sure addressing this problem is within the scope of what this plugin aims to achieve. I imagine to solve this problem you're keeping track in your watcher callback of what files may have a different path in the remember cache? E.g. if the path ends in .coffee
, pass .js
instead to forget
?
Curious what thoughts you have on how this could be addressed in a generic manner.
from gulp-remember.
I'm still working this into my build process, so I think I'll come up with a better idea.
For now I forked gulp-remember and simply stripped off the extension when caching and deleting from the cache (since that works for my specific use cases).
Still thinking about it though.
from gulp-remember.
I don't think I'm comfortable with merging the fix you have for this, as there could be files with the same path but different extensions within your source. For example, /some/path/component-1.js
and /some/path/component-1.css
.
As I think about it more, taking care of passing the correct path to forget
as files are deleted should probably be taken care of outside of this plugin.
If you think of some messaging or suggestions to add to the readme as a warning for this case, by all means shoot it my way.
from gulp-remember.
Related Issues (15)
- How to use this with gulp-sourcemaps? HOT 4
- Why use gulp-remember when there is gulp-cached? HOT 4
- Order issue, gulp-order not solving it HOT 1
- Adds file back to the stream with wrong path (i.e. path changes that happened after gulp-remember are already applied) HOT 4
- After remembering() files are out of order from their original gulp.src HOT 2
- Letter case HOT 5
- Weird behavior - Forgets source Jade files replacing them with compiled HTML HOT 2
- Not piping what passed through, but piping destination files HOT 2
- Checking for changes accross teams HOT 1
- It does not handle files added and removed after run tasks HOT 1
- remember seems to cache HOT 1
- Replace deprecated dependency gulp-util HOT 1
- Strange Behavior on Gulp Remember HOT 4
- expose `caches` to module user HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-remember.