muon-ui 0.1.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/LICENSE +21 -0
- package/README.md +84 -0
- package/dist/build-CCuZpajl.cjs +2083 -0
- package/dist/build-CCuZpajl.cjs.map +1 -0
- package/dist/cli.cjs +122 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/index.cjs +9 -0
- package/dist/index.mjs +9 -0
- package/dist/native/linux64/muon-bootstrap +0 -0
- package/dist/native/linux64/muon-prepare +0 -0
- package/dist/native/linuxarm/muon-bootstrap +0 -0
- package/dist/native/linuxarm/muon-prepare +0 -0
- package/dist/native/linuxarm64/muon-bootstrap +0 -0
- package/dist/native/linuxarm64/muon-prepare +0 -0
- package/dist/native/windows32/muon-bootstrap.exe +0 -0
- package/dist/native/windows32/muon-prepare.exe +0 -0
- package/dist/native/windows64/muon-bootstrap.exe +0 -0
- package/dist/native/windows64/muon-prepare.exe +0 -0
- package/dist/runtime/linux64/THIRD_PARTY_NOTICES.md +223 -0
- package/dist/runtime/linux64/libcardio.so +0 -0
- package/dist/runtime/linux64/libmuon-ui.so +0 -0
- package/dist/runtime/linux64/muon-core +0 -0
- package/dist/runtime/linuxarm/THIRD_PARTY_NOTICES.md +223 -0
- package/dist/runtime/linuxarm/libcardio.so +0 -0
- package/dist/runtime/linuxarm/libmuon-ui.so +0 -0
- package/dist/runtime/linuxarm/muon-core +0 -0
- package/dist/runtime/linuxarm64/THIRD_PARTY_NOTICES.md +223 -0
- package/dist/runtime/linuxarm64/libcardio.so +0 -0
- package/dist/runtime/linuxarm64/libmuon-ui.so +0 -0
- package/dist/runtime/linuxarm64/muon-core +0 -0
- package/dist/runtime/windows32/THIRD_PARTY_NOTICES.md +223 -0
- package/dist/runtime/windows32/libcardio.dll +0 -0
- package/dist/runtime/windows32/libmuon-ui.dll +0 -0
- package/dist/runtime/windows32/muon-core.exe +0 -0
- package/dist/runtime/windows64/THIRD_PARTY_NOTICES.md +223 -0
- package/dist/runtime/windows64/libcardio.dll +0 -0
- package/dist/runtime/windows64/libmuon-ui.dll +0 -0
- package/dist/runtime/windows64/muon-core.exe +0 -0
- package/dist/vite.cjs +242 -0
- package/dist/vite.cjs.map +1 -0
- package/dist/vite.mjs +2251 -0
- package/dist/vite.mjs.map +1 -0
- package/images/muon-120.png +0 -0
- package/images/vscode.png +0 -0
- package/muon.d.ts +1039 -0
- package/package.json +91 -0
- package/vite.d.ts +98 -0
package/package.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "muon-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"types": "./muon.d.ts",
|
|
6
|
+
"bin": {
|
|
7
|
+
"muon": "./dist/cli.cjs"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./muon.d.ts",
|
|
12
|
+
"import": "./dist/index.mjs",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./vite": {
|
|
16
|
+
"types": "./vite.d.ts",
|
|
17
|
+
"import": "./dist/vite.mjs",
|
|
18
|
+
"require": "./dist/vite.cjs"
|
|
19
|
+
},
|
|
20
|
+
"./muon.d.ts": "./muon.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"images/muon-120.png",
|
|
25
|
+
"images/vscode.png",
|
|
26
|
+
"dist",
|
|
27
|
+
"muon.d.ts",
|
|
28
|
+
"vite.d.ts"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "npm run build:js && npm run build --workspace muon-prepare && node scripts/stage-muon-prepare.mjs",
|
|
32
|
+
"build:js": "vite build --mode cjs && vite build --mode esm",
|
|
33
|
+
"build:dist": "bash ../build_package.sh --target dist",
|
|
34
|
+
"test": "npm run build && vitest run",
|
|
35
|
+
"verify:package-runtime": "node scripts/verify-package-runtime.mjs",
|
|
36
|
+
"pack": "bash ../build_package.sh"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"adm-zip": ">=0.5.0",
|
|
40
|
+
"commander": ">=14.0.0",
|
|
41
|
+
"json5": ">=2.2.0"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"vite": ">=5.0.0"
|
|
45
|
+
},
|
|
46
|
+
"peerDependenciesMeta": {
|
|
47
|
+
"vite": {
|
|
48
|
+
"optional": true
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/adm-zip": ">=0.5.8",
|
|
53
|
+
"@types/node": ">=24.0.0",
|
|
54
|
+
"async-primitives": ">=1.7.0",
|
|
55
|
+
"prettier-max": ">=1.16.0",
|
|
56
|
+
"screw-up": ">=1.34.0",
|
|
57
|
+
"typescript": ">=5.9.0",
|
|
58
|
+
"vite": ">=7.0.0",
|
|
59
|
+
"vitest": ">=2.0.0"
|
|
60
|
+
},
|
|
61
|
+
"git": {
|
|
62
|
+
"tags": [
|
|
63
|
+
"0.1.0"
|
|
64
|
+
],
|
|
65
|
+
"branches": [
|
|
66
|
+
"main"
|
|
67
|
+
],
|
|
68
|
+
"commit": {
|
|
69
|
+
"hash": "35f9658786642562593735d3b589c1d7ab270ecf",
|
|
70
|
+
"shortHash": "35f9658",
|
|
71
|
+
"date": "2026-05-25T10:42:08+09:00",
|
|
72
|
+
"message": "Initial commit"
|
|
73
|
+
},
|
|
74
|
+
"version": "0.1.0"
|
|
75
|
+
},
|
|
76
|
+
"description": "A multi-platform GUI application framework that uses CEF as its backend",
|
|
77
|
+
"keywords": [
|
|
78
|
+
"chromium",
|
|
79
|
+
"chrome",
|
|
80
|
+
"cef",
|
|
81
|
+
"native-apps"
|
|
82
|
+
],
|
|
83
|
+
"author": "Kouji Matsui (@kekyo@mi.kekyo.net)",
|
|
84
|
+
"license": "MIT",
|
|
85
|
+
"repository": {
|
|
86
|
+
"type": "git",
|
|
87
|
+
"url": "https://github.com/kekyo/muon-ui.git"
|
|
88
|
+
},
|
|
89
|
+
"homepage": "https://github.com/kekyo/muon-ui#readme",
|
|
90
|
+
"buildDate": "2026-06-19T18:59:07+09:00"
|
|
91
|
+
}
|
package/vite.d.ts
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// muon - Multi-platform GUI application framework that uses CEF as its backend
|
|
2
|
+
// Copyright (c) Kouji Matsui. (@kekyo@mi.kekyo.net)
|
|
3
|
+
// Under MIT.
|
|
4
|
+
// https://github.com/kekyo/muon
|
|
5
|
+
|
|
6
|
+
import type { Plugin } from "vite";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Options for generating Muon app distributions after Vite build.
|
|
10
|
+
*/
|
|
11
|
+
export interface MuonViteBuildOptions {
|
|
12
|
+
/**
|
|
13
|
+
* Target aliases or internal target names to build.
|
|
14
|
+
*/
|
|
15
|
+
targets?: readonly string[];
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Build every supported target from the installed package.
|
|
19
|
+
*/
|
|
20
|
+
allTargets?: boolean;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* File name used for the app launcher.
|
|
24
|
+
*
|
|
25
|
+
* @remarks The .exe suffix is added automatically for Windows targets.
|
|
26
|
+
*/
|
|
27
|
+
appName?: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Parent directory that receives dist-linux-amd64/ style outputs.
|
|
31
|
+
*/
|
|
32
|
+
outputRoot?: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Muon config path to embed.
|
|
36
|
+
*/
|
|
37
|
+
configPath?: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Directory containing package runtime/ and native/ folders.
|
|
41
|
+
*
|
|
42
|
+
* @remarks This defaults to the installed muon package dist directory.
|
|
43
|
+
*/
|
|
44
|
+
packageDirectory?: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Asset salt override for deterministic tests.
|
|
48
|
+
*
|
|
49
|
+
* @remarks Production builds should omit this option.
|
|
50
|
+
*/
|
|
51
|
+
assetSalt?: Uint8Array;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Options for the Muon Vite development plugin.
|
|
56
|
+
*/
|
|
57
|
+
export interface MuonVitePluginOptions {
|
|
58
|
+
/**
|
|
59
|
+
* Directory containing muon-core runtime files such as muon-core and plugins.
|
|
60
|
+
*
|
|
61
|
+
* @remarks Relative paths are resolved from the Vite project root. When omitted,
|
|
62
|
+
* the packaged runtime at dist/runtime/<target> is used.
|
|
63
|
+
*/
|
|
64
|
+
muonPath?: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Directory containing CEF files, or a CEF archive root with Release/Resources.
|
|
68
|
+
*
|
|
69
|
+
* @remarks Relative paths are resolved from the Vite project root. When omitted,
|
|
70
|
+
* muon-prepare downloads and caches the tested CEF artifact from muonPath.
|
|
71
|
+
*/
|
|
72
|
+
cefPath?: string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Runtime staging directory used for development startup.
|
|
76
|
+
*
|
|
77
|
+
* @remarks Relative paths are resolved from the Vite project root. Defaults to
|
|
78
|
+
* .muon/<target>.
|
|
79
|
+
*/
|
|
80
|
+
stagePath?: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Build app distributions from Vite output.
|
|
84
|
+
*
|
|
85
|
+
* @remarks Defaults to true during Vite build. Set false to disable the build
|
|
86
|
+
* hook while keeping the development bridge enabled.
|
|
87
|
+
*/
|
|
88
|
+
build?: boolean | MuonViteBuildOptions;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Creates a Vite plugin that launches Muon through Vite's server.open flow.
|
|
93
|
+
*
|
|
94
|
+
* @param options Muon runtime location used for development startup.
|
|
95
|
+
* @returns Vite plugin instance.
|
|
96
|
+
*/
|
|
97
|
+
declare const muon: (options?: MuonVitePluginOptions) => Plugin;
|
|
98
|
+
export default muon;
|