Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded dependencies and babel config for volto 16 #6

Merged
merged 2 commits into from
Oct 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ To be used with mrs-developer, see [Volto docs](https://docs.voltocms.com/custom
## Usage

> If you're using Volto < 12, then use [v1.0.1](https://github.com/collective/volto-multilingual-widget/tree/v1.0.1)
>
> If you're using Volto < 16, then use [v2.2.4](https://github.com/collective/volto-multilingual-widget/tree/v2.2.4)

This is meant to be used on JSON or text fields, because it will send to the registry a string with a JSON inside.

Expand Down
30 changes: 15 additions & 15 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
module.exports = function (api) {
api.cache(true);
const presets = ['razzle/babel'];
const plugins = [
[
'react-intl', // React Intl extractor, required for the whole i18n infrastructure to work
{
messagesDir: './build/messages/',
},
],
];
api.cache(true);
const presets = ['razzle'];
const plugins = [
[
'react-intl', // React Intl extractor, required for the whole i18n infrastructure to work
{
messagesDir: './build/messages/',
},
],
];

return {
plugins,
presets,
};
};
return {
plugins,
presets,
};
};
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
"author": "Nicola Zambello",
"license": "MIT",
"devDependencies": {
"release-it": "*"
},
"dependencies": {
"@plone/scripts": "^1.0.3"
"@plone/scripts": "^2.0.0",
"release-it": "^14.10.1"
},
"dependencies": {},
"peerDependencies": {
"@plone/volto": ">=15.0.0"
"@plone/volto": ">=16.0.0-alpha.38"
},
"scripts": {
"i18n": "rm -rf build/messages && NODE_ENV=production i18n -a",
Expand Down
Loading