@vizejs/native 0.0.1-alpha.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -0
- package/package.json +58 -0
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# @vizejs/native
|
|
2
|
+
|
|
3
|
+
Native Node.js bindings for the Vize Vue compiler via NAPI.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Maximum Performance** - Native Rust speed in Node.js
|
|
8
|
+
- **Multi-threaded** - Parallel compilation support
|
|
9
|
+
- **Low Overhead** - Direct NAPI bindings, no IPC
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @vizejs/native
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { compile, compileFiles } from '@vizejs/native'
|
|
21
|
+
|
|
22
|
+
// Single file
|
|
23
|
+
const result = compile(source, { filename: 'App.vue' })
|
|
24
|
+
|
|
25
|
+
// Multiple files (parallel)
|
|
26
|
+
const results = compileFiles([
|
|
27
|
+
'src/App.vue',
|
|
28
|
+
'src/components/Button.vue'
|
|
29
|
+
], { threads: 4 })
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Platform Support
|
|
33
|
+
|
|
34
|
+
| Platform | Architecture | Status |
|
|
35
|
+
|----------|--------------|--------|
|
|
36
|
+
| Linux | x64, arm64 | ✓ |
|
|
37
|
+
| macOS | x64, arm64 | ✓ |
|
|
38
|
+
| Windows | x64 | ✓ |
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
MIT
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vizejs/native",
|
|
3
|
+
"version": "0.0.1-alpha.38",
|
|
4
|
+
"description": "High-performance Vue.js compiler - Native bindings",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"provenance": true,
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"main": "index.js",
|
|
10
|
+
"types": "index.d.ts",
|
|
11
|
+
"napi": {
|
|
12
|
+
"binaryName": "vize-vitrine",
|
|
13
|
+
"targets": [
|
|
14
|
+
"x86_64-apple-darwin",
|
|
15
|
+
"aarch64-apple-darwin",
|
|
16
|
+
"x86_64-pc-windows-msvc",
|
|
17
|
+
"aarch64-pc-windows-msvc",
|
|
18
|
+
"x86_64-unknown-linux-gnu",
|
|
19
|
+
"x86_64-unknown-linux-musl",
|
|
20
|
+
"aarch64-unknown-linux-gnu",
|
|
21
|
+
"aarch64-unknown-linux-musl"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"index.js",
|
|
26
|
+
"index.d.ts"
|
|
27
|
+
],
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "https://github.com/ubugeeei/vize"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"vue",
|
|
34
|
+
"compiler",
|
|
35
|
+
"rust",
|
|
36
|
+
"native",
|
|
37
|
+
"napi",
|
|
38
|
+
"vize"
|
|
39
|
+
],
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@napi-rs/cli": "^3.0.0"
|
|
43
|
+
},
|
|
44
|
+
"optionalDependencies": {
|
|
45
|
+
"@vizejs/native-darwin-x64": "0.0.1-alpha.38",
|
|
46
|
+
"@vizejs/native-darwin-arm64": "0.0.1-alpha.38",
|
|
47
|
+
"@vizejs/native-win32-x64-msvc": "0.0.1-alpha.38",
|
|
48
|
+
"@vizejs/native-win32-arm64-msvc": "0.0.1-alpha.38",
|
|
49
|
+
"@vizejs/native-linux-x64-gnu": "0.0.1-alpha.38",
|
|
50
|
+
"@vizejs/native-linux-x64-musl": "0.0.1-alpha.38",
|
|
51
|
+
"@vizejs/native-linux-arm64-gnu": "0.0.1-alpha.38",
|
|
52
|
+
"@vizejs/native-linux-arm64-musl": "0.0.1-alpha.38"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "napi build --platform --release --manifest-path ../../crates/vize_vitrine/Cargo.toml -p vize_vitrine --features napi --output-dir .",
|
|
56
|
+
"build:debug": "napi build --platform --manifest-path ../../crates/vize_vitrine/Cargo.toml -p vize_vitrine --features napi --output-dir ."
|
|
57
|
+
}
|
|
58
|
+
}
|