@deslop/portfolio 0.1.1222 → 0.1.1227
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 +10 -0
- package/dist/server.js +7 -4
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Portfolio
|
|
2
|
+
|
|
3
|
+
A personal site where visitors see each other move; no sign-in.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install --global @deslop/portfolio
|
|
7
|
+
portfolio service install --url https://portfolio.mp281x.xyz
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Common flags and service commands: [Deslop app runtime](https://github.com/MP281X/deslop/blob/main/packages/runtime/README.md).
|
package/dist/server.js
CHANGED
|
@@ -70427,7 +70427,7 @@ function layerKeyValueStore(directory) {
|
|
|
70427
70427
|
unwrap$7(map$5(dataDirectory, layerKeyValueStore));
|
|
70428
70428
|
const layerProtocol = mergeAll$1(layerSchemaBinary(), succeed$6(MaxBodySize)(mebibytes(10)));
|
|
70429
70429
|
const layerTelemetry = unwrap$7(gen(function* () {
|
|
70430
|
-
const name = yield*
|
|
70430
|
+
const name = (yield* packageMetadata).name;
|
|
70431
70431
|
return match$7(yield* option(String$5("OTEL_URL")), {
|
|
70432
70432
|
onNone: () => empty$8,
|
|
70433
70433
|
onSome: (url) => layerOtlp(`${name}-server`, url, "server")
|
|
@@ -70543,17 +70543,20 @@ function systemctl(...args) {
|
|
|
70543
70543
|
const unitDirectory = gen(function* () {
|
|
70544
70544
|
return (yield* Path$1).join(yield* String$5("HOME"), ".config", "systemd", "user");
|
|
70545
70545
|
});
|
|
70546
|
-
const install = fnUntraced(function* (name, command) {
|
|
70546
|
+
const install = fnUntraced(function* (name, command, options) {
|
|
70547
70547
|
const fs = yield* FileSystem;
|
|
70548
70548
|
const path = yield* Path$1;
|
|
70549
70549
|
const home = yield* String$5("HOME");
|
|
70550
70550
|
const directory = yield* unitDirectory;
|
|
70551
70551
|
const unit = `deslop-${name}.service`;
|
|
70552
70552
|
yield* fs.makeDirectory(directory, { recursive: true });
|
|
70553
|
-
yield* fs.writeFileString(path.join(directory, unit), `[Unit]\nDescription=Deslop ${name}\nAfter=network-online.target\n\n[Service]\nType=simple\nEnvironment=NODE_ENV=production\nEnvironment=${systemdArgument(`PATH=${home}/.vite-plus/bin:/usr/local/bin:/usr/bin:/bin`)}\nEnvironmentFile=-${
|
|
70553
|
+
yield* fs.writeFileString(path.join(directory, unit), `[Unit]\nDescription=Deslop ${name}\nAfter=network-online.target\n\n[Service]\nType=simple\nEnvironment=NODE_ENV=production\nEnvironment=${systemdArgument(`PATH=${home}/.vite-plus/bin:/usr/local/bin:/usr/bin:/bin`)}\nEnvironmentFile=-${replaceAll("%", "%%")(`${home}/.deslop/${name}.env`)}\nExecStart=${join$2(map$8(command, systemdArgument), " ")}\nRestart=on-failure\nRestartSec=3\nUMask=0077\n\n[Install]\nWantedBy=default.target\n`, { mode: 384 });
|
|
70554
70554
|
yield* systemctl("daemon-reload");
|
|
70555
70555
|
yield* systemctl("enable", unit);
|
|
70556
|
-
yield* systemctl(
|
|
70556
|
+
yield* systemctl(match(options?.restart === false, {
|
|
70557
|
+
onFalse: () => "restart",
|
|
70558
|
+
onTrue: () => "start"
|
|
70559
|
+
}), unit);
|
|
70557
70560
|
return `${unit} installed\n`;
|
|
70558
70561
|
});
|
|
70559
70562
|
const installUpdates = fnUntraced(function* (name, command) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/portfolio",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1227",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/MP281X/deslop",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=26"
|
|
32
32
|
},
|
|
33
|
-
"fingerprint": "
|
|
33
|
+
"fingerprint": "9643305317171d46eeaecda2f432f0f3cb4ddb361bdab85baa218533b47b39e7"
|
|
34
34
|
}
|