Skip to content

Commit 5d7ce5c

Browse files
committed
Demonstrating Native Addons with C/C++
1 parent 8f2b7af commit 5d7ce5c

12 files changed

+1486
-39
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.env*
44
!.env.example
55
/result*
6+
/build
67
/builds
78

89
# Logs

.gitlab-ci.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ lint:
1515
image: registry.gitlab.com/matrixai/engineering/maintenance/gitlab-runner
1616
script:
1717
- >
18-
nix-shell -I nixpkgs=./pkgs.nix --packages nodejs --run '
19-
npm install;
18+
nix-shell --run '
2019
npm run lint;
2120
'
2221
@@ -25,8 +24,7 @@ test:
2524
image: registry.gitlab.com/matrixai/engineering/maintenance/gitlab-runner
2625
script:
2726
- >
28-
nix-shell -I nixpkgs=./pkgs.nix --packages nodejs --run '
29-
npm install;
27+
nix-shell --run '
3028
npm run test;
3129
'
3230

binding.gyp

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"targets": [{
3+
"target_name": "native",
4+
"include_dirs": [
5+
"<!(node -e \"require('napi-macros')\")"
6+
],
7+
"sources": ["./src/native/index.cpp"]
8+
}]
9+
}

0 commit comments

Comments
 (0)