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 9, 2022
1 parent f88428d commit 2f69c75
Show file tree
Hide file tree
Showing 13 changed files with 285 additions and 13,571 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
/dist
.env*
!.env.example
# nix
/result*
/builds
# node-gyp
/build
# prebuildify
/prebuilds

# Logs
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
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
/tmp
/docs
/benches
/build
/builds
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 2f69c75

Please sign in to comment.