-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
interop.js
35 lines (32 loc) · 1.15 KB
/
interop.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env node
// Ideally this would be just a Shell script but Windows exists and I don't want
// to force Windows users to install Shell and configure it to be used to run
// npm scripts (and break their Windows only projects?).
const { spawnSync } = require("child_process");
const { status } = spawnSync(
"npx",
[
"test-e2e-interop",
// This is the shared stuff used in all of our projects.
"--config",
"./node_modules/vis-dev-utils/dist/interop/base-config.json",
// This is specific to this project.
"--project",
"vis-charts https://github.com/visjs/vis-charts.git",
"--project",
"vis-data https://github.com/visjs/vis-data.git",
"--project",
"vis-graph3d https://github.com/visjs/vis-graph3d.git",
"--project",
"vis-network https://github.com/visjs/vis-network.git",
"--project",
"vis-timeline https://github.com/visjs/vis-timeline.git",
"--project",
"vis-util ./vis-util-0.0.0-no-version.tgz",
// Any additional options passed from the command line (e.g. a fail command
// for debugging).
...process.argv.slice(2),
],
{ stdio: "inherit" }
);
process.exitCode = status;