guilin 桂林
guilin 桂林

Reputation: 17422

why there a .lock-wscript file after I run node-waf build

after I run node-waf configure and node-waf build, a .lock-wscript show in my folder, what's this? even I run node-waf clean, it still there. shall I keep it or remove it?

Upvotes: 3

Views: 1385

Answers (1)

richq
richq

Reputation: 56458

Node uses (used?) Waf as its build system, and the .lock-wscript file is used by Waf to know where the project's source and build directories are. The lock file is created when you run waf configure and is deleted when you run waf distclean. This latter command also deletes the build directory.

If you delete the .lock-wscript file then you will have to run node-waf configure before you can build the project again. Apart from that there's no real harm deleting it, but then it doesn't take up much disk space either :-)

Upvotes: 5

Related Questions