Git Product home page Git Product logo

Comments (9)

szwacz avatar szwacz commented on July 20, 2024

Nice to hear you like this project :)

Hmm, watch definatelly works for me. Did you try to change and save different files or only one?

from nw-boilerplate.

craigshoemaker avatar craigshoemaker commented on July 20, 2024

I do! It's a wonderful place to start for nw.js apps 😄

I've tried making changes to multiple files as well as just a single file. For some reason it just seems to stop processing after the transpile-watch task reports as completed.

I am running Gulp version 3.8.11

from nw-boilerplate.

szwacz avatar szwacz commented on July 20, 2024

Same gulp verion here. Do you use gulp watch in other projects on your machine? Is watch in those working without any problems?

from nw-boilerplate.

craigshoemaker avatar craigshoemaker commented on July 20, 2024

Watch works great with other projects.

I tried re-cloning the project and even tried using other editors (just in case Brackets had watches colliding with the boilerplate), but none of that worked. I also verified I am working off the latest version of node/npm.

I tried a to see if anything like this showed up in other contexts, but didn't see anything that seemed to fit.

Can you think of anything else I might be missing?

from nw-boilerplate.

szwacz avatar szwacz commented on July 20, 2024

Ok, one more, if you run gulp watch by itself (without npm start, just the watch in command line) how it behaves?
I'm asking because start task actually starts more processes https://github.com/szwacz/nw-boilerplate/blob/master/tasks/start.js and that might be the problem

from nw-boilerplate.

craigshoemaker avatar craigshoemaker commented on July 20, 2024

Watch by itself (as you describe above) seems to behave just fine.

Interestingly it only seems to be an issue for non-JavaScript files* in the run task. The reason I say this is that one of my first tests was to make a small change to the app.html. After refreshing the app I noticed that the watch didn't pickup the change on the HTML file. So then I made a change to one of the script files and tried to refresh the application to see the change in the HTML file. This still did not produce a change.

However, when I try to only change something in the JavaScript files, then everything works as expected (meaning I can immediately refresh the app and see the change in the scripts). Which is odd because the command windows doesn't show that the copy or build task have run.

* I tested with HTML and LESS files

from nw-boilerplate.

szwacz avatar szwacz commented on July 20, 2024

Indeed. Now I can reproduce it..... and this is weird as hell.

The problem disappeared for me when I changed glob pattern from *.html to app/**/*.html, can you chceck if it works for you as well?

from nw-boilerplate.

craigshoemaker avatar craigshoemaker commented on July 20, 2024

That did it!!

Just to verify that we're making the change in the same spot, I updated the paths.toCopy array in ./tasks/build.js to:

toCopy: [
    'app/node_modules/**',
    'app/bower_components/**',
    'app/vendor/**',
    'app/**/*.html'
],

That's the same change you made, right?

from nw-boilerplate.

szwacz avatar szwacz commented on July 20, 2024

Yep! Pushed it to repo.

from nw-boilerplate.

Related Issues (18)

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.