|
пре 5 година | |
---|---|---|
.github | пре 5 година | |
__test__ | пре 5 година | |
npm | пре 5 година | |
scripts | пре 5 година | |
src | пре 5 година | |
.gitignore | пре 5 година | |
Cargo.toml | пре 5 година | |
LICENSE | пре 5 година | |
README.md | пре 5 година | |
build.rs | пре 5 година | |
index.d.ts | пре 5 година | |
index.js | пре 5 година | |
package.json | пре 5 година | |
yarn.lock | пре 5 година |
@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.