c8ctl-plugin-nano 1.0.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 +493 -0
- package/c8ctl-plugin.js +1866 -0
- package/nanobpmn-binary.json +5 -0
- package/package.json +58 -0
- package/platforms.mjs +66 -0
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "c8ctl-plugin-nano",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "c8ctl plugin to start, inspect, and stop a local Nano BPM (nanobpmn) cluster",
|
|
6
|
+
"main": "c8ctl-plugin.js",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/jwulf/c8ctl-plugin-nano"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"c8ctl",
|
|
16
|
+
"c8ctl-plugin",
|
|
17
|
+
"nano",
|
|
18
|
+
"nanobpmn",
|
|
19
|
+
"nano-bpm",
|
|
20
|
+
"camunda"
|
|
21
|
+
],
|
|
22
|
+
"files": [
|
|
23
|
+
"c8ctl-plugin.js",
|
|
24
|
+
"platforms.mjs",
|
|
25
|
+
"nanobpmn-binary.json",
|
|
26
|
+
"README.md"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"lint": "node --check c8ctl-plugin.js",
|
|
30
|
+
"test": "node --check c8ctl-plugin.js"
|
|
31
|
+
},
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=18"
|
|
35
|
+
},
|
|
36
|
+
"c8ctl": {
|
|
37
|
+
"defaults": {
|
|
38
|
+
"basePort": 8080,
|
|
39
|
+
"nanobpmnRepo": "~/workspace/nanobpmn"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@commitlint/cli": "^20.4.1",
|
|
44
|
+
"@commitlint/config-conventional": "^20.4.1",
|
|
45
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
46
|
+
"@semantic-release/exec": "^7.1.0",
|
|
47
|
+
"@semantic-release/git": "^10.0.1",
|
|
48
|
+
"@semantic-release/github": "^12.0.6",
|
|
49
|
+
"semantic-release": "^25.0.3"
|
|
50
|
+
},
|
|
51
|
+
"optionalDependencies": {
|
|
52
|
+
"c8ctl-plugin-nano-darwin-arm64": "1.0.0",
|
|
53
|
+
"c8ctl-plugin-nano-darwin-x64": "1.0.0",
|
|
54
|
+
"c8ctl-plugin-nano-linux-x64": "1.0.0",
|
|
55
|
+
"c8ctl-plugin-nano-linux-arm64": "1.0.0",
|
|
56
|
+
"c8ctl-plugin-nano-win32-x64": "1.0.0"
|
|
57
|
+
}
|
|
58
|
+
}
|
package/platforms.mjs
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single source of truth for the platform-specific binary packages.
|
|
3
|
+
*
|
|
4
|
+
* Each entry maps a Node platform/arch pair to:
|
|
5
|
+
* - pkg: the npm package name that carries the binary for that platform
|
|
6
|
+
* - os: the npm "os" field value (process.platform)
|
|
7
|
+
* - cpu: the npm "cpu" field value (process.arch)
|
|
8
|
+
* - triple: the Rust target triple (informational; used by the Nano BPM CI)
|
|
9
|
+
* - asset: the GitHub Release asset name uploaded by the Nano BPM CI
|
|
10
|
+
* - bin: the binary file name inside the platform package
|
|
11
|
+
*
|
|
12
|
+
* Consumed by the build/publish scripts here and by the plugin's binary
|
|
13
|
+
* resolution at runtime. The Nano BPM CI must upload one asset per row using
|
|
14
|
+
* the exact `asset` name to the rolling `binaries` release on this repo.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
export const ROOT_PKG = 'c8ctl-plugin-nano';
|
|
18
|
+
export const BIN_BASENAME = 'nanobpm-gateway-rest-server';
|
|
19
|
+
|
|
20
|
+
export const PLATFORMS = [
|
|
21
|
+
{
|
|
22
|
+
pkg: 'c8ctl-plugin-nano-darwin-arm64',
|
|
23
|
+
os: 'darwin',
|
|
24
|
+
cpu: 'arm64',
|
|
25
|
+
triple: 'aarch64-apple-darwin',
|
|
26
|
+
asset: `${BIN_BASENAME}-darwin-arm64`,
|
|
27
|
+
bin: BIN_BASENAME,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
pkg: 'c8ctl-plugin-nano-darwin-x64',
|
|
31
|
+
os: 'darwin',
|
|
32
|
+
cpu: 'x64',
|
|
33
|
+
triple: 'x86_64-apple-darwin',
|
|
34
|
+
asset: `${BIN_BASENAME}-darwin-x64`,
|
|
35
|
+
bin: BIN_BASENAME,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
pkg: 'c8ctl-plugin-nano-linux-x64',
|
|
39
|
+
os: 'linux',
|
|
40
|
+
cpu: 'x64',
|
|
41
|
+
triple: 'x86_64-unknown-linux-gnu',
|
|
42
|
+
asset: `${BIN_BASENAME}-linux-x64`,
|
|
43
|
+
bin: BIN_BASENAME,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
pkg: 'c8ctl-plugin-nano-linux-arm64',
|
|
47
|
+
os: 'linux',
|
|
48
|
+
cpu: 'arm64',
|
|
49
|
+
triple: 'aarch64-unknown-linux-gnu',
|
|
50
|
+
asset: `${BIN_BASENAME}-linux-arm64`,
|
|
51
|
+
bin: BIN_BASENAME,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
pkg: 'c8ctl-plugin-nano-win32-x64',
|
|
55
|
+
os: 'win32',
|
|
56
|
+
cpu: 'x64',
|
|
57
|
+
triple: 'x86_64-pc-windows-msvc',
|
|
58
|
+
asset: `${BIN_BASENAME}-win32-x64.exe`,
|
|
59
|
+
bin: `${BIN_BASENAME}.exe`,
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
/** The platform package that matches the host running this code, or undefined. */
|
|
64
|
+
export function platformForHost(platform = process.platform, arch = process.arch) {
|
|
65
|
+
return PLATFORMS.find((p) => p.os === platform && p.cpu === arch);
|
|
66
|
+
}
|