@vivliostyle/cli 9.9.0 → 10.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.
- package/README.md +74 -30
- package/dist/{chunk-WELNNHOB.js → chunk-CKAJY2BE.js} +415 -384
- package/dist/chunk-CKAJY2BE.js.map +1 -0
- package/dist/{chunk-UYKCTF6F.js → chunk-CKXFRCPH.js} +445 -228
- package/dist/chunk-CKXFRCPH.js.map +1 -0
- package/dist/{chunk-3O3N2V7D.js → chunk-IOFOZNLZ.js} +6 -7
- package/dist/chunk-IOFOZNLZ.js.map +1 -0
- package/dist/{chunk-OZ4XTSAH.js → chunk-LVS2NLYC.js} +2 -2
- package/dist/chunk-LVS2NLYC.js.map +1 -0
- package/dist/{chunk-6UU7DEUR.js → chunk-RJO22WHX.js} +32 -33
- package/dist/chunk-RJO22WHX.js.map +1 -0
- package/dist/chunk-RKU7H2GS.js +1076 -0
- package/dist/chunk-RKU7H2GS.js.map +1 -0
- package/dist/{chunk-QWX5MAON.js → chunk-SPTG2DFV.js} +16 -17
- package/dist/chunk-SPTG2DFV.js.map +1 -0
- package/dist/{chunk-G3GROLBN.js → chunk-T2VWLU2I.js} +397 -88
- package/dist/chunk-T2VWLU2I.js.map +1 -0
- package/dist/chunk-ZEBXHUJX.js +334 -0
- package/dist/chunk-ZEBXHUJX.js.map +1 -0
- package/dist/{chunk-FXUEYQRY.js → chunk-ZIK6DINS.js} +3 -3
- package/dist/chunk-ZIK6DINS.js.map +1 -0
- package/dist/cli.js +7 -8
- package/dist/cli.js.map +1 -1
- package/dist/commands/build.js +29 -17
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/create.d.ts +2 -0
- package/dist/commands/create.js +64 -0
- package/dist/commands/create.js.map +1 -0
- package/dist/commands/init.js +23 -14
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/preview.js +26 -20
- package/dist/commands/preview.js.map +1 -1
- package/dist/config/schema.d.ts +8370 -4567
- package/dist/config/schema.js +16 -4
- package/dist/index.d.ts +46 -7
- package/dist/index.js +24 -16
- package/dist/index.js.map +1 -1
- package/dist/node-modules.d.ts +5 -5
- package/dist/node-modules.js +1 -1
- package/dist/vite-adapter.d.ts +1 -0
- package/dist/vite-adapter.js +6 -6
- package/package.json +37 -26
- package/dist/chunk-3O3N2V7D.js.map +0 -1
- package/dist/chunk-4IIM6RSG.js +0 -71
- package/dist/chunk-4IIM6RSG.js.map +0 -1
- package/dist/chunk-6KEOMYDZ.js +0 -89
- package/dist/chunk-6KEOMYDZ.js.map +0 -1
- package/dist/chunk-6UU7DEUR.js.map +0 -1
- package/dist/chunk-FXUEYQRY.js.map +0 -1
- package/dist/chunk-G3GROLBN.js.map +0 -1
- package/dist/chunk-OZ4XTSAH.js.map +0 -1
- package/dist/chunk-QWX5MAON.js.map +0 -1
- package/dist/chunk-UYKCTF6F.js.map +0 -1
- package/dist/chunk-WELNNHOB.js.map +0 -1
- package/types/playwright.d.ts +0 -49
package/README.md
CHANGED
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
[npm-url]: https://npmjs.org/package/@vivliostyle/cli
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
<div align="center">
|
|
9
|
+
<b>Supercharge your command-line publication workflow.</b>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
# Vivliostyle CLI
|
|
9
13
|
|
|
10
14
|
## Install
|
|
11
15
|
|
|
@@ -13,6 +17,10 @@ Supercharge your command-line publication workflow.
|
|
|
13
17
|
npm install -g @vivliostyle/cli
|
|
14
18
|
```
|
|
15
19
|
|
|
20
|
+
## User Guide
|
|
21
|
+
|
|
22
|
+
See [User Guide](https://github.com/vivliostyle/vivliostyle-cli/tree/HEAD/docs#readme)
|
|
23
|
+
|
|
16
24
|
## Use
|
|
17
25
|
|
|
18
26
|
```
|
|
@@ -23,49 +31,84 @@ Options:
|
|
|
23
31
|
-h, --help display help for command
|
|
24
32
|
|
|
25
33
|
Commands:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
34
|
+
create Scaffold a new Vivliostyle project
|
|
35
|
+
init Create a Vivliostyle configuration file
|
|
36
|
+
build Create PDF, EPUB, and other publication files
|
|
37
|
+
preview Open the preview page and interactively save PDFs
|
|
29
38
|
help [command] display help for command
|
|
30
39
|
```
|
|
31
40
|
|
|
32
|
-
### `
|
|
41
|
+
### `create`
|
|
42
|
+
|
|
43
|
+
> Scaffold a new Vivliostyle project
|
|
33
44
|
|
|
34
|
-
|
|
45
|
+
You are new to Vivliostyle? Check out our [Create Book](https://github.com/vivliostyle/vivliostyle-cli/tree/HEAD/packages/create-book#readme) project.
|
|
46
|
+
With Create Book, you can easily bootstrap your book project and start writing without any extra effort.
|
|
47
|
+
|
|
48
|
+
<details>
|
|
49
|
+
<summary><b>Full CLI options</b></summary>
|
|
35
50
|
|
|
36
|
-
```bash
|
|
37
|
-
vivliostyle init
|
|
38
51
|
```
|
|
52
|
+
Usage: vivliostyle create [options] [projectPath]
|
|
39
53
|
|
|
40
|
-
|
|
41
|
-
|
|
54
|
+
scaffold a new Vivliostyle project
|
|
55
|
+
|
|
56
|
+
Options:
|
|
57
|
+
--title <title> title
|
|
58
|
+
--author <author> author
|
|
59
|
+
-l, --language <language> language
|
|
60
|
+
-s, --size <size> paper size
|
|
61
|
+
-T, --theme <theme> theme
|
|
62
|
+
--template <template> Template source in the format of `[provider]:repo[/subpath][#ref]` or as a local directory to copy from.
|
|
63
|
+
--create-config-file-only Create a Vivliostyle config file without generating project template files.
|
|
64
|
+
--proxy-server <proxyServer> HTTP/SOCK proxy server url
|
|
65
|
+
--proxy-bypass <proxyBypass> optional comma-separated domains to bypass proxy
|
|
66
|
+
--proxy-user <proxyUser> optional username for HTTP proxy authentication
|
|
67
|
+
--proxy-pass <proxyPass> optional password for HTTP proxy authentication
|
|
68
|
+
--log-level <level> specify a log level of console outputs (choices: "silent", "info", "verbose", "debug", default: "info")
|
|
69
|
+
-v, --version output the version number
|
|
70
|
+
-h, --help display help for command
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
</details>
|
|
42
74
|
|
|
43
|
-
|
|
75
|
+
### `init`
|
|
76
|
+
|
|
77
|
+
> Create a Vivliostyle configuration file
|
|
78
|
+
|
|
79
|
+
<details>
|
|
80
|
+
<summary><b>Full CLI options</b></summary>
|
|
44
81
|
|
|
45
82
|
```
|
|
83
|
+
Usage: vivliostyle init [options]
|
|
84
|
+
|
|
85
|
+
create vivliostyle config file
|
|
86
|
+
|
|
46
87
|
Options:
|
|
47
88
|
--title <title> title
|
|
48
89
|
--author <author> author
|
|
49
90
|
-l, --language <language> language
|
|
50
|
-
-s, --size
|
|
91
|
+
-s, --size <size> paper size
|
|
51
92
|
-T, --theme <theme> theme
|
|
52
93
|
--log-level <level> specify a log level of console outputs (choices: "silent", "info", "verbose", "debug", default: "info")
|
|
94
|
+
-v, --version output the version number
|
|
53
95
|
-h, --help display help for command
|
|
54
96
|
```
|
|
55
97
|
|
|
98
|
+
</details>
|
|
99
|
+
|
|
56
100
|
### `build`
|
|
57
101
|
|
|
58
|
-
>
|
|
102
|
+
> Create PDF, EPUB, and other publication files
|
|
59
103
|
|
|
60
|
-
|
|
104
|
+
<details>
|
|
105
|
+
<summary><b>Full CLI options</b></summary>
|
|
61
106
|
|
|
62
|
-
```bash
|
|
63
|
-
vivliostyle build
|
|
64
107
|
```
|
|
108
|
+
Usage: vivliostyle build [options] [input]
|
|
65
109
|
|
|
66
|
-
|
|
110
|
+
build and create PDF file
|
|
67
111
|
|
|
68
|
-
```
|
|
69
112
|
Options:
|
|
70
113
|
-c, --config <config_file> path to vivliostyle.config.js [vivliostyle.config.js]
|
|
71
114
|
-o, --output <path> specify output file name or directory [<title>.pdf]
|
|
@@ -101,6 +144,7 @@ Options:
|
|
|
101
144
|
--viewer <URL> specify a URL of displaying viewer instead of vivliostyle-cli's one
|
|
102
145
|
It is useful that using own viewer that has staging features. (ex: https://vivliostyle.vercel.app/)
|
|
103
146
|
--viewer-param <parameters> specify viewer parameters. (ex: "allowScripts=false&pixelRatio=16")
|
|
147
|
+
--browser <browser> Specify a browser type and version to launch the Vivliostyle viewer (ex: chrome@129, firefox) [chrome]
|
|
104
148
|
--proxy-server <proxyServer> HTTP/SOCK proxy server url for underlying Playwright
|
|
105
149
|
--proxy-bypass <proxyBypass> optional comma-separated domains to bypass proxy
|
|
106
150
|
--proxy-user <proxyUser> optional username for HTTP proxy authentication
|
|
@@ -112,20 +156,24 @@ Options:
|
|
|
112
156
|
--no-enable-static-serve disable static file serving
|
|
113
157
|
--vite-config-file <path> Vite config file path
|
|
114
158
|
--no-vite-config-file ignore Vite config file even if it exists
|
|
159
|
+
-v, --version output the version number
|
|
115
160
|
-h, --help display help for command
|
|
116
161
|
```
|
|
117
162
|
|
|
163
|
+
</details>
|
|
164
|
+
|
|
118
165
|
### `preview`
|
|
119
166
|
|
|
120
|
-
>
|
|
167
|
+
> Open the preview page and interactively save PDFs
|
|
168
|
+
|
|
169
|
+
<details>
|
|
170
|
+
<summary><b>Full CLI options</b></summary>
|
|
121
171
|
|
|
122
|
-
```bash
|
|
123
|
-
vivliostyle preview
|
|
124
172
|
```
|
|
173
|
+
Usage: vivliostyle preview [options] [input]
|
|
125
174
|
|
|
126
|
-
|
|
175
|
+
launch preview server
|
|
127
176
|
|
|
128
|
-
```
|
|
129
177
|
Options:
|
|
130
178
|
-c, --config <config_file> path to vivliostyle.config.js
|
|
131
179
|
-T, --theme <theme...> theme path or package name
|
|
@@ -148,8 +196,7 @@ Options:
|
|
|
148
196
|
--viewer <URL> specify a URL of displaying viewer instead of vivliostyle-cli's one
|
|
149
197
|
It is useful that using own viewer that has staging features. (ex: https://vivliostyle.vercel.app/)
|
|
150
198
|
--viewer-param <parameters> specify viewer parameters. (ex: "allowScripts=false&pixelRatio=16")
|
|
151
|
-
--browser <browser>
|
|
152
|
-
Currently, Firefox and Webkit support preview command only! (choices: "chromium", "firefox", "webkit")
|
|
199
|
+
--browser <browser> Specify a browser type and version to launch the Vivliostyle viewer (ex: chrome@129, firefox) [chrome]
|
|
153
200
|
--proxy-server <proxyServer> HTTP/SOCK proxy server url for underlying Playwright
|
|
154
201
|
--proxy-bypass <proxyBypass> optional comma-separated domains to bypass proxy
|
|
155
202
|
--proxy-user <proxyUser> optional username for HTTP proxy authentication
|
|
@@ -163,19 +210,16 @@ Options:
|
|
|
163
210
|
--no-enable-viewer-start-page disable viewer start page
|
|
164
211
|
--vite-config-file <path> Vite config file path
|
|
165
212
|
--no-vite-config-file ignore Vite config file even if it exists
|
|
213
|
+
-v, --version output the version number
|
|
166
214
|
-h, --help display help for command
|
|
167
215
|
```
|
|
168
216
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
See [User Guide](https://docs.vivliostyle.org/#/vivliostyle-cli)
|
|
217
|
+
</details>
|
|
172
218
|
|
|
173
219
|
## Contribute
|
|
174
220
|
|
|
175
221
|
See [Contribution Guide](CONTRIBUTING.md).
|
|
176
222
|
|
|
177
|
-
[](https://sourcerer.io/fame/uetchy/vivliostyle/vivliostyle-cli/links/0)[](https://sourcerer.io/fame/uetchy/vivliostyle/vivliostyle-cli/links/1)[](https://sourcerer.io/fame/uetchy/vivliostyle/vivliostyle-cli/links/2)[](https://sourcerer.io/fame/uetchy/vivliostyle/vivliostyle-cli/links/3)[](https://sourcerer.io/fame/uetchy/vivliostyle/vivliostyle-cli/links/4)[](https://sourcerer.io/fame/uetchy/vivliostyle/vivliostyle-cli/links/5)[](https://sourcerer.io/fame/uetchy/vivliostyle/vivliostyle-cli/links/6)[](https://sourcerer.io/fame/uetchy/vivliostyle/vivliostyle-cli/links/7)
|
|
178
|
-
|
|
179
223
|
## License
|
|
180
224
|
|
|
181
225
|
Licensed under [AGPL Version 3](http://www.gnu.org/licenses/agpl.html).
|