Skip to content

Commit a2192c1

Browse files
committed
Moved build/codegen to generate.
This allows node-gyp to clean the build directory without wiping out the code generation files.
1 parent f59963d commit a2192c1

22 files changed

Lines changed: 20 additions & 14 deletions

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
/build/*
2-
!/build/codegen/
1+
/node_modules/
2+
/vendor/libgit2/
3+
/build/
4+
/test/repos/
35

46
/doc/*
57
!/doc/Theme.css
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,8 @@
483483
"tree_entry": {
484484
"ignore": true,
485485

486-
"structType": "git_tree_entry",
487-
"cType": null,
486+
"isStruct": true,
487+
"cType": "git_tree_entry",
488488

489489
"dependencies": [
490490
"../include/tree.h",
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
const fs = require("fs");
33
const ejs = require("ejs");
44
const path = require("path");
5-
6-
var idefs = require("./idefs");
5+
const idefs = require("./compare");
76

87
var classTemplate = ejs.compile(
98
"" + fs.readFileSync(String(__dirname + "/templates/class.cc.ejs")), {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const fs = require("fs");
22
const path = require("path");
33

4-
var version = require("../../package.json").libgit2.version;
4+
var version = require("../package.json").libgit2.version;
55
var descriptor = require("./descriptor.json");
66
var libgit2 = require("./v" + version + ".json");
77

@@ -280,5 +280,5 @@ Object.keys(descriptor).forEach(function(fileName, index) {
280280
fs.writeFileSync(path.join(__dirname, "types.json"),
281281
JSON.stringify(typeMap, null, 2));
282282

283-
fs.writeFileSync(path.join(__dirname, "idefs.json"),
283+
fs.writeFileSync(path.join(__dirname, "compare.json"),
284284
JSON.stringify(files, null, 2));
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)