Skip to content

Commit cc1f9bc

Browse files
committed
add js examples
1 parent 6c42abe commit cc1f9bc

15 files changed

+965
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules
22
dist
33
.env
4-
binaries
4+
binaries
5+
napi_dist

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default tseslint.config(
1313
{
1414
ignores: [
1515
"**/node_modules/**/*",
16-
"dist",
16+
"examples/**",
1717
"packages/app/dist",
1818
"packages/cli/dist",
1919
],

examples/express/.napirc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"entrypoint": "src/index.js",
3+
"out": "napi_dist"
4+
}

examples/express/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Quickstart
2+
3+
Each example is already setup and initialize to use napi.
4+
5+
### To view the project on the UI
6+
7+
```
8+
napi ui
9+
```
10+
11+
### Or to split the APIs from the command line directly
12+
13+
```
14+
napi split
15+
```

0 commit comments

Comments
 (0)