From 77089614841eda75823cfbf0642c99f7cc09c869 Mon Sep 17 00:00:00 2001 From: Andrea Colaci Date: Tue, 17 May 2016 13:33:26 +0100 Subject: [PATCH 1/2] npm docs --- doc/features.md | 1 + doc/npm.md | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 doc/npm.md diff --git a/doc/features.md b/doc/features.md index f092cf1fa..984c6abae 100644 --- a/doc/features.md +++ b/doc/features.md @@ -26,6 +26,7 @@ * Support optional relaxed syntax. * Single line (`// ...`) and multiple line (`/* ... */`) comments (`kParseCommentsFlag`). * Trailing commas at the end of objects and arrays (`kParseTrailingCommasFlag`). +* [NPM compliant](doc/npm.md). ## Unicode diff --git a/doc/npm.md b/doc/npm.md new file mode 100644 index 000000000..5efa76821 --- /dev/null +++ b/doc/npm.md @@ -0,0 +1,31 @@ +## NPM + +# package.json {#package} + +~~~~~~~~~~js +{ + ... + "dependencies": { + ... + "rapidjson": "git@github.com:miloyip/rapidjson.git" + }, + ... + "gypfile": true +} +~~~~~~~~~~ + +# binding.gyp {#binding} + +~~~~~~~~~~js +{ + ... + 'targets': [ + { + ... + 'include_dirs': [ + ' Date: Tue, 17 May 2016 13:33:43 +0100 Subject: [PATCH 2/2] 1.0.4 --- package.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 9e5e4f23c..cc6087a5c 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "rapidjson", - "version": "1.0.3", + "version": "1.0.4", "description": "![](doc/logo/rapidjson.png)", - "main": "index.js", + "main": "include_dirs.js", "directories": { "doc": "doc", "example": "example", @@ -20,6 +20,5 @@ "bugs": { "url": "https://github.com/miloyip/rapidjson/issues" }, - "homepage": "https://github.com/miloyip/rapidjson#readme", - "main": "include_dirs.js" + "homepage": "https://github.com/miloyip/rapidjson#readme" }