Giter Site home page Giter Site logo

Comments (3)

ahaurw01 avatar ahaurw01 commented on June 25, 2024

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.

brian-mann avatar brian-mann commented on June 25, 2024

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.

ahaurw01 avatar ahaurw01 commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.