@vizejs/native 0.33.0 → 0.34.0
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 +7 -10
- package/index.js +162 -169
- package/package.json +31 -31
package/README.md
CHANGED
|
@@ -17,25 +17,22 @@ npm install @vizejs/native
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
19
|
```ts
|
|
20
|
-
import { compile, compileFiles } from
|
|
20
|
+
import { compile, compileFiles } from "@vizejs/native";
|
|
21
21
|
|
|
22
22
|
// Single file
|
|
23
|
-
const result = compile(source, { filename:
|
|
23
|
+
const result = compile(source, { filename: "App.vue" });
|
|
24
24
|
|
|
25
25
|
// Multiple files (parallel)
|
|
26
|
-
const results = compileFiles([
|
|
27
|
-
'src/App.vue',
|
|
28
|
-
'src/components/Button.vue'
|
|
29
|
-
], { threads: 4 })
|
|
26
|
+
const results = compileFiles(["src/App.vue", "src/components/Button.vue"], { threads: 4 });
|
|
30
27
|
```
|
|
31
28
|
|
|
32
29
|
## Platform Support
|
|
33
30
|
|
|
34
31
|
| Platform | Architecture | Status |
|
|
35
|
-
|
|
36
|
-
| Linux
|
|
37
|
-
| macOS
|
|
38
|
-
| Windows
|
|
32
|
+
| -------- | ------------ | ------ |
|
|
33
|
+
| Linux | x64, arm64 | ✓ |
|
|
34
|
+
| macOS | x64, arm64 | ✓ |
|
|
35
|
+
| Windows | x64 | ✓ |
|
|
39
36
|
|
|
40
37
|
## License
|
|
41
38
|
|
package/index.js
CHANGED
|
@@ -5,326 +5,319 @@
|
|
|
5
5
|
/* auto-generated by NAPI-RS */
|
|
6
6
|
|
|
7
7
|
const { existsSync, readFileSync } = require('fs')
|
|
8
|
-
const { join } = require(
|
|
8
|
+
const { join } = require("path");
|
|
9
9
|
|
|
10
|
-
const { platform, arch } = process
|
|
10
|
+
const { platform, arch } = process;
|
|
11
11
|
|
|
12
|
-
let nativeBinding = null
|
|
13
|
-
let localFileExisted = false
|
|
14
|
-
let loadError = null
|
|
12
|
+
let nativeBinding = null;
|
|
13
|
+
let localFileExisted = false;
|
|
14
|
+
let loadError = null;
|
|
15
15
|
|
|
16
16
|
function isMusl() {
|
|
17
17
|
// For Node 10
|
|
18
|
-
if (!process.report || typeof process.report.getReport !==
|
|
18
|
+
if (!process.report || typeof process.report.getReport !== "function") {
|
|
19
19
|
try {
|
|
20
|
-
const lddPath = require(
|
|
21
|
-
return readFileSync(lddPath,
|
|
20
|
+
const lddPath = require("child_process").execSync("which ldd").toString().trim();
|
|
21
|
+
return readFileSync(lddPath, "utf8").includes("musl");
|
|
22
22
|
} catch (e) {
|
|
23
|
-
return true
|
|
23
|
+
return true;
|
|
24
24
|
}
|
|
25
25
|
} else {
|
|
26
|
-
const { glibcVersionRuntime } = process.report.getReport().header
|
|
27
|
-
return !glibcVersionRuntime
|
|
26
|
+
const { glibcVersionRuntime } = process.report.getReport().header;
|
|
27
|
+
return !glibcVersionRuntime;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
switch (platform) {
|
|
32
|
-
case
|
|
32
|
+
case "android":
|
|
33
33
|
switch (arch) {
|
|
34
|
-
case
|
|
35
|
-
localFileExisted = existsSync(join(__dirname,
|
|
34
|
+
case "arm64":
|
|
35
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.android-arm64.node"));
|
|
36
36
|
try {
|
|
37
37
|
if (localFileExisted) {
|
|
38
|
-
nativeBinding = require(
|
|
38
|
+
nativeBinding = require("./vize-vitrine.android-arm64.node");
|
|
39
39
|
} else {
|
|
40
|
-
nativeBinding = require(
|
|
40
|
+
nativeBinding = require("@vizejs/native-android-arm64");
|
|
41
41
|
}
|
|
42
42
|
} catch (e) {
|
|
43
|
-
loadError = e
|
|
43
|
+
loadError = e;
|
|
44
44
|
}
|
|
45
|
-
break
|
|
46
|
-
case
|
|
47
|
-
localFileExisted = existsSync(join(__dirname,
|
|
45
|
+
break;
|
|
46
|
+
case "arm":
|
|
47
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.android-arm-eabi.node"));
|
|
48
48
|
try {
|
|
49
49
|
if (localFileExisted) {
|
|
50
|
-
nativeBinding = require(
|
|
50
|
+
nativeBinding = require("./vize-vitrine.android-arm-eabi.node");
|
|
51
51
|
} else {
|
|
52
|
-
nativeBinding = require(
|
|
52
|
+
nativeBinding = require("@vizejs/native-android-arm-eabi");
|
|
53
53
|
}
|
|
54
54
|
} catch (e) {
|
|
55
|
-
loadError = e
|
|
55
|
+
loadError = e;
|
|
56
56
|
}
|
|
57
|
-
break
|
|
57
|
+
break;
|
|
58
58
|
default:
|
|
59
|
-
throw new Error(`Unsupported architecture on Android ${arch}`)
|
|
59
|
+
throw new Error(`Unsupported architecture on Android ${arch}`);
|
|
60
60
|
}
|
|
61
|
-
break
|
|
62
|
-
case
|
|
61
|
+
break;
|
|
62
|
+
case "win32":
|
|
63
63
|
switch (arch) {
|
|
64
|
-
case
|
|
65
|
-
localFileExisted = existsSync(
|
|
66
|
-
join(__dirname, 'vize-vitrine.win32-x64-msvc.node')
|
|
67
|
-
)
|
|
64
|
+
case "x64":
|
|
65
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.win32-x64-msvc.node"));
|
|
68
66
|
try {
|
|
69
67
|
if (localFileExisted) {
|
|
70
|
-
nativeBinding = require(
|
|
68
|
+
nativeBinding = require("./vize-vitrine.win32-x64-msvc.node");
|
|
71
69
|
} else {
|
|
72
|
-
nativeBinding = require(
|
|
70
|
+
nativeBinding = require("@vizejs/native-win32-x64-msvc");
|
|
73
71
|
}
|
|
74
72
|
} catch (e) {
|
|
75
|
-
loadError = e
|
|
73
|
+
loadError = e;
|
|
76
74
|
}
|
|
77
|
-
break
|
|
78
|
-
case
|
|
79
|
-
localFileExisted = existsSync(
|
|
80
|
-
join(__dirname, 'vize-vitrine.win32-ia32-msvc.node')
|
|
81
|
-
)
|
|
75
|
+
break;
|
|
76
|
+
case "ia32":
|
|
77
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.win32-ia32-msvc.node"));
|
|
82
78
|
try {
|
|
83
79
|
if (localFileExisted) {
|
|
84
|
-
nativeBinding = require(
|
|
80
|
+
nativeBinding = require("./vize-vitrine.win32-ia32-msvc.node");
|
|
85
81
|
} else {
|
|
86
|
-
nativeBinding = require(
|
|
82
|
+
nativeBinding = require("@vizejs/native-win32-ia32-msvc");
|
|
87
83
|
}
|
|
88
84
|
} catch (e) {
|
|
89
|
-
loadError = e
|
|
85
|
+
loadError = e;
|
|
90
86
|
}
|
|
91
|
-
break
|
|
92
|
-
case
|
|
93
|
-
localFileExisted = existsSync(
|
|
94
|
-
join(__dirname, 'vize-vitrine.win32-arm64-msvc.node')
|
|
95
|
-
)
|
|
87
|
+
break;
|
|
88
|
+
case "arm64":
|
|
89
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.win32-arm64-msvc.node"));
|
|
96
90
|
try {
|
|
97
91
|
if (localFileExisted) {
|
|
98
|
-
nativeBinding = require(
|
|
92
|
+
nativeBinding = require("./vize-vitrine.win32-arm64-msvc.node");
|
|
99
93
|
} else {
|
|
100
|
-
nativeBinding = require(
|
|
94
|
+
nativeBinding = require("@vizejs/native-win32-arm64-msvc");
|
|
101
95
|
}
|
|
102
96
|
} catch (e) {
|
|
103
|
-
loadError = e
|
|
97
|
+
loadError = e;
|
|
104
98
|
}
|
|
105
|
-
break
|
|
99
|
+
break;
|
|
106
100
|
default:
|
|
107
|
-
throw new Error(`Unsupported architecture on Windows: ${arch}`)
|
|
101
|
+
throw new Error(`Unsupported architecture on Windows: ${arch}`);
|
|
108
102
|
}
|
|
109
|
-
break
|
|
110
|
-
case
|
|
111
|
-
localFileExisted = existsSync(join(__dirname,
|
|
103
|
+
break;
|
|
104
|
+
case "darwin":
|
|
105
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.darwin-universal.node"));
|
|
112
106
|
try {
|
|
113
107
|
if (localFileExisted) {
|
|
114
|
-
nativeBinding = require(
|
|
108
|
+
nativeBinding = require("./vize-vitrine.darwin-universal.node");
|
|
115
109
|
} else {
|
|
116
|
-
nativeBinding = require(
|
|
110
|
+
nativeBinding = require("@vizejs/native-darwin-universal");
|
|
117
111
|
}
|
|
118
|
-
break
|
|
112
|
+
break;
|
|
119
113
|
} catch {}
|
|
120
114
|
switch (arch) {
|
|
121
|
-
case
|
|
122
|
-
localFileExisted = existsSync(join(__dirname,
|
|
115
|
+
case "x64":
|
|
116
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.darwin-x64.node"));
|
|
123
117
|
try {
|
|
124
118
|
if (localFileExisted) {
|
|
125
|
-
nativeBinding = require(
|
|
119
|
+
nativeBinding = require("./vize-vitrine.darwin-x64.node");
|
|
126
120
|
} else {
|
|
127
|
-
nativeBinding = require(
|
|
121
|
+
nativeBinding = require("@vizejs/native-darwin-x64");
|
|
128
122
|
}
|
|
129
123
|
} catch (e) {
|
|
130
|
-
loadError = e
|
|
124
|
+
loadError = e;
|
|
131
125
|
}
|
|
132
|
-
break
|
|
133
|
-
case
|
|
134
|
-
localFileExisted = existsSync(
|
|
135
|
-
join(__dirname, 'vize-vitrine.darwin-arm64.node')
|
|
136
|
-
)
|
|
126
|
+
break;
|
|
127
|
+
case "arm64":
|
|
128
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.darwin-arm64.node"));
|
|
137
129
|
try {
|
|
138
130
|
if (localFileExisted) {
|
|
139
|
-
nativeBinding = require(
|
|
131
|
+
nativeBinding = require("./vize-vitrine.darwin-arm64.node");
|
|
140
132
|
} else {
|
|
141
|
-
nativeBinding = require(
|
|
133
|
+
nativeBinding = require("@vizejs/native-darwin-arm64");
|
|
142
134
|
}
|
|
143
135
|
} catch (e) {
|
|
144
|
-
loadError = e
|
|
136
|
+
loadError = e;
|
|
145
137
|
}
|
|
146
|
-
break
|
|
138
|
+
break;
|
|
147
139
|
default:
|
|
148
|
-
throw new Error(`Unsupported architecture on macOS: ${arch}`)
|
|
140
|
+
throw new Error(`Unsupported architecture on macOS: ${arch}`);
|
|
149
141
|
}
|
|
150
|
-
break
|
|
151
|
-
case
|
|
152
|
-
if (arch !==
|
|
153
|
-
throw new Error(`Unsupported architecture on FreeBSD: ${arch}`)
|
|
142
|
+
break;
|
|
143
|
+
case "freebsd":
|
|
144
|
+
if (arch !== "x64") {
|
|
145
|
+
throw new Error(`Unsupported architecture on FreeBSD: ${arch}`);
|
|
154
146
|
}
|
|
155
|
-
localFileExisted = existsSync(join(__dirname,
|
|
147
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.freebsd-x64.node"));
|
|
156
148
|
try {
|
|
157
149
|
if (localFileExisted) {
|
|
158
|
-
nativeBinding = require(
|
|
150
|
+
nativeBinding = require("./vize-vitrine.freebsd-x64.node");
|
|
159
151
|
} else {
|
|
160
|
-
nativeBinding = require(
|
|
152
|
+
nativeBinding = require("@vizejs/native-freebsd-x64");
|
|
161
153
|
}
|
|
162
154
|
} catch (e) {
|
|
163
|
-
loadError = e
|
|
155
|
+
loadError = e;
|
|
164
156
|
}
|
|
165
|
-
break
|
|
166
|
-
case
|
|
157
|
+
break;
|
|
158
|
+
case "linux":
|
|
167
159
|
switch (arch) {
|
|
168
|
-
case
|
|
160
|
+
case "x64":
|
|
169
161
|
if (isMusl()) {
|
|
170
|
-
localFileExisted = existsSync(
|
|
171
|
-
join(__dirname, 'vize-vitrine.linux-x64-musl.node')
|
|
172
|
-
)
|
|
162
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.linux-x64-musl.node"));
|
|
173
163
|
try {
|
|
174
164
|
if (localFileExisted) {
|
|
175
|
-
nativeBinding = require(
|
|
165
|
+
nativeBinding = require("./vize-vitrine.linux-x64-musl.node");
|
|
176
166
|
} else {
|
|
177
|
-
nativeBinding = require(
|
|
167
|
+
nativeBinding = require("@vizejs/native-linux-x64-musl");
|
|
178
168
|
}
|
|
179
169
|
} catch (e) {
|
|
180
|
-
loadError = e
|
|
170
|
+
loadError = e;
|
|
181
171
|
}
|
|
182
172
|
} else {
|
|
183
|
-
localFileExisted = existsSync(
|
|
184
|
-
join(__dirname, 'vize-vitrine.linux-x64-gnu.node')
|
|
185
|
-
)
|
|
173
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.linux-x64-gnu.node"));
|
|
186
174
|
try {
|
|
187
175
|
if (localFileExisted) {
|
|
188
|
-
nativeBinding = require(
|
|
176
|
+
nativeBinding = require("./vize-vitrine.linux-x64-gnu.node");
|
|
189
177
|
} else {
|
|
190
|
-
nativeBinding = require(
|
|
178
|
+
nativeBinding = require("@vizejs/native-linux-x64-gnu");
|
|
191
179
|
}
|
|
192
180
|
} catch (e) {
|
|
193
|
-
loadError = e
|
|
181
|
+
loadError = e;
|
|
194
182
|
}
|
|
195
183
|
}
|
|
196
|
-
break
|
|
197
|
-
case
|
|
184
|
+
break;
|
|
185
|
+
case "arm64":
|
|
198
186
|
if (isMusl()) {
|
|
199
|
-
localFileExisted = existsSync(
|
|
200
|
-
join(__dirname, 'vize-vitrine.linux-arm64-musl.node')
|
|
201
|
-
)
|
|
187
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.linux-arm64-musl.node"));
|
|
202
188
|
try {
|
|
203
189
|
if (localFileExisted) {
|
|
204
|
-
nativeBinding = require(
|
|
190
|
+
nativeBinding = require("./vize-vitrine.linux-arm64-musl.node");
|
|
205
191
|
} else {
|
|
206
|
-
nativeBinding = require(
|
|
192
|
+
nativeBinding = require("@vizejs/native-linux-arm64-musl");
|
|
207
193
|
}
|
|
208
194
|
} catch (e) {
|
|
209
|
-
loadError = e
|
|
195
|
+
loadError = e;
|
|
210
196
|
}
|
|
211
197
|
} else {
|
|
212
|
-
localFileExisted = existsSync(
|
|
213
|
-
join(__dirname, 'vize-vitrine.linux-arm64-gnu.node')
|
|
214
|
-
)
|
|
198
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.linux-arm64-gnu.node"));
|
|
215
199
|
try {
|
|
216
200
|
if (localFileExisted) {
|
|
217
|
-
nativeBinding = require(
|
|
201
|
+
nativeBinding = require("./vize-vitrine.linux-arm64-gnu.node");
|
|
218
202
|
} else {
|
|
219
|
-
nativeBinding = require(
|
|
203
|
+
nativeBinding = require("@vizejs/native-linux-arm64-gnu");
|
|
220
204
|
}
|
|
221
205
|
} catch (e) {
|
|
222
|
-
loadError = e
|
|
206
|
+
loadError = e;
|
|
223
207
|
}
|
|
224
208
|
}
|
|
225
|
-
break
|
|
226
|
-
case
|
|
209
|
+
break;
|
|
210
|
+
case "arm":
|
|
227
211
|
if (isMusl()) {
|
|
228
|
-
localFileExisted = existsSync(
|
|
229
|
-
join(__dirname, 'vize-vitrine.linux-arm-musleabihf.node')
|
|
230
|
-
)
|
|
212
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.linux-arm-musleabihf.node"));
|
|
231
213
|
try {
|
|
232
214
|
if (localFileExisted) {
|
|
233
|
-
nativeBinding = require(
|
|
215
|
+
nativeBinding = require("./vize-vitrine.linux-arm-musleabihf.node");
|
|
234
216
|
} else {
|
|
235
|
-
nativeBinding = require(
|
|
217
|
+
nativeBinding = require("@vizejs/native-linux-arm-musleabihf");
|
|
236
218
|
}
|
|
237
219
|
} catch (e) {
|
|
238
|
-
loadError = e
|
|
220
|
+
loadError = e;
|
|
239
221
|
}
|
|
240
222
|
} else {
|
|
241
|
-
localFileExisted = existsSync(
|
|
242
|
-
join(__dirname, 'vize-vitrine.linux-arm-gnueabihf.node')
|
|
243
|
-
)
|
|
223
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.linux-arm-gnueabihf.node"));
|
|
244
224
|
try {
|
|
245
225
|
if (localFileExisted) {
|
|
246
|
-
nativeBinding = require(
|
|
226
|
+
nativeBinding = require("./vize-vitrine.linux-arm-gnueabihf.node");
|
|
247
227
|
} else {
|
|
248
|
-
nativeBinding = require(
|
|
228
|
+
nativeBinding = require("@vizejs/native-linux-arm-gnueabihf");
|
|
249
229
|
}
|
|
250
230
|
} catch (e) {
|
|
251
|
-
loadError = e
|
|
231
|
+
loadError = e;
|
|
252
232
|
}
|
|
253
233
|
}
|
|
254
|
-
break
|
|
255
|
-
case
|
|
234
|
+
break;
|
|
235
|
+
case "riscv64":
|
|
256
236
|
if (isMusl()) {
|
|
257
|
-
localFileExisted = existsSync(
|
|
258
|
-
join(__dirname, 'vize-vitrine.linux-riscv64-musl.node')
|
|
259
|
-
)
|
|
237
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.linux-riscv64-musl.node"));
|
|
260
238
|
try {
|
|
261
239
|
if (localFileExisted) {
|
|
262
|
-
nativeBinding = require(
|
|
240
|
+
nativeBinding = require("./vize-vitrine.linux-riscv64-musl.node");
|
|
263
241
|
} else {
|
|
264
|
-
nativeBinding = require(
|
|
242
|
+
nativeBinding = require("@vizejs/native-linux-riscv64-musl");
|
|
265
243
|
}
|
|
266
244
|
} catch (e) {
|
|
267
|
-
loadError = e
|
|
245
|
+
loadError = e;
|
|
268
246
|
}
|
|
269
247
|
} else {
|
|
270
|
-
localFileExisted = existsSync(
|
|
271
|
-
join(__dirname, 'vize-vitrine.linux-riscv64-gnu.node')
|
|
272
|
-
)
|
|
248
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.linux-riscv64-gnu.node"));
|
|
273
249
|
try {
|
|
274
250
|
if (localFileExisted) {
|
|
275
|
-
nativeBinding = require(
|
|
251
|
+
nativeBinding = require("./vize-vitrine.linux-riscv64-gnu.node");
|
|
276
252
|
} else {
|
|
277
|
-
nativeBinding = require(
|
|
253
|
+
nativeBinding = require("@vizejs/native-linux-riscv64-gnu");
|
|
278
254
|
}
|
|
279
255
|
} catch (e) {
|
|
280
|
-
loadError = e
|
|
256
|
+
loadError = e;
|
|
281
257
|
}
|
|
282
258
|
}
|
|
283
|
-
break
|
|
284
|
-
case
|
|
285
|
-
localFileExisted = existsSync(
|
|
286
|
-
join(__dirname, 'vize-vitrine.linux-s390x-gnu.node')
|
|
287
|
-
)
|
|
259
|
+
break;
|
|
260
|
+
case "s390x":
|
|
261
|
+
localFileExisted = existsSync(join(__dirname, "vize-vitrine.linux-s390x-gnu.node"));
|
|
288
262
|
try {
|
|
289
263
|
if (localFileExisted) {
|
|
290
|
-
nativeBinding = require(
|
|
264
|
+
nativeBinding = require("./vize-vitrine.linux-s390x-gnu.node");
|
|
291
265
|
} else {
|
|
292
|
-
nativeBinding = require(
|
|
266
|
+
nativeBinding = require("@vizejs/native-linux-s390x-gnu");
|
|
293
267
|
}
|
|
294
268
|
} catch (e) {
|
|
295
|
-
loadError = e
|
|
269
|
+
loadError = e;
|
|
296
270
|
}
|
|
297
|
-
break
|
|
271
|
+
break;
|
|
298
272
|
default:
|
|
299
|
-
throw new Error(`Unsupported architecture on Linux: ${arch}`)
|
|
273
|
+
throw new Error(`Unsupported architecture on Linux: ${arch}`);
|
|
300
274
|
}
|
|
301
|
-
break
|
|
275
|
+
break;
|
|
302
276
|
default:
|
|
303
|
-
throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`)
|
|
277
|
+
throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`);
|
|
304
278
|
}
|
|
305
279
|
|
|
306
280
|
if (!nativeBinding) {
|
|
307
281
|
if (loadError) {
|
|
308
|
-
throw loadError
|
|
282
|
+
throw loadError;
|
|
309
283
|
}
|
|
310
|
-
throw new Error(`Failed to load native binding`)
|
|
284
|
+
throw new Error(`Failed to load native binding`);
|
|
311
285
|
}
|
|
312
286
|
|
|
313
|
-
const {
|
|
287
|
+
const {
|
|
288
|
+
typeCheck,
|
|
289
|
+
getTypeCheckCapabilities,
|
|
290
|
+
typeCheckBatch,
|
|
291
|
+
compile,
|
|
292
|
+
compileVapor,
|
|
293
|
+
parseTemplate,
|
|
294
|
+
parseSfc,
|
|
295
|
+
compileSfc,
|
|
296
|
+
compileSfcBatch,
|
|
297
|
+
compileSfcBatchWithResults,
|
|
298
|
+
compileCss,
|
|
299
|
+
parseArt,
|
|
300
|
+
artToCsf,
|
|
301
|
+
generateArtDoc,
|
|
302
|
+
generateArtCatalog,
|
|
303
|
+
generateArtDocsBatch,
|
|
304
|
+
generateArtPalette,
|
|
305
|
+
} = nativeBinding;
|
|
314
306
|
|
|
315
|
-
module.exports.typeCheck = typeCheck
|
|
316
|
-
module.exports.getTypeCheckCapabilities = getTypeCheckCapabilities
|
|
317
|
-
module.exports.typeCheckBatch = typeCheckBatch
|
|
318
|
-
module.exports.compile = compile
|
|
319
|
-
module.exports.compileVapor = compileVapor
|
|
320
|
-
module.exports.parseTemplate = parseTemplate
|
|
321
|
-
module.exports.parseSfc = parseSfc
|
|
322
|
-
module.exports.compileSfc = compileSfc
|
|
323
|
-
module.exports.compileSfcBatch = compileSfcBatch
|
|
324
|
-
module.exports.compileSfcBatchWithResults = compileSfcBatchWithResults
|
|
325
|
-
module.exports.
|
|
326
|
-
module.exports.
|
|
327
|
-
module.exports.
|
|
328
|
-
module.exports.
|
|
329
|
-
module.exports.
|
|
330
|
-
module.exports.
|
|
307
|
+
module.exports.typeCheck = typeCheck;
|
|
308
|
+
module.exports.getTypeCheckCapabilities = getTypeCheckCapabilities;
|
|
309
|
+
module.exports.typeCheckBatch = typeCheckBatch;
|
|
310
|
+
module.exports.compile = compile;
|
|
311
|
+
module.exports.compileVapor = compileVapor;
|
|
312
|
+
module.exports.parseTemplate = parseTemplate;
|
|
313
|
+
module.exports.parseSfc = parseSfc;
|
|
314
|
+
module.exports.compileSfc = compileSfc;
|
|
315
|
+
module.exports.compileSfcBatch = compileSfcBatch;
|
|
316
|
+
module.exports.compileSfcBatchWithResults = compileSfcBatchWithResults;
|
|
317
|
+
module.exports.compileCss = compileCss
|
|
318
|
+
module.exports.parseArt = parseArt;
|
|
319
|
+
module.exports.artToCsf = artToCsf;
|
|
320
|
+
module.exports.generateArtDoc = generateArtDoc;
|
|
321
|
+
module.exports.generateArtCatalog = generateArtCatalog;
|
|
322
|
+
module.exports.generateArtDocsBatch = generateArtDocsBatch;
|
|
323
|
+
module.exports.generateArtPalette = generateArtPalette;
|
package/package.json
CHANGED
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"description": "High-performance Vue.js compiler - Native bindings",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"compiler",
|
|
7
|
+
"napi",
|
|
8
|
+
"native",
|
|
9
|
+
"rust",
|
|
10
|
+
"vize",
|
|
11
|
+
"vue"
|
|
12
|
+
],
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/ubugeeei/vize"
|
|
7
17
|
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js",
|
|
20
|
+
"index.d.ts"
|
|
21
|
+
],
|
|
8
22
|
"main": "index.js",
|
|
9
23
|
"types": "index.d.ts",
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@napi-rs/cli": "^3.0.0"
|
|
29
|
+
},
|
|
10
30
|
"napi": {
|
|
11
31
|
"binaryName": "vize-vitrine",
|
|
12
32
|
"targets": [
|
|
@@ -20,35 +40,15 @@
|
|
|
20
40
|
"aarch64-unknown-linux-musl"
|
|
21
41
|
]
|
|
22
42
|
},
|
|
23
|
-
"files": [
|
|
24
|
-
"index.js",
|
|
25
|
-
"index.d.ts"
|
|
26
|
-
],
|
|
27
|
-
"repository": {
|
|
28
|
-
"type": "git",
|
|
29
|
-
"url": "https://github.com/ubugeeei/vize"
|
|
30
|
-
},
|
|
31
|
-
"keywords": [
|
|
32
|
-
"vue",
|
|
33
|
-
"compiler",
|
|
34
|
-
"rust",
|
|
35
|
-
"native",
|
|
36
|
-
"napi",
|
|
37
|
-
"vize"
|
|
38
|
-
],
|
|
39
|
-
"license": "MIT",
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@napi-rs/cli": "^3.0.0"
|
|
42
|
-
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"@vizejs/native-darwin-x64": "0.
|
|
45
|
-
"@vizejs/native-darwin-arm64": "0.
|
|
46
|
-
"@vizejs/native-win32-x64-msvc": "0.
|
|
47
|
-
"@vizejs/native-win32-arm64-msvc": "0.
|
|
48
|
-
"@vizejs/native-linux-x64-gnu": "0.
|
|
49
|
-
"@vizejs/native-linux-x64-musl": "0.
|
|
50
|
-
"@vizejs/native-linux-arm64-gnu": "0.
|
|
51
|
-
"@vizejs/native-linux-arm64-musl": "0.
|
|
44
|
+
"@vizejs/native-darwin-x64": "0.34.0",
|
|
45
|
+
"@vizejs/native-darwin-arm64": "0.34.0",
|
|
46
|
+
"@vizejs/native-win32-x64-msvc": "0.34.0",
|
|
47
|
+
"@vizejs/native-win32-arm64-msvc": "0.34.0",
|
|
48
|
+
"@vizejs/native-linux-x64-gnu": "0.34.0",
|
|
49
|
+
"@vizejs/native-linux-x64-musl": "0.34.0",
|
|
50
|
+
"@vizejs/native-linux-arm64-gnu": "0.34.0",
|
|
51
|
+
"@vizejs/native-linux-arm64-musl": "0.34.0"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "napi build --platform --release --manifest-path ../../crates/vize_vitrine/Cargo.toml -p vize_vitrine --features napi --output-dir .",
|