unitup 0.0.11 → 0.0.12
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/docs/index.html +50 -25
- package/package.json +9 -1
package/docs/index.html
CHANGED
|
@@ -26,11 +26,13 @@
|
|
|
26
26
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/ini.min.js"></script>
|
|
27
27
|
<style>
|
|
28
28
|
html { scroll-behavior: smooth; }
|
|
29
|
-
pre { tab-size: 2; margin: 0; }
|
|
30
|
-
pre code { padding: 1rem; background: #0f172a; border-radius: 0.75rem; font-size: 0.
|
|
31
|
-
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
|
|
29
|
+
pre { tab-size: 2; margin: 0; overflow-x: auto; max-width: 100%; }
|
|
30
|
+
pre code { padding: 1rem; background: #0f172a; border-radius: 0.75rem; font-size: 0.85rem; display: block; overflow-x: auto; white-space: pre; }
|
|
31
|
+
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; word-break: break-word; }
|
|
32
32
|
.doc-section { scroll-margin-top: 2rem; }
|
|
33
|
-
table { border-
|
|
33
|
+
.table-container { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 0.75rem; border: 1px solid #e2e8f0; margin-bottom: 1rem; }
|
|
34
|
+
.dark .table-container { border-color: #334155; }
|
|
35
|
+
table { border-collapse: collapse; width: 100%; min-width: 580px; }
|
|
34
36
|
th, td { border: 1px solid #e2e8f0; padding: 0.75rem 1rem; text-align: left; }
|
|
35
37
|
th { background: #f8fafc; font-weight: 600; }
|
|
36
38
|
.dark th, .dark td { border-color: #334155; }
|
|
@@ -38,31 +40,38 @@
|
|
|
38
40
|
</style>
|
|
39
41
|
</head>
|
|
40
42
|
<body class="bg-slate-50 text-slate-900 antialiased dark:bg-slate-950 dark:text-slate-100 transition-colors">
|
|
41
|
-
<div class="max-w-6xl mx-auto px-6 py-10">
|
|
43
|
+
<div class="max-w-6xl mx-auto px-4 sm:px-6 py-6 sm:py-10">
|
|
42
44
|
<!-- Top Navigation Bar -->
|
|
43
|
-
<div class="flex items-center justify-between mb-10 gap-4 flex-wrap pb-6 border-b border-slate-200 dark:border-slate-800">
|
|
44
|
-
<div class="flex items-center gap-3">
|
|
45
|
+
<div class="flex items-center justify-between mb-8 sm:mb-10 gap-4 flex-wrap pb-6 border-b border-slate-200 dark:border-slate-800">
|
|
46
|
+
<div class="flex items-center gap-2.5 sm:gap-3">
|
|
45
47
|
<span class="text-2xl font-black tracking-tight text-cyan-600 dark:text-cyan-400">unitup</span>
|
|
46
|
-
<span class="text-xs px-2.5 py-0.5 rounded-full bg-cyan-100 text-cyan-800 dark:bg-cyan-950 dark:text-cyan-300 font-semibold border border-cyan-300 dark:border-cyan-800">v0.0.
|
|
47
|
-
<a href="https://github.com/litepacks/unitup" target="_blank" rel="noopener noreferrer" class="text-slate-500 hover:text-cyan-600 dark:text-slate-400 dark:hover:text-cyan-400 transition-colors" aria-label="GitHub Repository">
|
|
48
|
+
<span class="text-xs px-2.5 py-0.5 rounded-full bg-cyan-100 text-cyan-800 dark:bg-cyan-950 dark:text-cyan-300 font-semibold border border-cyan-300 dark:border-cyan-800">v0.0.11</span>
|
|
49
|
+
<a href="https://github.com/litepacks/unitup" target="_blank" rel="noopener noreferrer" class="text-slate-500 hover:text-cyan-600 dark:text-slate-400 dark:hover:text-cyan-400 transition-colors p-1" aria-label="GitHub Repository">
|
|
48
50
|
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.53 1.032 1.53 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"/></svg>
|
|
49
51
|
</a>
|
|
50
52
|
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
|
|
54
|
+
<div class="flex items-center gap-2">
|
|
55
|
+
<button id="mobile-menu-btn" type="button" class="md:hidden p-2 rounded-lg border border-slate-200 dark:border-slate-800 text-slate-500 hover:bg-slate-200 dark:hover:bg-slate-800 dark:text-slate-400" aria-label="Toggle navigation menu">
|
|
56
|
+
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"/></svg>
|
|
57
|
+
</button>
|
|
58
|
+
<button id="theme-toggle" type="button" class="p-2 rounded-lg border border-slate-200 dark:border-slate-800 text-slate-500 hover:bg-slate-200 dark:hover:bg-slate-800 dark:text-slate-400 shrink-0" aria-label="Toggle dark mode">
|
|
59
|
+
<svg class="w-5 h-5 hidden dark:block" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"/></svg>
|
|
60
|
+
<svg class="w-5 h-5 block dark:hidden" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"/></svg>
|
|
61
|
+
</button>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<nav id="nav-menu" class="hidden md:flex w-full md:w-auto flex-col md:flex-row flex-wrap gap-x-4 gap-y-2 text-sm font-medium pt-3 md:pt-0 border-t md:border-t-0 border-slate-200 dark:border-slate-800" aria-label="Page sections">
|
|
65
|
+
<a href="#overview" class="text-slate-600 hover:text-cyan-600 dark:text-slate-400 dark:hover:text-cyan-400 py-1">Overview</a>
|
|
66
|
+
<a href="#comparison" class="text-slate-600 hover:text-cyan-600 dark:text-slate-400 dark:hover:text-cyan-400 py-1">vs PM2</a>
|
|
67
|
+
<a href="#architecture" class="text-slate-600 hover:text-cyan-600 dark:text-slate-400 dark:hover:text-cyan-400 py-1">Architecture</a>
|
|
68
|
+
<a href="#runtimes" class="text-slate-600 hover:text-cyan-600 dark:text-slate-400 dark:hover:text-cyan-400 py-1">Runtimes</a>
|
|
69
|
+
<a href="#cli" class="text-slate-600 hover:text-cyan-600 dark:text-slate-400 dark:hover:text-cyan-400 py-1">CLI Reference</a>
|
|
70
|
+
<a href="#api" class="text-slate-600 hover:text-cyan-600 dark:text-slate-400 dark:hover:text-cyan-400 py-1">API</a>
|
|
71
|
+
<a href="#declarative" class="text-slate-600 hover:text-cyan-600 dark:text-slate-400 dark:hover:text-cyan-400 py-1">Roadmap</a>
|
|
72
|
+
<a href="#troubleshooting" class="text-slate-600 hover:text-cyan-600 dark:text-slate-400 dark:hover:text-cyan-400 py-1">Lingering</a>
|
|
73
|
+
<a href="https://github.com/litepacks/unitup" target="_blank" rel="noopener noreferrer" class="text-cyan-600 dark:text-cyan-400 hover:underline flex items-center gap-1 font-semibold py-1">GitHub →</a>
|
|
61
74
|
</nav>
|
|
62
|
-
<button id="theme-toggle" type="button" class="p-2 rounded-lg border border-slate-200 dark:border-slate-800 text-slate-500 hover:bg-slate-200 dark:hover:bg-slate-800 dark:text-slate-400 shrink-0" aria-label="Toggle dark mode">
|
|
63
|
-
<svg class="w-5 h-5 hidden dark:block" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"/></svg>
|
|
64
|
-
<svg class="w-5 h-5 block dark:hidden" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"/></svg>
|
|
65
|
-
</button>
|
|
66
75
|
</div>
|
|
67
76
|
|
|
68
77
|
<!-- Header / Hero Section -->
|
|
@@ -146,7 +155,7 @@ unitup add ./server --runtime native --name api --start</code></pre>
|
|
|
146
155
|
<strong class="text-slate-800 dark:text-slate-200">unitup</strong> is not a PM2 replacement or an independent process manager. While PM2 runs its own master daemon, unitup is strictly a thin, transparent CLI layer on top of Linux OS <code class="text-cyan-600 dark:text-cyan-400">systemd</code>.
|
|
147
156
|
</p>
|
|
148
157
|
|
|
149
|
-
<div class="
|
|
158
|
+
<div class="table-container">
|
|
150
159
|
<table>
|
|
151
160
|
<thead>
|
|
152
161
|
<tr>
|
|
@@ -241,7 +250,7 @@ WantedBy=default.target</code></pre>
|
|
|
241
250
|
<section id="runtimes" class="doc-section mb-14">
|
|
242
251
|
<h2 class="text-2xl font-bold text-slate-900 dark:text-white mb-4">Supported Runtimes & Auto-Detection</h2>
|
|
243
252
|
|
|
244
|
-
<div class="
|
|
253
|
+
<div class="table-container">
|
|
245
254
|
<table>
|
|
246
255
|
<thead>
|
|
247
256
|
<tr>
|
|
@@ -535,6 +544,22 @@ unitup restart @default</code></pre>
|
|
|
535
544
|
document.documentElement.classList.toggle('dark');
|
|
536
545
|
});
|
|
537
546
|
|
|
547
|
+
// Mobile navigation toggle
|
|
548
|
+
const mobileMenuBtn = document.getElementById('mobile-menu-btn');
|
|
549
|
+
const navMenu = document.getElementById('nav-menu');
|
|
550
|
+
if (mobileMenuBtn && navMenu) {
|
|
551
|
+
mobileMenuBtn.addEventListener('click', () => {
|
|
552
|
+
navMenu.classList.toggle('hidden');
|
|
553
|
+
});
|
|
554
|
+
navMenu.querySelectorAll('a').forEach(link => {
|
|
555
|
+
link.addEventListener('click', () => {
|
|
556
|
+
if (window.innerWidth < 768) {
|
|
557
|
+
navMenu.classList.add('hidden');
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
});
|
|
561
|
+
}
|
|
562
|
+
|
|
538
563
|
// Highlight code blocks
|
|
539
564
|
document.addEventListener('DOMContentLoaded', () => {
|
|
540
565
|
hljs.highlightAll();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unitup",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Minimal, zero-dependency systemd-native service manager for any runtime, script, or executable",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -36,6 +36,14 @@
|
|
|
36
36
|
],
|
|
37
37
|
"author": "",
|
|
38
38
|
"license": "MIT",
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "git+https://github.com/litepacks/unitup.git"
|
|
42
|
+
},
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://github.com/litepacks/unitup/issues"
|
|
45
|
+
},
|
|
46
|
+
"homepage": "https://github.com/litepacks/unitup#readme",
|
|
39
47
|
"engines": {
|
|
40
48
|
"node": ">=20.0.0"
|
|
41
49
|
}
|