Skip to content

Commit

Permalink
Demonstrating Native Addons with C/C++
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai committed May 6, 2022
1 parent 8f2b7af commit 5d7ce5c
Show file tree
Hide file tree
Showing 12 changed files with 1,486 additions and 39 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.env*
!.env.example
/result*
/build
/builds

# Logs
Expand Down
6 changes: 2 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ lint:
image: registry.gitlab.com/matrixai/engineering/maintenance/gitlab-runner
script:
- >
nix-shell -I nixpkgs=./pkgs.nix --packages nodejs --run '
npm install;
nix-shell --run '
npm run lint;
'
Expand All @@ -25,8 +24,7 @@ test:
image: registry.gitlab.com/matrixai/engineering/maintenance/gitlab-runner
script:
- >
nix-shell -I nixpkgs=./pkgs.nix --packages nodejs --run '
npm install;
nix-shell --run '
npm run test;
'
Expand Down
9 changes: 9 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"targets": [{
"target_name": "native",
"include_dirs": [
"<!(node -e \"require('napi-macros')\")"
],
"sources": ["./src/native/index.cpp"]
}]
}
Loading

0 comments on commit 5d7ce5c

Please sign in to comment.