Skip to content

Commit 3ba1fe1

Browse files
committed
Updated to compile on node 8.
1 parent 1138e27 commit 3ba1fe1

5 files changed

Lines changed: 219 additions & 72 deletions

File tree

.gitignore

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
### C template
2+
# Prerequisites
3+
*.d
4+
5+
# Object files
6+
*.o
7+
*.ko
8+
*.obj
9+
*.elf
10+
11+
# Linker output
12+
*.ilk
13+
*.map
14+
*.exp
15+
16+
# Precompiled Headers
17+
*.gch
18+
*.pch
19+
20+
# Libraries
21+
*.lib
22+
*.a
23+
*.la
24+
*.lo
25+
26+
# Shared objects (inc. Windows DLLs)
27+
*.dll
28+
*.so
29+
*.so.*
30+
*.dylib
31+
32+
# Executables
33+
*.exe
34+
*.out
35+
*.app
36+
*.i*86
37+
*.x86_64
38+
*.hex
39+
40+
# Debug files
41+
*.dSYM/
42+
*.su
43+
*.idb
44+
*.pdb
45+
46+
# Kernel Module Compile Results
47+
*.mod*
48+
*.cmd
49+
modules.order
50+
Module.symvers
51+
Mkfile.old
52+
dkms.conf
53+
### C++ template
54+
# Prerequisites
55+
56+
# Compiled Object files
57+
*.slo
58+
59+
# Precompiled Headers
60+
61+
# Compiled Dynamic libraries
62+
63+
# Fortran module files
64+
*.mod
65+
*.smod
66+
67+
# Compiled Static libraries
68+
*.lai
69+
70+
# Executables
71+
### Node template
72+
# Logs
73+
logs
74+
*.log
75+
npm-debug.log*
76+
yarn-debug.log*
77+
yarn-error.log*
78+
79+
# Runtime data
80+
pids
81+
*.pid
82+
*.seed
83+
*.pid.lock
84+
85+
# Directory for instrumented libs generated by jscoverage/JSCover
86+
lib-cov
87+
88+
# Coverage directory used by tools like istanbul
89+
coverage
90+
91+
# nyc test coverage
92+
.nyc_output
93+
94+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
95+
.grunt
96+
97+
# Bower dependency directory (https://bower.io/)
98+
bower_components
99+
100+
# node-waf configuration
101+
.lock-wscript
102+
103+
# Compiled binary addons (http://nodejs.org/api/addons.html)
104+
#build/Release
105+
106+
# Dependency directories
107+
node_modules/
108+
jspm_packages/
109+
110+
# Typescript v1 declaration files
111+
typings/
112+
113+
# Optional npm cache directory
114+
.npm
115+
116+
# Optional eslint cache
117+
.eslintcache
118+
119+
# Optional REPL history
120+
.node_repl_history
121+
122+
# Output of 'npm pack'
123+
*.tgz
124+
125+
# Yarn Integrity file
126+
.yarn-integrity
127+
128+
# dotenv environment variables file
129+
.env
130+
131+
### Developer Files
132+
.idea
133+
*.iml
134+
build

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
language: node_js
22
node_js:
3-
- '0.10'
3+
- '0.10'
4+
- '4'
5+
- '5'
6+
- '6'
7+
- '7'

binding.gyp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"include_dirs": [
1717
"src",
1818
"src/contrib/epee/include",
19+
"<!(node -e \"require('nan')\")"
1920
],
2021
"link_settings": {
2122
"libraries": [

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "cryptonote-util",
33
"version": "0.0.1",
44
"main": "cryptonote",
5+
"gypfile": true,
56
"author": {
67
"name": "LucasJones",
78
"email": "lucasjonesdev@hotmail.co.uk"
@@ -10,8 +11,12 @@
1011
"type": "git",
1112
"url": "https://github.com/LucasJones/node-cryptonote-util.git"
1213
},
13-
"dependencies" : {
14-
"bindings" : "*"
14+
"scripts": {
15+
"test": "node-gyp clean && node-gyp configure && node-gyp build"
16+
},
17+
"dependencies": {
18+
"bindings": "*",
19+
"nan": "^2.6.2"
1520
},
1621
"keywords": [
1722
"cryptonight",

0 commit comments

Comments
 (0)