@zerolith/cli 0.1.0-alpha.1 → 0.1.0-alpha.3

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 (2) hide show
  1. package/README.md +23 -5
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -1,13 +1,31 @@
1
1
  # @zerolith/cli
2
2
 
3
- The `zerolith` command line from npm. The binary is written in Rust; this package carries none itself and depends optionally on one package per platform, so npm installs only the binary that matches the machine.
3
+ The `zerolith` command line from npm: `new`, `dev`, which serves a project with its packages resolved from `node_modules`, `serve`, `build`, which bundles and minifies an application with Rolldown compiled into the binary, `preview`, `importmap`, and `doctor`. The binary is written in Rust; this package carries none itself and depends optionally on one package per platform, so npm installs only the binary that matches the machine.
4
+
5
+ Install it once and start a project. `new` asks a few questions, each with a default, writes the starter, and installs its dependencies, this package among them:
4
6
 
5
7
  ```
6
- npm install --save-dev @zerolith/cli
7
- npx zerolith new my-app
8
- npx zerolith dev .
8
+ npm install --global @zerolith/cli@alpha
9
+ zerolith new my-app
10
+ cd my-app
11
+ zerolith dev
12
+ ```
13
+
14
+ Without a global install, `npx @zerolith/cli@alpha new my-app` does the same, and inside the project `npx zerolith dev` and its npm scripts run the copy it lists.
15
+
16
+ Or add it to an existing project and call it through `npx`:
17
+
18
+ ```
19
+ npm install --save-dev @zerolith/cli@alpha
20
+ npx zerolith doctor .
9
21
  ```
10
22
 
11
23
  Prebuilt binaries exist for Linux (glibc), macOS, and Windows on x64 and arm64. On any other system, or on Alpine and other musl distributions, install the crate with `cargo install zerolith` and point `ZEROLITH_BINARY_PATH` at the binary; the shim runs that instead. Installing with `--omit=optional` leaves the binary out, and the shim says which platform package to install.
12
24
 
13
- The commands are documented in the [command line guide](https://zerolith.dev/guide/command-line/).
25
+ The commands are documented in the [command line guide](https://molexxxx.github.io/zerolith/guide/command-line/).
26
+
27
+ Status: alpha. The commands and their flags may change before 1.0.
28
+
29
+ ## License
30
+
31
+ Apache-2.0. See `LICENSE`.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zerolith/cli",
3
- "version": "0.1.0-alpha.1",
4
- "description": "The zerolith command line from npm: a dev server that serves TypeScript and JSX without a build step, a static build, import maps with integrity hashes, project checks, and the scaffold, as a prebuilt native binary for the platform npm installs on",
3
+ "version": "0.1.0-alpha.3",
4
+ "description": "The zerolith command line from npm: a production build that bundles and minifies, a dev server that serves TypeScript and JSX without a build step, import maps with integrity hashes, project checks, and the scaffold, as a prebuilt native binary for the platform npm installs on",
5
5
  "license": "Apache-2.0",
6
6
  "author": "molexxxx",
7
7
  "homepage": "https://github.com/molexxxx/zerolith#readme",
@@ -40,11 +40,11 @@
40
40
  "build": "tsc -p tsconfig.build.json"
41
41
  },
42
42
  "optionalDependencies": {
43
- "@zerolith/cli-darwin-arm64": "0.1.0-alpha.1",
44
- "@zerolith/cli-darwin-x64": "0.1.0-alpha.1",
45
- "@zerolith/cli-linux-arm64": "0.1.0-alpha.1",
46
- "@zerolith/cli-linux-x64": "0.1.0-alpha.1",
47
- "@zerolith/cli-win32-arm64": "0.1.0-alpha.1",
48
- "@zerolith/cli-win32-x64": "0.1.0-alpha.1"
43
+ "@zerolith/cli-darwin-arm64": "0.1.0-alpha.3",
44
+ "@zerolith/cli-darwin-x64": "0.1.0-alpha.3",
45
+ "@zerolith/cli-linux-arm64": "0.1.0-alpha.3",
46
+ "@zerolith/cli-linux-x64": "0.1.0-alpha.3",
47
+ "@zerolith/cli-win32-arm64": "0.1.0-alpha.3",
48
+ "@zerolith/cli-win32-x64": "0.1.0-alpha.3"
49
49
  }
50
50
  }