Skip to content

Commit 61ae0a3

Browse files
committed
📦 🚧 ⬆️ Changing over to CPP, installing nan and updating configuration files
1 parent 73996fe commit 61ae0a3

File tree

5 files changed

+152
-9
lines changed

5 files changed

+152
-9
lines changed

.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: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
language: node_js
22
node_js:
3-
- '0.10'
4-
deploy:
5-
provider: npm
6-
7-
api_key:
8-
secure: D9lpUDAx1OudPBji3mapnAhOug3wcEBqFrNgWaFh5XiYesa/f/X0gMOJggLlvzyhLHKs8VdTHShdu3XzlC3EDwr5wCdgYO1JSOyDo93FG7Y/qhPDVFnzdtsKmr813Qtj2UDKIh2ZP+JnjKaITrvUwRmdi/8+B9Enr5o9ulFb/a0=
3+
- '4'
4+
- '5'
5+
- '6'
6+
- '7'
7+
#deploy:
8+
# provider: npm
9+
10+
# api_key:
11+
# secure: D9lpUDAx1OudPBji3mapnAhOug3wcEBqFrNgWaFh5XiYesa/f/X0gMOJggLlvzyhLHKs8VdTHShdu3XzlC3EDwr5wCdgYO1JSOyDo93FG7Y/qhPDVFnzdtsKmr813Qtj2UDKIh2ZP+JnjKaITrvUwRmdi/8+B9Enr5o9ulFb/a0=

binding.gyp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"target_name": "multihashing",
55
"sources": [
6-
"multihashing.cc",
6+
"multihashing.cpp",
77
"scryptjane.c",
88
"scryptn.c",
99
"keccak.c",
@@ -53,6 +53,7 @@
5353
],
5454
"include_dirs": [
5555
"crypto",
56+
"<!(node -e \"require('nan')\")"
5657
],
5758
"cflags_cc": [
5859
"-std=c++0x"
File renamed without changes.

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "multi-hashing",
33
"version": "0.0.9",
44
"main": "multihashing",
5+
"gypfile": true,
56
"author": {
67
"name": "Matthew Little",
78
"email": "[email protected]"
@@ -10,8 +11,12 @@
1011
"type": "git",
1112
"url": "https://github.com/zone117x/node-multi-hashing.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
"scrypt",

0 commit comments

Comments
 (0)