@zerolith/cli 0.1.0-alpha.8 → 1.0.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/README.md +4 -4
- package/package.json +7 -7
- package/zerolith.schema.json +4 -0
package/README.md
CHANGED
|
@@ -5,18 +5,18 @@ The `zerolith` command line from npm: `new`, `dev`, which serves a project with
|
|
|
5
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:
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install --global @zerolith/cli
|
|
8
|
+
npm install --global @zerolith/cli
|
|
9
9
|
zerolith new my-app
|
|
10
10
|
cd my-app
|
|
11
11
|
zerolith dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Without a global install, `npx @zerolith/cli
|
|
14
|
+
Without a global install, `npx @zerolith/cli new my-app` does the same, and inside the project `npx zerolith dev` and its npm scripts run the copy it lists.
|
|
15
15
|
|
|
16
16
|
Or add it to an existing project and call it through `npx`:
|
|
17
17
|
|
|
18
18
|
```
|
|
19
|
-
npm install --save-dev @zerolith/cli
|
|
19
|
+
npm install --save-dev @zerolith/cli
|
|
20
20
|
npx zerolith doctor .
|
|
21
21
|
```
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ Prebuilt binaries exist for Linux (glibc), macOS, and Windows on x64 and arm64.
|
|
|
24
24
|
|
|
25
25
|
The commands are documented in the [command line guide](https://zerolith.dev/guide/command-line/).
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
The commands and their flags are stable at 1.0: one that could break a script goes only in a major, after a deprecation notice, under the [versioning policy](https://github.com/molexxxx/zerolith/blob/main/docs/policy/versioning.md).
|
|
28
28
|
|
|
29
29
|
## Documentation
|
|
30
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zerolith/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
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",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"build": "tsc -p tsconfig.build.json"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@zerolith/cli-darwin-arm64": "
|
|
50
|
-
"@zerolith/cli-darwin-x64": "
|
|
51
|
-
"@zerolith/cli-linux-arm64": "
|
|
52
|
-
"@zerolith/cli-linux-x64": "
|
|
53
|
-
"@zerolith/cli-win32-arm64": "
|
|
54
|
-
"@zerolith/cli-win32-x64": "
|
|
49
|
+
"@zerolith/cli-darwin-arm64": "1.0.0",
|
|
50
|
+
"@zerolith/cli-darwin-x64": "1.0.0",
|
|
51
|
+
"@zerolith/cli-linux-arm64": "1.0.0",
|
|
52
|
+
"@zerolith/cli-linux-x64": "1.0.0",
|
|
53
|
+
"@zerolith/cli-win32-arm64": "1.0.0",
|
|
54
|
+
"@zerolith/cli-win32-x64": "1.0.0"
|
|
55
55
|
}
|
|
56
56
|
}
|
package/zerolith.schema.json
CHANGED
|
@@ -50,6 +50,10 @@
|
|
|
50
50
|
"type": "boolean",
|
|
51
51
|
"default": false,
|
|
52
52
|
"description": "Remove the matched prefix before forwarding, so /api/notes reaches the backend as /notes."
|
|
53
|
+
},
|
|
54
|
+
"run": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "A command that starts the backend, such as npm run api: dev, serve, and preview run it in the project folder through the shell when they start and stop it with themselves; the same command under several prefixes starts once."
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
}
|