|
vor 5 Jahren | |
---|---|---|
.github | vor 5 Jahren | |
__test__ | vor 5 Jahren | |
npm | vor 5 Jahren | |
scripts | vor 5 Jahren | |
src | vor 5 Jahren | |
.gitignore | vor 5 Jahren | |
Cargo.toml | vor 5 Jahren | |
LICENSE | vor 5 Jahren | |
README.md | vor 5 Jahren | |
build.rs | vor 5 Jahren | |
index.d.ts | vor 5 Jahren | |
index.js | vor 5 Jahren | |
package.json | vor 5 Jahren | |
yarn.lock | vor 5 Jahren |
@napi-rs/package-template
Template project for writing node package with napi-rs.
Rust
NodeJS@8.9+
which supported N-API
yarn@1.x
And you will see:
$ ava --verbose
✔ sync function from native code
✔ sleep function from native code (201ms)
─
2 tests passed
✨ Done in 1.12s.
Ensure you have set you NPM_TOKEN in Github
project setting.
In Settings -> Secrets
, add NPM_TOKEN into it.
When you want release package:
yarn version [xxx]
git push --follow-tags
Github actions will do the rest job for you.