Skip to content

Commit d9f7487

Browse files
feat: bootstrap project
0 parents  commit d9f7487

21 files changed

Lines changed: 3847 additions & 0 deletions

.DS_Store

6 KB
Binary file not shown.

.cargo/config.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[target.aarch64-apple-darwin]
2+
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"]
3+
4+
[target.x86_64-apple-darwin]
5+
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"]
6+
7+
[target.x86_64-pc-windows-msvc]
8+
rustflags = ["-C", "target-feature=+crt-static"]
9+
10+
[target.i686-pc-windows-msvc]
11+
rustflags = ["-C", "target-feature=+crt-static"]

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/renovate.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:best-practices",
5+
":dependencyDashboardApproval",
6+
":enableVulnerabilityAlerts",
7+
":separateMultipleMajorReleases",
8+
"customManagers:biomeVersions",
9+
":rebaseStalePrs",
10+
":timezone(Europe/Berlin)",
11+
":disableRateLimiting",
12+
":configMigration",
13+
"replacements:all"
14+
],
15+
"osvVulnerabilityAlerts": true,
16+
"packageRules": [
17+
{
18+
"matchPackageNames": [
19+
"@napi/cli",
20+
"napi",
21+
"napi-build",
22+
"napi-derive"
23+
],
24+
"addLabels": [
25+
"napi-rs"
26+
],
27+
"groupName": "napi-rs"
28+
}
29+
],
30+
"customManagers": [
31+
{
32+
"customType": "regex",
33+
"managerFilePatterns": [
34+
"/(^|/)(workflow-templates|\\.(?:github|gitea|forgejo)/(?:workflows|actions))/.+\\.ya?ml$/",
35+
"/(^|/)action\\.ya?ml$/"
36+
],
37+
"matchStrings": [
38+
"datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s.*?:\\s\"(?<currentValue>.*)\"\\s"
39+
]
40+
}
41+
],
42+
}

.github/workflows/release.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
build:
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
include:
14+
- host: macos-latest
15+
target: aarch64-apple-darwin
16+
- host: macos-latest
17+
target: x86_64-apple-darwin
18+
- host: ubuntu-latest
19+
target: x86_64-unknown-linux-gnu
20+
- host: windows-latest
21+
target: x86_64-pc-windows-msvc
22+
runs-on: ${{ matrix.host }}
23+
steps:
24+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
25+
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
26+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
27+
with:
28+
node-version-file: .node-version
29+
cache: 'pnpm'
30+
- uses: dtolnay/rust-toolchain@stable
31+
with:
32+
targets: ${{ matrix.target }}
33+
- run: pnpm install
34+
- run: pnpm napi build --platform --release --esm --target ${{ matrix.target }}
35+
36+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
37+
with:
38+
name: nodes-${{ matrix.host }}-${{ matrix.target }}
39+
path: |
40+
*.node
41+
if-no-files-found: error
42+
43+
publish:
44+
needs: build
45+
runs-on: ubuntu-latest
46+
permissions:
47+
contents: read
48+
steps:
49+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
50+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
51+
with:
52+
pattern: nodes-*
53+
merge-multiple: true
54+
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
55+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
56+
with:
57+
node-version-file: .node-version
58+
cache: 'pnpm'
59+
registry-url: https://registry.npmjs.org
60+
always-auth: true
61+
- run: pnpm install
62+
- run: pnpm napi create-npm-dirs
63+
- run: pnpm napi artifacts -o .
64+
- run: napi build --platform --release --esm
65+
- run: pnpm napi prepublish -t npm --gh-release
66+
67+
- run: pnpm publish --access public
68+
env:
69+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
target

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.19.0

0 commit comments

Comments
 (0)