Skip to content

Commit d8ac31f

Browse files
committed
update.
1 parent b248faf commit d8ac31f

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ similar as `https://github.com/brettlangdon/NodeLua`
1111
4. now lua can't call nodejs direct.
1212
5. add,linux auto compile luajit.[2018-01-29] http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz
1313
6. add, cjson compile and auto load. [2018-01-29] https://github.com/openresty/lua-cjson/archive/master.zip
14-
7. >win64 need fix.
14+
7. > win64 need fix.
1515
1616

1717
##Installation
@@ -90,3 +90,20 @@ lua2.doFile(__dirname+'/luatest.lua',function(err,ret){
9090

9191
```
9292

93+
### development
94+
95+
96+
generate xcode project:
97+
98+
`node-gyp configure --debug -- -f xcode`
99+
100+
if got `TypeError: 'cmp' is an invalid keyword argument for sort()` error.
101+
102+
103+
use `python2` instead, such as `PYTHON=/usr/bin/python node-gyp configure -- -f xcode`
104+
105+
Now you should have a ./build/binding.xcodeproj which you can open.
106+
107+
Configure the executable of the project in Xcode as node and debug away :)
108+
109+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"author": "smallwhite",
2424
"license": "ISC",
2525
"dependencies": {
26-
"nan": "^2.14.0"
26+
"nan": "^2.14.2"
2727
},
2828
"devDependencies": {
2929
"co": "4.6.0"

0 commit comments

Comments
 (0)