storyblok 4.26.1 → 4.27.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 +18 -85
- package/dist/index.mjs +586 -94
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|

|
|
4
4
|
|
|
5
5
|
<h1>Storyblok CLI</h1>
|
|
6
|
-
<p>
|
|
6
|
+
<p>The command-line interface for <a href="https://www.storyblok.com?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok" target="_blank">Storyblok</a> projects.</p>
|
|
7
7
|
<br />
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
10
|
<p align="center">
|
|
11
11
|
<a href="https://npmjs.com/package/storyblok">
|
|
12
|
-
<img src="https://img.shields.io/npm/v/storyblok/latest.svg?style=flat-square&color=8d60ff" alt="Storyblok
|
|
12
|
+
<img src="https://img.shields.io/npm/v/storyblok/latest.svg?style=flat-square&color=8d60ff" alt="Storyblok CLI" />
|
|
13
13
|
</a>
|
|
14
14
|
<a href="https://npmjs.com/package/storyblok" rel="nofollow">
|
|
15
15
|
<img src="https://img.shields.io/npm/dt/storyblok.svg?style=appveyor&color=8d60ff" alt="npm">
|
|
@@ -27,94 +27,32 @@
|
|
|
27
27
|
|
|
28
28
|
## Features
|
|
29
29
|
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
- 📝 **Naming Conventions** - Consistent file naming with customizable suffixes and prefixes
|
|
41
|
-
- 📂 **Separate Files Support** - Option to work with individual component files or consolidated
|
|
42
|
-
files
|
|
43
|
-
- 👀 **Dry Run Mode** - Preview migrations changes before applying them to your Storyblok space
|
|
44
|
-
- 🔍 **Filtering Capabilities** - Filter components and stories using glob patterns and Storyblok
|
|
45
|
-
query syntax
|
|
46
|
-
- 🔎 **Content Search** - Find stories by text, block usage, tags, workflow stage, or a JSONPath
|
|
47
|
-
expression over their content, and stream the matches as JSONL for `jq` and other commands
|
|
48
|
-
- 📊 **Verbose Logging** - Improved error handling and detailed logging options for debugging and
|
|
49
|
-
monitoring
|
|
50
|
-
|
|
51
|
-
## Pre-requisites
|
|
52
|
-
|
|
53
|
-
- [Node.js >= 18.0.0](https://nodejs.org/en/download/)
|
|
54
|
-
- Storyblok account (sign up
|
|
55
|
-
[here](https://app.storyblok.com/#!/signup?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-cli))
|
|
56
|
-
- Personal access token from Storyblok (get it
|
|
57
|
-
[here](https://app.storyblok.com/#/me/account?tab=token))
|
|
30
|
+
- **Type generation**: Generate TypeScript types from component schemas
|
|
31
|
+
- **Code-defined schema**: Validate, diff, push, and roll back schemas authored with
|
|
32
|
+
`@storyblok/schema`
|
|
33
|
+
- **Content sync**: Pull and push stories, components, assets, datasources, and languages between
|
|
34
|
+
spaces
|
|
35
|
+
- **Content migrations**: Generate, run, and roll back migrations that transform story content
|
|
36
|
+
- **Content search**: Find stories by text, block, tag, workflow stage, or JSONPath expression and
|
|
37
|
+
stream the matches as JSONL
|
|
38
|
+
- **Project scaffolding**: Create a project from a core blueprint, connected to a new space
|
|
39
|
+
- **CI-friendly**: Token login, configuration files, logs, and run reports
|
|
58
40
|
|
|
59
41
|
## Documentation
|
|
60
42
|
|
|
61
43
|
For complete documentation, please visit the
|
|
62
44
|
[package reference](https://www.storyblok.com/docs/tooling/cli).
|
|
63
45
|
|
|
64
|
-
##
|
|
65
|
-
|
|
66
|
-
This package relies on [pnpm](https://pnpm.io/) to manage dependencies. For instructions on how to
|
|
67
|
-
install pnpm, please visit [pnpm.io](https://pnpm.io/installation).
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
pnpm install
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
## Build
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
pnpm build
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### Testing
|
|
80
|
-
|
|
81
|
-
To run the tests you can use the following command:
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
pnpm run test
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
If you prefer a more visual experience while writing tests you can use this command powered by
|
|
88
|
-
[vitest/ui](https://vitest.dev/guide/ui):
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
pnpm run test:ui
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
You can also check the coverage with:
|
|
95
|
-
|
|
96
|
-
```bash
|
|
97
|
-
pnpm run test:coverage
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
### Debugging
|
|
101
|
-
|
|
102
|
-
To debug the CLI you can use the `launch.json` configuration in the `.vscode` folder. You can run
|
|
103
|
-
any command with the debugger attached.
|
|
104
|
-
|
|
105
|
-

|
|
106
|
-
|
|
107
|
-
Then you can set breakpoints directly to the typescript files and the debugger will handle the rest
|
|
108
|
-
with sourcempaps.
|
|
46
|
+
## Contributing
|
|
109
47
|
|
|
110
|
-
|
|
48
|
+
If you'd like to contribute, please refer to the [contributing guidelines](../../CONTRIBUTING.md).
|
|
111
49
|
|
|
112
50
|
## Community
|
|
113
51
|
|
|
114
52
|
For help, discussion about best practices, or any other conversation that would benefit from being
|
|
115
53
|
searchable:
|
|
116
54
|
|
|
117
|
-
- [Discuss Storyblok on GitHub Discussions](https://github.com/storyblok/
|
|
55
|
+
- [Discuss Storyblok on GitHub Discussions](https://github.com/storyblok/monoblok/discussions)
|
|
118
56
|
|
|
119
57
|
For community support, chatting with other users, please visit:
|
|
120
58
|
|
|
@@ -123,7 +61,7 @@ For community support, chatting with other users, please visit:
|
|
|
123
61
|
## Support
|
|
124
62
|
|
|
125
63
|
For bugs or feature requests, please
|
|
126
|
-
[submit an issue](https://github.com/storyblok/
|
|
64
|
+
[submit an issue](https://github.com/storyblok/monoblok/issues/new/choose).
|
|
127
65
|
|
|
128
66
|
> [!IMPORTANT] Please search existing issues before submitting a new one. Issues without a minimal
|
|
129
67
|
> reproducible example will be closed.
|
|
@@ -137,16 +75,11 @@ minimal reproducible example that demonstrates the issue by using tools like
|
|
|
137
75
|
README file with the instructions to build and run the project, important not to include any access
|
|
138
76
|
token, password or personal information of any kind.
|
|
139
77
|
|
|
140
|
-
###
|
|
78
|
+
### Feedback
|
|
141
79
|
|
|
142
80
|
If you have a question, please ask in the
|
|
143
81
|
[Discuss Storyblok on Discord](https://storyblok.com/join-discord) channel.
|
|
144
82
|
|
|
145
|
-
## Contributing
|
|
146
|
-
|
|
147
|
-
If you're interested in contributing to Storyblok CLI, please read our
|
|
148
|
-
[contributing docs](../../CONTRIBUTING.md) before submitting a pull request.
|
|
149
|
-
|
|
150
83
|
## License
|
|
151
84
|
|
|
152
|
-
[License](
|
|
85
|
+
[License](./LICENSE)
|