Skip to content

Commit

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

* fix: readme

* fix: generated lockfile
  • Loading branch information
pnicolli authored Oct 30, 2022
1 parent 3e30ff8 commit 6256053
Show file tree
Hide file tree
Showing 4 changed files with 4,099 additions and 7 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# volto-dropdownmenu

Volto addon for a customizable dropdown menu.
Volto addon for a customizable dropdown menu.
Intended to be used with [collective.volto.dropdownmenu](https://github.com/collective/collective.volto.dropdownmenu)

To be used with mrs-developer, see [Volto docs](https://docs.voltocms.com/customizing/add-ons/) for further usage informations.
Expand All @@ -9,7 +9,9 @@ Created with [voltocli](https://github.com/nzambello/voltocli).

## Usage

> If you're using Volto < 12, then use [v1.3.0](https://github.com/collective/volto-dropdownmenu/tree/v1.3.0)
> If you are using Volto < 16, then use [v2.4.3](https://github.com/collective/volto-dropdownmenu/tree/v2.4.3)
>
> If you are using Volto < 12, then use [v1.3.0](https://github.com/collective/volto-dropdownmenu/tree/v1.3.0)
Simply load the addon in your project, then edit the configuration in `/controlpanel/dropdown-menu-settings`.
Example configuration to be saved in Plone [here](./menuConfigurationExample.json).
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
"author": "collective",
"license": "MIT",
"devDependencies": {
"release-it": "*"
"@plone/scripts": "^2.0.0",
"release-it": "^14.10.1"
},
"scripts": {
"i18n": "rm -rf build/messages && NODE_ENV=production i18n --addon",
"release": "release-it"
},
"dependencies": {
"react-outside-click-handler": "1.3.0",
"@plone/scripts": "*"
"react-outside-click-handler": "1.3.0"
},
"peerDependencies": {
"@plone/volto": ">=14.0.0"
"@plone/volto": ">=16.0.0-alpha.38"
}
}
Loading

0 comments on commit 6256053

Please sign in to comment.