-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b2ab71
commit 5eb5f05
Showing
35 changed files
with
66 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
Tests/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#include <NAPI.h> | ||
|
||
napi_value _init_napi_tests(napi_env, napi_value); | ||
napi_value _init_napoli_tests(napi_env, napi_value); | ||
|
||
NAPI_MODULE(napi_tests, _init_napi_tests) | ||
NAPI_MODULE(napoli_tests, _init_napoli_tests) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = require('./.build/release/NAPITests.node') | ||
module.exports = require('./.build/release/NapoliTests.node') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
SCRIPT_DIR="$(cd "$(dirname "$0")"; pwd)" | ||
|
||
cd "$SCRIPT_DIR/../codegen/" | ||
swift run codegen "${SCRIPT_DIR}/../Sources/NAPI/" | ||
cd "${SCRIPT_DIR}/../Sources/NAPI/" | ||
swift run codegen "${SCRIPT_DIR}/../Sources/Napoli/" | ||
cd "${SCRIPT_DIR}/../Sources/Napoli/" | ||
swiftformat *.generated.swift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# N-API Swift Bindings | ||
# Napoli | ||
|
||
This package provides bindings to the [Node.js N-API](https://nodejs.org/api/n-api.html) so that you can build Node.js Addons in Swift. | ||
This package provides bindings to the [Node.js N-API](https://nodejs.org/api/n-api.html) so that you can build Node.js Addons in Swift. Our intended usecase is for packaging Swift code in an Electron app for use on macOS, Linux, and Windows(!!!), but this can work in other Node.js environments as well. | ||
|
||
**Note:** This is very much a work in progress, expect the API to change drastically between versions! I'll be adding documentation for how to get up and running, and building addons soon™ | ||
This project was originally a fork of [this LinusU repo](https://github.com/LinusU/swift-napi-bindings) but has changed significantally enough to warrant the creation of its own repo. | ||
|
||
See some simple examples here: [LinusU/swift-node-addon-examples](https://github.com/LinusU/swift-node-addon-examples) | ||
The next step is to create a sample project to show how to actually use Napoli with Electron. |