Skip to content

Commit

Permalink
chore(cli): release @storyblok/[email protected] (#306)
Browse files Browse the repository at this point in the history
* chore(cli): release @storyblok/[email protected]

* replace rc with latest
  • Loading branch information
eunjae-lee authored Oct 30, 2023
1 parent 6ca73e1 commit cfd70a5
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 37 deletions.
10 changes: 5 additions & 5 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ In case no command is present the CLI will default to the `create` command.
[//]: # 'TBD: add yarn create as soon as it is implemented'

```bash
npx @storyblok/field-plugin-cli@rc [command] [options]
npx @storyblok/field-plugin-cli@latest [command] [options]
```

Available options and commands:
Expand Down Expand Up @@ -170,15 +170,15 @@ npx @storyblok/field-plugin-cli deploy --token=<TOKEN> --dir=<PATH_TO_DIR>
You can add the CLI to an existing field plugin project by running:

```bash
yarn add --dev @storyblok/field-plugin-cli@rc
yarn add --dev @storyblok/field-plugin-cli@latest
```

In case you want to access the dependency globally use:

```bash
yarn global add @storyblok/field-plugin-cli@rc
yarn global add @storyblok/field-plugin-cli@latest
# or
npm install @storyblok/field-plugin-cli@rc --global
npm install @storyblok/field-plugin-cli@latest --global
```

[//]: # 'TBD Add GIF with interactive mode'
Expand Down Expand Up @@ -208,7 +208,7 @@ Please see our [contributing guidelines](https://github.com/storyblok/.github/bl
When adding a new template to this repository, think of the following:

- `.gitignore` files must be named `gitignore`. Otherwise, NPM will exclude the file from the release. The `@storyblok/field-plugin-cli` will automatically rename the file to `.gitignore`.
- Add `"deploy": "npm run build && npx @storyblok/field-plugin-cli@rc deploy"` to the `package.json`
- Add `"deploy": "npm run build && npx @storyblok/field-plugin-cli@latest deploy"` to the `package.json`

## :1st_place_medal: Credits

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storyblok/field-plugin-cli",
"version": "1.0.0-rc.2",
"version": "1.0.0",
"type": "module",
"bin": {
"field-plugin": "./bin.js"
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/commands/__tests__/add.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('add', () => {
(await readFile(`${dir}/${name}/package.json`)).toString(),
) as PackageJson
expect(packageJson['scripts']['deploy']).toMatchInlineSnapshot(
'"npm run build && npx @storyblok/field-plugin-cli@rc deploy"',
'"npm run build && npx @storyblok/field-plugin-cli@latest deploy"',
)
expect(files).toMatchInlineSnapshot(`
[
Expand Down Expand Up @@ -75,7 +75,7 @@ describe('add', () => {
(await readFile(`${dir}/${name}/package.json`)).toString(),
) as PackageJson
expect(packageJson['scripts']['deploy']).toMatchInlineSnapshot(
'"npm run build && npx @storyblok/field-plugin-cli@rc deploy --dotEnvPath \'../../.env\'"',
'"npm run build && npx @storyblok/field-plugin-cli@latest deploy --dotEnvPath \'../../.env\'"',
)
expect(files).toMatchInlineSnapshot(`
[
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/templates/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"build": "vite build",
"lint": "eslint .",
"check:types": "tsc --noEmit",
"deploy": "npm run build && npx @storyblok/field-plugin-cli@rc deploy"
"deploy": "npm run build && npx @storyblok/field-plugin-cli@latest deploy"
},
"dependencies": {
"@storyblok/field-plugin": "1.0.0-rc.2"
"@storyblok/field-plugin": "1.0.0"
},
"devDependencies": {
"eslint": "latest",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/templates/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"test": "vitest",
"build": "tsc && vite build",
"preview": "vite preview",
"deploy": "npm run build && npx @storyblok/field-plugin-cli@rc deploy"
"deploy": "npm run build && npx @storyblok/field-plugin-cli@latest deploy"
},
"dependencies": {
"@storyblok/field-plugin": "1.0.0-rc.2",
"@storyblok/field-plugin": "1.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/templates/vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"build:post": "rollup --config rollup.postbuild.config.js",
"test": "vitest run",
"test:watch": "vitest watch",
"deploy": "npm run build && npx @storyblok/field-plugin-cli@rc deploy"
"deploy": "npm run build && npx @storyblok/field-plugin-cli@latest deploy"
},
"dependencies": {
"@storyblok/field-plugin": "1.0.0-rc.2",
"@storyblok/field-plugin": "1.0.0",
"vue": "^2.7.14"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/templates/vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview",
"deploy": "npm run build && npx @storyblok/field-plugin-cli@rc deploy"
"deploy": "npm run build && npx @storyblok/field-plugin-cli@latest deploy"
},
"dependencies": {
"@storyblok/field-plugin": "1.0.0-rc.2",
"@storyblok/field-plugin": "1.0.0",
"vue": "^3.2.47"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@emotion/styled": "11.10.5",
"@fontsource/roboto": "4.5.8",
"@mui/material": "5.11.0",
"@storyblok/field-plugin": "1.0.0-rc.0",
"@storyblok/field-plugin": "latest",
"@storyblok/mui": "0.2.0",
"highlight.js": "11.7.0",
"react": "18.2.0",
Expand Down
33 changes: 13 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2376,21 +2376,7 @@ __metadata:
languageName: unknown
linkType: soft

"@storyblok/field-plugin@npm:1.0.0-rc.0":
version: 1.0.0-rc.0
resolution: "@storyblok/field-plugin@npm:1.0.0-rc.0"
checksum: 242fe553b2aa26f18046fb66a5808851e98d9ea53097f83d4d7e737a00f00fe93645163ed0efd5441a38168d50219f37a3f556fb56dba9339ce0878261cd6071
languageName: node
linkType: hard

"@storyblok/field-plugin@npm:1.0.0-rc.2":
version: 1.0.0-rc.2
resolution: "@storyblok/field-plugin@npm:1.0.0-rc.2"
checksum: 0b7a80b18cf7913f3f2cd9e679545d5ae836de8238e4a01a28a7d483b933d5bf9a660a7b8f3eebbc17c31c1500ff347a53639f337032cc5ba50f21cbbcac7093
languageName: node
linkType: hard

"@storyblok/field-plugin@workspace:*, @storyblok/field-plugin@workspace:packages/field-plugin":
"@storyblok/[email protected], @storyblok/field-plugin@workspace:*, @storyblok/field-plugin@workspace:packages/field-plugin":
version: 0.0.0-use.local
resolution: "@storyblok/field-plugin@workspace:packages/field-plugin"
dependencies:
Expand All @@ -2407,6 +2393,13 @@ __metadata:
languageName: unknown
linkType: soft

"@storyblok/field-plugin@npm:latest":
version: 1.0.0
resolution: "@storyblok/field-plugin@npm:1.0.0"
checksum: 432d2284d61aaef8f63efb4db66161031fe0ba8c75edea84f32825f473c561c84c068f392af2a9df9d684da060885dd13d4d82d7401e3d5d4998d433aa179fb4
languageName: node
linkType: hard

"@storyblok/manifest-helper@workspace:packages/manifest-helper":
version: 0.0.0-use.local
resolution: "@storyblok/manifest-helper@workspace:packages/manifest-helper"
Expand Down Expand Up @@ -4829,7 +4822,7 @@ __metadata:
"@emotion/styled": 11.10.5
"@fontsource/roboto": 4.5.8
"@mui/material": 5.11.0
"@storyblok/field-plugin": 1.0.0-rc.0
"@storyblok/field-plugin": latest
"@storyblok/mui": 0.2.0
"@types/react-dom": ^18.0.10
"@vitejs/plugin-react": ^3.0.0
Expand Down Expand Up @@ -6512,7 +6505,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "field-plugin-js-template@workspace:packages/cli/templates/js"
dependencies:
"@storyblok/field-plugin": 1.0.0-rc.2
"@storyblok/field-plugin": 1.0.0
eslint: latest
vite: ^4.2.2
vite-plugin-css-injected-by-js: 2.4.0
Expand All @@ -6538,7 +6531,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "field-plugin-react-template@workspace:packages/cli/templates/react"
dependencies:
"@storyblok/field-plugin": 1.0.0-rc.2
"@storyblok/field-plugin": 1.0.0
"@testing-library/jest-dom": 6.1.4
"@testing-library/react": 14.0.0
"@types/react": ^18.0.28
Expand All @@ -6564,7 +6557,7 @@ __metadata:
dependencies:
"@rollup/plugin-node-resolve": 15.1.0
"@rollup/plugin-replace": 5.0.2
"@storyblok/field-plugin": 1.0.0-rc.2
"@storyblok/field-plugin": 1.0.0
"@vitejs/plugin-vue2": 2.2.0
rollup: 3.26.3
typescript: 5.1.6
Expand All @@ -6578,7 +6571,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "field-plugin-vue3-template@workspace:packages/cli/templates/vue3"
dependencies:
"@storyblok/field-plugin": 1.0.0-rc.2
"@storyblok/field-plugin": 1.0.0
"@vitejs/plugin-vue": ^4.1.0
typescript: 5.1.6
vite: ^4.2.2
Expand Down

1 comment on commit cfd70a5

@vercel
Copy link

@vercel vercel bot commented on cfd70a5 Oct 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.