Comments (9)
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.
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.
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.
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.
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.
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.
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.
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.
Yep! Pushed it to repo.
from nw-boilerplate.
Related Issues (18)
- Windows release file not created HOT 2
- "unexpected whitespace character" undefined "?" HOT 2
- Change module transpiler to esperanto.js
- Jasmine dependency in the project is messy
- Better gulp watches needed
- On OSX hiting CTRL+C doesn't close the app
- Download nw with "download" lib?
- Update to nw.js v0.12 HOT 2
- Use official NPM distribution HOT 1
- requrejs is not defined at Win32 HOT 3
- How to use with existing nwjs projects? HOT 4
- Unable to compile windows installer HOT 4
- Not really an issue HOT 1
- Less watch not working HOT 1
- How to run the app with env = production HOT 2
- Update the dependencies HOT 2
- spawn makensis ENOENT on "npm run release" in windows HOT 1
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 nw-boilerplate.