-
Notifications
You must be signed in to change notification settings - Fork 67
gulp not cleared .tmp after a file change #87
Comments
Hi @gabrieldevelops why do you need to clean the |
@micaelmbagira gulp serve use the .tmp files in browser, at least for me |
Alright, about this one, we have a fresh PR to fix the conflict that can occur when serving .tmp and src FountainJS/generator-fountain-browsersync#21 |
@gabrieldevelops Does it answer to your question ? |
@micaelmbagira Yes, answer my question |
I just need to update the generator? |
Nope, it's not published yet but what you have to do is reverse the order or baseDir: [
conf.paths.tmp,
conf.paths.src
] |
@micaelmbagira this is conf result in blank page, in Sources(F12 browser), not show app/src folder |
@gabrieldevelops I don't understand... |
Can you send a github project so that I take a look ? |
@gabrieldevelops I tried to replace |
@micaelmbagira after configure baseDir: [ the task inject not working, not inject files in index |
I don't know. I tested your project with |
UPDATE: The reverse order of I just instealled the latest stable fountain release tonight(Aug 31 Maybe this issue should stay open untill the PR is merged and available in the latest release? Also, maybe it would be a good idea to clear out the module.exports = function () {
return {
port: 9000,
server: {
baseDir: [
conf.paths.src,
conf.paths.tmp
],
routes: {
'/bower_components': 'bower_components'
}
},
open: false
};
}; |
I also had this issue and had to resolve this by changing the task |
👍 Thanks, this did the trick. This is still major breakage because reversing order causes bower files not to be injected. |
@dman777 As you can see in this commit, the order of src and .tmp has been reversed only for SystemJS FountainJS/generator-fountain-browsersync@de62a7e.
So the issue is different. |
@micaelmbagira Ok, thanks. I mis-understood. I thought the reverse fix was for non SystemJs since the issue also existed for non SystemJs. |
If it still makes sense, you can open an issue regarding yours |
Could we re-open this one for convience? Since the title states the issue and all notes are on here? Simple fix, unless you wanted to code to handle/detect removing files dynamically. |
Ok, can you explain the exact bug you had then ? |
Sure.... when running This will not be apparent to the developer. He/She will have side effects such as code changes on existing .js sheets that will not take effect(being that the old .js files are still being injected and still taking effect). Restarting gulp with cleaning the Coding to detect a file removed real time and remove it in |
I'm also having the same problem. Usually when i create a new component/module/directive, i copy and paste an existing component/module/directive folder so i don't have to write everything again, just change names and code i need. Angular started complaining about component name colision and i couldn't understand why. After some debugging, i found that files remained as i copied in .tmp folder, they didn't change as i was editing. To solve the problem, i have to manually delete the .tmp folder and restart the server. |
I'm having the same problem. .tmp not getting updated. |
Same problem. I fix it by adding 'clean' task in 'inject' task |
+1 same issue!!! caching and does not recognize changes |
Guys, be careful with the solution above(@zmts, @LuukMoret, @gabrieldevelops), when you add It happens because If you run |
@matheusdavidson Before make build just remove |
did that @zmts, just wanted to document this here so people can find it if they get the same error. |
Is this fixed already? Updated and i still need to apply the fix. |
Won't fix. But you can add the |
I realized that while the gulp is running in server mode, it does not perform cleaning the .tmp and the server is running on top of that folder files.
I resolved this issue add 'clean' in task serve, in gulp file:
gulp.task('serve', gulp.series('clean','inject', 'watch', 'browsersync'));
any better suggestions?
The text was updated successfully, but these errors were encountered: