nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

NodeWebkit Grunt is not working properly

Open dalisoft opened this issue 11 years ago • 6 comments

Hi! I'm using NodeWebkit! In few days i seen grunt in more sites and says this is useful and live reload (its super feature)! I downloaded Grunt demo (https://github.com/nwjs/grunt-nw-builder). If i open nw.exe, NodeWebkit runs Gruntfile.js! I extraced nw and grunt-nw in same folder, maybe its wrong? I am using Windows 10 x32 (x86)

Let me know if somehow wrong, sorry for bad english :)

dalisoft avatar Aug 16 '15 07:08 dalisoft

It's possible you have nw.js/NodeWebkit confused with node.js itself. nw.js is a app runtime, for making native apps with HTML/JS. Node.js is a "platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications."

grunt-nw-builder is for building up and packaging nw.js applications, not for live reload within them.

grunt, on the other hand is a task runner for node.js applications—that is, still only for building them, not for use while running them.

grunt-nw-builder is one of the many packages available for grunt, including grunt-contrib-watch, which may be related to what you are talking about.

There's a wiki page on implementing live reload inside nw.js applications, which is what I think you might be trying to do.

bleush38p avatar Aug 24 '15 01:08 bleush38p

Hi and Thanks @bleush38p I'm know what is Node.js and NodeWebkit and it's difference, my problem is:

  1. Package extraced and placed as showed in NodeWebkit README and NodeWebkitGrunt README => 2) If i open NW.exe and running with Command Prompt, running Gruntfile.js!

I what need do for running page, not a Gruntfile.js?

dalisoft avatar Aug 24 '15 07:08 dalisoft

What are you trying to do? Are you trying to implement live reload on your application? Or are you trying to automatically build node webkit packages?

bleush38p avatar Aug 24 '15 16:08 bleush38p

I want implement gruntjs to nw

dalisoft avatar Aug 24 '15 17:08 dalisoft

Okay, but why? What do you want to do with grunt?

NodeWebkitGrunt is not a way to use grunt inside nw.js. It is a tool that you can use to automatically package nw.js applications.

bleush38p avatar Aug 24 '15 20:08 bleush38p

Ok, thanks! I seen gruntjs is useful application/product in many sites/blogs.

dalisoft avatar Aug 25 '15 19:08 dalisoft