Skip to content

Commit

Permalink
refactor: upgraded dependencies and babel config for volto 16 (#6)
Browse files Browse the repository at this point in the history
* refactor: upgraded dependencies and babel config for volto 16

* fix: generated lockfile
  • Loading branch information
pnicolli authored Oct 30, 2022
1 parent b36b32f commit 8ad38eb
Show file tree
Hide file tree
Showing 4 changed files with 3,990 additions and 20 deletions.
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

0 comments on commit 8ad38eb

Please sign in to comment.