FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix scripts and readme · nodegit/nodegit@d5db161 · GitHub

Repository navigation

Commit d5db161

Browse files
committed
fix scripts and readme
1 parent 5d371ae commit d5db161

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,11 @@ In order to track down possible bugs, you will need a debug buid so you
7474
can get a backtrace with [gdb](http://www.gnu.org/software/gdb/) or
7575
[lldb](http://lldb.llvm.org/).
7676

77-
In order to do so, follow these steps:
77+
If you're building for the first time, run `npm run installDebug` (or `BUILD_ONLY=true npm link`)
7878

79-
1. `BUILD_ONLY=true npm install` (or `BUILD_ONLY=true npm link`)
80-
3. `node-gyp rebuild --debug` (the same as `node-gyp clean configure --debug build`)
79+
Note that you should run `rm -rf build/Release` (or `rd /s /q build/Release` in Windows) to make sure a release build doesn't get loaded instead of the debug build.
8180

82-
If you're doing a subsequent rebuild of NodeGit in debug, the clean function will cause
83-
a lot of extraneous recompilation of things you probably didn't change (like the vendor
84-
dependencies).
85-
86-
1. `BUILD_ONLY=true npm install` (or `BUILD_ONLY=true npm link`)
87-
2. `rm -rf build/Release` to make sure a release build doesnt get loaded instead of the debug build.
88-
3. `node-gyp configure build --debug`
81+
If you're doing a subsequent rebuild of NodeGit in debug, the clean function will cause a lot of extraneous recompilation of things you probably didn't change (like the vendor dependencies). If you need to regenerate the C++ files and recompile you can run `npm run rebuildDebug`, or `npm run recompileDebug` if you've manually updated the C++ files and don't want them to regenerate.
8982

9083
### Installing dependencies: ###
9184

‎package.json‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,22 @@
8585
"mocha": "mocha test/runner test/tests",
8686
"mochaDebug": "mocha --debug-brk test/runner test/tests",
8787
"test": "npm run lint && npm run cov",
88+
8889
"generateJson": "node generate/scripts/generateJson",
8990
"generateNativeCode": "node generate/scripts/generateNativeCode",
9091
"generateMissingTests": "node generate/scripts/generateMissingTests",
92+
93+
94+
"prepublish": "node lifecycleScripts/prepareForBuild.js",
9195
"publish": "node-pre-gyp package && node-pre-gyp publish",
96+
9297
"install": "node lifecycleScripts/install",
98+
"installDebug": "BUILD_DEBUG=true npm install",
9399
"postinstall": "node lifecycleScripts/clean",
94-
"recompile": "BUILD_ONLY=true npm install",
95-
"rebuild": "BUILD_ONLY=true node generate && node-gyp configure build",
96-
"buildDebug": "node generate && BUILD_DEBUG=true npm install",
97-
"prepublish": "node lifecycleScripts/prepareForBuild.js"
100+
101+
"recompile": "node-gyp configure build",
102+
"rebuild": "node generate && node-gyp configure build",
103+
"recompileDebug": "node-gyp configure --debug build",
104+
"rebuildDebug": "node generate && node-gyp configure --debug build"
98105
}
99106
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL