pageship 0.0.1

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.
Files changed (3) hide show
  1. package/README.md +33 -0
  2. package/dist/cli.mjs +13 -0
  3. package/package.json +35 -0
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # Pageship
2
+
3
+ Pageship is a planned HTML publishing service. This package is its early CLI
4
+ development skeleton. It currently displays help and version information only;
5
+ hosting, authentication, and publishing are not implemented.
6
+
7
+ Requires Node.js 24.11 or newer.
8
+
9
+ ```sh
10
+ npx pageship
11
+ npx pageship --help
12
+ npx pageship --version
13
+ ```
14
+
15
+ ## Development
16
+
17
+ Install the [Vite+ CLI](https://viteplus.dev/guide/) and use the exact pnpm version
18
+ pinned in `package.json`.
19
+
20
+ ```sh
21
+ vp install
22
+ pnpm run check
23
+ pnpm run build
24
+ node dist/cli.mjs --help
25
+ npm pack --dry-run
26
+ ```
27
+
28
+ The CLI uses TypeScript and Effect v4's unstable CLI API. Effect and its Node
29
+ platform package are pinned to matching release candidates.
30
+
31
+ ## License
32
+
33
+ UNLICENSED. No open-source license is granted.
package/dist/cli.mjs ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ import { NodeRuntime, NodeServices } from "@effect/platform-node";
3
+ import { Effect } from "effect";
4
+ import { Command } from "effect/unstable/cli";
5
+ //#region package.json
6
+ var version = "0.0.1";
7
+ //#endregion
8
+ //#region src/cli.ts
9
+ const command = Command.make("pageship").pipe(Command.withDescription("Pageship is a planned HTML publishing service.\n\nEarly development: this CLI currently provides help and version information only. Hosting, authentication, and publishing are not implemented."));
10
+ const args = process.argv.slice(2);
11
+ Command.runWith(command, { version })(args.length === 0 ? ["--help"] : args).pipe(Effect.provide(NodeServices.layer), NodeRuntime.runMain);
12
+ //#endregion
13
+ export {};
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "pageship",
3
+ "version": "0.0.1",
4
+ "description": "Pageship CLI development skeleton for a planned HTML publishing service.",
5
+ "license": "UNLICENSED",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/UzEE/pageship.git"
9
+ },
10
+ "bin": {
11
+ "pageship": "dist/cli.mjs"
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "type": "module",
17
+ "scripts": {
18
+ "build": "vp pack",
19
+ "check": "vp check",
20
+ "prepack": "pnpm run check && pnpm run build"
21
+ },
22
+ "dependencies": {
23
+ "@effect/platform-node": "4.0.0-rc.112",
24
+ "effect": "4.0.0-rc.112"
25
+ },
26
+ "devDependencies": {
27
+ "@types/node": "24.13.3",
28
+ "typescript": "7.0.2",
29
+ "vite-plus": "0.3.1"
30
+ },
31
+ "engines": {
32
+ "node": ">=24.11.0"
33
+ },
34
+ "packageManager": "pnpm@12.3.4"
35
+ }