Skip to content

Commit

Permalink
Prepare new release
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Nov 9, 2020
1 parent 5a1f790 commit fca4d50
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 35 deletions.
7 changes: 5 additions & 2 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"npm": {
"publish": false
},
"git": {
"changelog": "npx auto-changelog --stdout --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs",
"tagName": "v${version}"
"tagName": "${version}"
},
"github": {
"release": true,
"releaseName": "${version}",
"releaseNotes": "npx auto-changelog --stdout --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs"
},
"hooks": {
"before:init": "yarn test",
"before:init": "",
"after:bump": "npx auto-changelog --commit-limit false -p"
}
}
31 changes: 6 additions & 25 deletions DEVELOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,17 @@

Before starting make sure your development environment is properly set. See [Volto Developer Documentation](https://docs.voltocms.com/getting-started/install/)

1. Install `mrs.developer`
1. Make sure you have installed `yo`, `@plone/generator-volto` and `mrs-developer`

$ npm install -g mrs.developer

1. Install `@plone/create-volto-app`

$ npm install -g @plone/create-volto-app
$ npm install -g yo
$ npm install -g @plone/generator-volto
$ npm install -g mrs-developer

1. Create new volto app

$ create-volto-app my-volto-project
$ yo @plone/volto my-volto-project --addon @eeacms/volto-accordion-block
$ cd my-volto-project

1. Update `package.json` with the following information:

{
"scripts": {
"develop": "missdev --config=jsconfig.json --output=addons"
},

"addons": [
"@eeacms/volto-blocks-form",
"@eeacms/volto-accordion-block"
],

"dependencies": {
"@eeacms/volto-blocks-form": "github:eea/volto-blocks-form#0.4.0",
}
}

1. Add the following to `mrs.developer.json`:

{
Expand Down Expand Up @@ -68,4 +49,4 @@ Before starting make sure your development environment is properly set. See [Vol

1. Happy hacking!

$ cd src/addons/volto-accordion-block/
$ cd src/addons/volto-accordion-block/
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,19 @@

1. Create new volto project if you don't already have one:
```
$ npm install -g @plone/create-volto-app
$ create-volto-app my-volto-project
$ npm install -g yo @plone/generator-volto
$ yo @plone/volto my-volto-project --addon @eeacms/volto-accordion-block
$ cd my-volto-project
```

1. Update `package.json`:
1. If you already have a volto project, just update `package.json`:
``` JSON
"addons": [
"@eeacms/volto-blocks-form",
"@eeacms/volto-accordion-block"
],

"dependencies": {
"@eeacms/volto-blocks-form": "github:eea/volto-blocks-form#0.4.0",
"@eeacms/volto-accordion-block": "github:eea/volto-accordion-block#0.1.0"
"@eeacms/volto-accordion-block": "1.0.0"
}
```

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"devDependencies": {
"release-it": "*"
},
"dependencies": {
"@eeacms/volto-blocks-form": "^1.0.0"
},
"scripts": {
"release": "release-it",
"bootstrap": "node bootstrap"
Expand Down
2 changes: 1 addition & 1 deletion src/components/manage/Blocks/Accordion/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { SidebarPortal, Icon } from '@plone/volto/components';
import InlineForm from '@plone/volto/components/manage/Form/InlineForm';
import { setSidebarTab } from '@plone/volto/actions';
import { Button, Segment } from 'semantic-ui-react';
import { accordionBlockSchema } from './schema';
import { accordionBlockSchema } from './Schema';
import AccordionEdit from './AccordionEdit';
import Layout from './Layout.jsx';
import { empty, getColumns } from './util';
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const applyConfig = (config) => {
options,
mostUsed: false,
blockHasOwnFocusManagement: true,
sidebarTab: 0,
sidebarTab: 1,
security: {
addPermission: [],
view: [],
Expand Down

0 comments on commit fca4d50

Please sign in to comment.