File tree 4 files changed +29
-9
lines changed
4 files changed +29
-9
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"targets" : [
3
3
{
4
- "target_name" : "autovivify " ,
4
+ "target_name" : "<(module_name) " ,
5
5
"sources" : [
6
6
"autovivify.cc"
7
7
],
8
8
"include_dirs" : [
9
9
"<!(node -e \" require('nan')\" )"
10
10
]
11
+ },
12
+ {
13
+ "target_name" : "action_after_build" ,
14
+ "type" : "none" ,
15
+ "dependencies" : [
16
+ "<(module_name)"
17
+ ],
18
+ "copies" : [
19
+ {
20
+ "files" : [
21
+ "<(PRODUCT_DIR)/<(module_name).node"
22
+ ],
23
+ "destination" : "<(module_path)"
24
+ }
25
+ ]
11
26
}
12
27
]
13
28
}
Original file line number Diff line number Diff line change
1
+ var binary = require ( 'node-pre-gyp' )
2
+ var path = require ( 'path' )
3
+ var binding_path = binary . find ( path . resolve ( path . join ( __dirname , './package.json' ) ) )
4
+ module . exports = require ( binding_path )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " autovivify" ,
3
3
"description" : " Automatic creation of subobjects and arrays" ,
4
- "main" : " build/Release/autovivify " ,
4
+ "main" : " index.js " ,
5
5
"scripts" : {
6
6
"test" : " mocha" ,
7
- "install" : " node-gyp rebuild "
7
+ "install" : " node-pre- gyp install --fallback-to-build "
8
8
},
9
9
"binary" : {
10
10
"module_name" : " autovivify" ,
11
- "module_path" : " build/Release" ,
11
+ "module_path" : " ./build/{configuration}/{node_abi}-{platform}-{arch}/" ,
12
+ "package_name" : " autovivify-{node_abi}-{platform}-{arch}.tar.gz" ,
12
13
"host" : " https://github.com/allenluce/node-autovivify/releases/download/{version}"
13
14
},
14
15
"author" : " Allen Luce" ,
22
23
"bindings" : " ^1.2.1" ,
23
24
"chai" : " ^3.5.0" ,
24
25
"cz-conventional-changelog" : " ^1.1.5" ,
25
- "mocha" : " ^3.1.2" ,
26
- "nan" : " ^2.2.0" ,
27
- "node-gyp" : " ^3.2.1"
26
+ "mocha" : " ^3.1.2"
28
27
},
29
28
"config" : {
30
29
"commitizen" : {
31
30
"path" : " ./node_modules/cz-conventional-changelog"
32
31
}
33
32
},
34
- "version" : " 1.0.8 " ,
33
+ "version" : " 1.0.11 " ,
35
34
"engines" : {
36
35
"node" : " >= 0.10" ,
37
36
"iojs" : " >= 1.0.0"
38
37
},
39
38
"dependencies" : {
40
39
"aws-sdk" : " ^2.6.9" ,
40
+ "nan" : " ^2.2.0" ,
41
+ "node-gyp" : " ^3.2.1" ,
41
42
"node-pre-gyp" : " ^0.6.30" ,
42
43
"node-pre-gyp-github" : " ^1.3.1"
43
44
}
Original file line number Diff line number Diff line change 1
1
/* global describe it beforeEach */
2
2
const expect = require ( 'chai' ) . expect
3
- const Av = require ( 'bindings' ) ( 'autovivify ')
3
+ const Av = require ( '.. ' )
4
4
const eql = require ( './equal' )
5
5
6
6
describe ( 'Autovivify' , function ( ) {
You can’t perform that action at this time.
0 commit comments