developmentseed/node-sqlite3 — pull request #135 by springmeyer (2013-04-23 22:14:01+00:00)
Title: add gyp post-build action to move module out of build folder

This change uses a gyp post-build action to move, in a cross-platform way, the final `node-sqlite3.nod3` module into the `lib/` folder.

Advantages of this:

- Fixes builds against a node built in debug, that end up in `build/Debug`. Currently in this case the require simply fails because it is hardcoded to `build/Release/node_sqlite3.node`.
- Allows the entire `build` directory to be removed after a successful build - the value of this is for saving room for later packaging. The intermediate object files inside the build directory are often much larger than the final linked module. The alternative of selectively deleting all files and folders inside of `build/` that are not needed at runtime but this is quite is tedious and error prone.