Commit c063ef4c authored by Tim Branyen's avatar Tim Branyen

updated npmignore and package.json to ready for npm deployment - updated object and revwalk objects

parent dd4181bb
docs/
example/
test/
util/
vendor/nodeunit
vendor/rimraf
dummyrepo @ 2f6cbe05
Subproject commit d29b7fecf71d0ef4887071ac18dc87f40c2fd4e1
Subproject commit 2f6cbe055f1a6ca0a3ba524ba88a7806ba507a89
......@@ -18,5 +18,9 @@
},
"engines": {
"node": "*"
},
"scripts": {
"preinstall": "./configure",
"install": "make && make install"
}
}
......@@ -33,20 +33,20 @@ void GitObject::Initialize (Handle<v8::Object> target) {
NODE_SET_PROTOTYPE_METHOD(constructor_template, "typeIsLoose", TypeIsLoose);
NODE_SET_PROTOTYPE_METHOD(constructor_template, "size", Size);
Local<Object> types = Object::New();
types->Set(String::New("ANY"), Integer::New(-2));
types->Set(String::New("BAD"), Integer::New(-1));
types->Set(String::New("_EXT1"), Integer::New(0));
types->Set(String::New("COMMIT"), Integer::New(1));
types->Set(String::New("TREE"), Integer::New(2));
types->Set(String::New("BLOB"), Integer::New(3));
types->Set(String::New("TAG"), Integer::New(4));
types->Set(String::New("_EXT2"), Integer::New(5));
types->Set(String::New("OFS_DELTA"), Integer::New(6));
types->Set(String::New("REF_DELTA"), Integer::New(7));
constructor_template->Set(String::New("types"), types);
Local<Object> type = Object::New();
type->Set(String::New("ANY"), Integer::New(-2));
type->Set(String::New("BAD"), Integer::New(-1));
type->Set(String::New("_EXT1"), Integer::New(0));
type->Set(String::New("COMMIT"), Integer::New(1));
type->Set(String::New("TREE"), Integer::New(2));
type->Set(String::New("BLOB"), Integer::New(3));
type->Set(String::New("TAG"), Integer::New(4));
type->Set(String::New("_EXT2"), Integer::New(5));
type->Set(String::New("OFS_DELTA"), Integer::New(6));
type->Set(String::New("REF_DELTA"), Integer::New(7));
constructor_template->Set(String::New("type"), type);
target->Set(String::NewSymbol("Object"), constructor_template->GetFunction());
}
......
......@@ -30,14 +30,14 @@ void RevWalk::Initialize(Handle<Object> target) {
NODE_SET_PROTOTYPE_METHOD(constructor_template, "free", Free);
NODE_SET_PROTOTYPE_METHOD(constructor_template, "repository", Free);
Local<Object> types = Object::New();
Local<Object> sort = Object::New();
types->Set(String::New("NONE"), Integer::New(0));
types->Set(String::New("TOPOLOGICAL"), Integer::New(1));
types->Set(String::New("TIME"), Integer::New(2));
types->Set(String::New("REVERSE"), Integer::New(4));
sort->Set(String::New("NONE"), Integer::New(0));
sort->Set(String::New("TOPOLOGICAL"), Integer::New(1));
sort->Set(String::New("TIME"), Integer::New(2));
sort->Set(String::New("REVERSE"), Integer::New(4));
constructor_template->Set(String::New("types"), types);
constructor_template->Set(String::New("sort"), sort);
target->Set(String::NewSymbol("RevWalk"), constructor_template->GetFunction());
}
......
dummyrepo @ cb09e99e
Subproject commit 978feacee2432e67051f2714ec7d28ad80e16908
Subproject commit cb09e99e91d41705197e0fb60823fdc7df776691
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment