Skip to content

Commit

Permalink
refactor: upgraded dependencies and babel config for volto 16
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli committed Oct 28, 2022
1 parent dafc422 commit 72dd8e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Created with [voltocli](https://github.com/nzambello/voltocli).
## Usage

> If you're using Volto < 12, then use [v1.1.0](https://github.com/collective/volto-subsites/tree/v1.1.0)
>
> If you're using Volto < 16, then use [v3.0.4](https://github.com/collective/volto-subsites/tree/v3.0.4)
Simply load the addon in your project.

Expand Down
6 changes: 3 additions & 3 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports = function (api) {
api.cache(true);
const presets = ["razzle/babel"];
const presets = ['razzle'];
const plugins = [
[
"react-intl", // React Intl extractor, required for the whole i18n infrastructure to work
'react-intl', // React Intl extractor, required for the whole i18n infrastructure to work
{
messagesDir: "./build/messages/",
messagesDir: './build/messages/',
},
],
];
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@
"i18n": "rm -rf build/messages && NODE_ENV=production i18n -a",
"release": "release-it"
},
"dependencies": {
"@plone/scripts": "^1.0.3"
},
"dependencies": {},
"devDependencies": {
"@plone/scripts": "^2.0.0",
"release-it": "*"
},
"peerDependencies": {
"@plone/volto": ">=14.0.0"
"@plone/volto": ">=16.0.0-alpha.38"
}
}

0 comments on commit 72dd8e6

Please sign in to comment.