Skip to content

Commit c2a5a2b

Browse files
alvarosabuThiago Saife RodriguesLisi LinhartVojislavVlasicademarCardoso
authored
feat: add-storyblok-cli (#113)
- Added 'cli' to the 'core-js' project group in nx.json for better project organization. - Updated pnpm-lock.yaml to include new dependencies for the 'cli' package, enhancing functionality and ensuring compatibility with the latest versions of various libraries. --------- Co-authored-by: Thiago Saife Rodrigues <[email protected]> Co-authored-by: Lisi Linhart <[email protected]> Co-authored-by: VojislavVlasic <[email protected]> Co-authored-by: ademarCardoso <[email protected]> Co-authored-by: Sebastian Johansson <[email protected]> Co-authored-by: Ademar Cardoso <[email protected]> Co-authored-by: Edoardo Sandon <[email protected]> Co-authored-by: João Gonçalves <[email protected]> Co-authored-by: Markus Geilehner <[email protected]> Co-authored-by: Wouter Thys <[email protected]> Co-authored-by: Matthias Frank <[email protected]> Co-authored-by: Dipankar Maikap <[email protected]> Co-authored-by: Markus Wendorf <[email protected]> Co-authored-by: Roy Vousten <[email protected]> Co-authored-by: Wouter Thys <[email protected]> Co-authored-by: Marces Engel <[email protected]> Co-authored-by: Bibiana Sebestianova <[email protected]> Co-authored-by: Demetrius Feijóo <[email protected]> Co-authored-by: Demetrius Feijóo <[email protected]> Co-authored-by: Christian Zoppi <[email protected]> Co-authored-by: Christian Zoppi <[email protected]> Co-authored-by: mledl <[email protected]> Co-authored-by: Pawel Grzybek <[email protected]> Co-authored-by: Kevin Rousse <[email protected]> Co-authored-by: Edoardo Dusi <[email protected]> Co-authored-by: Jim Drury <[email protected]> Co-authored-by: Corentin Hervaud <[email protected]> Co-authored-by: Angelika Cathor <[email protected]> Co-authored-by: Jeremias Menichelli <[email protected]> Co-authored-by: Imran Sulemanji <[email protected]> Co-authored-by: Angelika Cathor <[email protected]>
1 parent 7bc8f9b commit c2a5a2b

File tree

144 files changed

+25005
-254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+25005
-254
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ This monorepo contains all official Storyblok SDKs and integrations:
2626

2727
### Core SDKs
2828

29-
| Package | Description | Version | Downloads |
30-
| ------------------------------------------ | ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
31-
| [@storyblok/js](packages/js) | Core JavaScript SDK for Storyblok | [![](https://img.shields.io/npm/v/@storyblok/js?color=8d60ff&label=%20)](https://www.npmjs.com/package/@storyblok/js) | [![](https://img.shields.io/npm/dm/@storyblok/js?color=8d60ff&label=%20)](https://www.npmjs.com/package/@storyblok/js) |
32-
| [@storyblok/js-client](packages/js-client) | JavaScript client for Storyblok's Content Delivery API | [![](https://img.shields.io/npm/v/@storyblok/js-client?color=8d60ff&label=%20)](https://www.npmjs.com/package/@storyblok/js-client) | [![](https://img.shields.io/npm/dm/@storyblok/js-client?color=8d60ff&label=%20)](https://www.npmjs.com/package/@storyblok/js-client) |
29+
| Package | Description | Version | Downloads |
30+
| ------------------------------------------ | ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
31+
| [@storyblok/js](packages/js) | Core JavaScript SDK for Storyblok | [![](https://img.shields.io/npm/v/@storyblok/js?color=8d60ff&label=%20)](https://www.npmjs.com/package/@storyblok/js) | [![](https://img.shields.io/npm/dm/@storyblok/js?color=8d60ff&label=%20)](https://www.npmjs.com/package/@storyblok/js) |
32+
| [@storyblok/js-client](packages/js-client) | JavaScript client for Storyblok's Content Delivery API | [![](https://img.shields.io/npm/v/@storyblok/js-client?color=8d60ff&label=%20)](https://www.npmjs.com/package/@storyblok/js-client) | [![](https://img.shields.io/npm/dm/@storyblok/js-client?color=8d60ff&label=%20)](https://www.npmjs.com/package/@storyblok/js-client) |
33+
| [storyblok-cli](packages/cli) | A powerful CLI tool to improve the DX of your Storyblok projects. | [![](https://img.shields.io/npm/v/storyblok?color=8d60ff&label=%20)](https://www.npmjs.com/package/storyblok) | [![](https://img.shields.io/npm/dm/storyblok?color=8d60ff&label=%20)](https://www.npmjs.com/package/storyblok) |
3334

3435
### Framework Integrations
3536

nx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"projectsRelationship": "independent",
2424
"groups": {
2525
"core-js": {
26-
"projects": ["js-client", "js", "richtext"],
26+
"projects": ["js-client", "js", "richtext", "storyblok"],
2727
"projectsRelationship": "independent"
2828
},
2929
"sdk": {

packages/astro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"@rollup/plugin-dynamic-import-vars": "^2.1.5",
8383
"@storyblok/eslint-config": "^0.3.0",
8484
"@types/lodash.mergewith": "^4.6.9",
85-
"@types/node": "^22.15.1",
85+
"@types/node": "^22.15.18",
8686
"astro": "^5.0.9",
8787
"cypress": "^14.3.3",
8888
"eslint": "^9.26.0",

packages/cli/.gitignore

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
# from https://raw.githubusercontent.com/github/gitignore/master/Node.gitignore
2+
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
lerna-debug.log*
10+
11+
# Diagnostic reports (https://nodejs.org/api/report.html)
12+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
13+
14+
# Runtime data
15+
pids
16+
*.pid
17+
*.seed
18+
*.pid.lock
19+
20+
# Directory for instrumented libs generated by jscoverage/JSCover
21+
lib-cov
22+
23+
# Coverage directory used by tools like istanbul
24+
coverage
25+
*.lcov
26+
27+
# nyc test coverage
28+
.nyc_output
29+
30+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
31+
.grunt
32+
33+
# Bower dependency directory (https://bower.io/)
34+
bower_components
35+
36+
# node-waf configuration
37+
.lock-wscript
38+
39+
# Compiled binary addons (https://nodejs.org/api/addons.html)
40+
build/Release
41+
42+
# Dependency directories
43+
node_modules/
44+
jspm_packages/
45+
46+
# TypeScript v1 declaration files
47+
typings/
48+
49+
# TypeScript cache
50+
*.tsbuildinfo
51+
52+
# Optional npm cache directory
53+
.npm
54+
55+
# Optional eslint cache
56+
.eslintcache
57+
58+
# Microbundle cache
59+
.rpt2_cache/
60+
.rts2_cache_cjs/
61+
.rts2_cache_es/
62+
.rts2_cache_umd/
63+
64+
# Optional REPL history
65+
.node_repl_history
66+
67+
# Output of 'npm pack'
68+
*.tgz
69+
70+
# Yarn Integrity file
71+
.yarn-integrity
72+
73+
# dotenv environment variables file
74+
.env
75+
.env.test
76+
77+
# parcel-bundler cache (https://parceljs.org/)
78+
.cache
79+
80+
# Next.js build output
81+
.next
82+
83+
# Nuxt.js build / generate output
84+
.nuxt
85+
dist
86+
87+
# Gatsby files
88+
.cache/
89+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
90+
# https://nextjs.org/blog/next-9-1#public-directory-support
91+
# public
92+
93+
# vuepress build output
94+
.vuepress/dist
95+
96+
# Serverless directories
97+
.serverless/
98+
99+
# FuseBox cache
100+
.fusebox/
101+
102+
# DynamoDB Local files
103+
.dynamodb/
104+
105+
# TernJS port file
106+
.tern-port
107+
108+
# IntelliJ
109+
.idea/
110+
111+
# CLI generated files
112+
components.*.json
113+
presets.*.json
114+
storyblok-component-types.d.ts
115+
116+
# storyblok folder
117+
.storyblok/
118+
119+
# DS_Store
120+
.DS_Store

packages/cli/.release-it.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"git": {
3+
"commitMessage": "chore: release v${version}"
4+
},
5+
"github": {
6+
"release": true,
7+
"releaseName": "v${version}"
8+
},
9+
"hooks": {
10+
"before:init": ["pnpm run lint", "pnpm test:ci"],
11+
"after:bump": "pnpm run build",
12+
"after:git:release": "echo After git push, before github release",
13+
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
14+
}
15+
}

0 commit comments

Comments
 (0)