@eeacms/volto-group-block 4.3.8 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ const defaultBabel = require('@plone/volto/babel');
2
2
 
3
3
  function applyDefault(api) {
4
4
  const voltoBabel = defaultBabel(api);
5
- voltoBabel.plugins.push('@babel/plugin-transform-modules-commonjs', 'transform-class-properties', 'istanbul');
5
+ voltoBabel.plugins.push('istanbul');
6
6
  return voltoBabel;
7
7
  }
8
8
 
@@ -0,0 +1 @@
1
+ module.exports = require('@plone/volto/babel');
@@ -0,0 +1,48 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ const projectRootPath = fs.existsSync('./project')
5
+ ? fs.realpathSync('./project')
6
+ : fs.realpathSync('./../../../');
7
+ const packageJson = require(path.join(projectRootPath, 'package.json'));
8
+ const jsConfig = require(path.join(projectRootPath, 'jsconfig.json')).compilerOptions;
9
+
10
+ const pathsConfig = jsConfig.paths;
11
+
12
+ let voltoPath = path.join(projectRootPath, 'node_modules/@plone/volto');
13
+
14
+ Object.keys(pathsConfig).forEach(pkg => {
15
+ if (pkg === '@plone/volto') {
16
+ voltoPath = `./${jsConfig.baseUrl}/${pathsConfig[pkg][0]}`;
17
+ }
18
+ });
19
+ const AddonConfigurationRegistry = require(`${voltoPath}/addon-registry.js`);
20
+ const reg = new AddonConfigurationRegistry(projectRootPath);
21
+
22
+ // Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
23
+ const addonAliases = Object.keys(reg.packages).map(o => [
24
+ o,
25
+ reg.packages[o].modulePath,
26
+ ]);
27
+
28
+
29
+ module.exports = {
30
+ extends: `${projectRootPath}/node_modules/@plone/volto/.eslintrc`,
31
+ settings: {
32
+ 'import/resolver': {
33
+ alias: {
34
+ map: [
35
+ ['@plone/volto', '@plone/volto/src'],
36
+ ...addonAliases,
37
+ ['@package', `${__dirname}/src`],
38
+ ['~', `${__dirname}/src`],
39
+ ],
40
+ extensions: ['.js', '.jsx', '.json'],
41
+ },
42
+ 'babel-plugin-root-import': {
43
+ rootPathSuffix: 'src',
44
+ },
45
+ },
46
+ },
47
+ };
48
+
package/CHANGELOG.md CHANGED
@@ -4,238 +4,218 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
- #### [4.3.8](https://github.com/eea/volto-group-block/compare/4.3.7...4.3.8)
7
+ ### [5.0.1](https://github.com/eea/volto-group-block/compare/5.0.0...5.0.1) - 16 November 2022
8
8
 
9
- - update(jest): add @plone/volto-slate resolver refs- #153447 [`9af40a6`](https://github.com/eea/volto-group-block/commit/9af40a6817e196fdb7415e51ba8b8f395e598302)
9
+ #### :nail_care: Enhancements
10
10
 
11
- #### [4.3.7](https://github.com/eea/volto-group-block/compare/4.3.6...4.3.7)
11
+ - change(group): use BlockDataForm instead of InlineForm for schema enhancer support within Edit block view [David Ichim - [`9211075`](https://github.com/eea/volto-group-block/commit/921107596d19b96f2d749d59763b8f9909c469f2)]
12
12
 
13
- > 22 August 2022
13
+ #### :hammer_and_wrench: Others
14
14
 
15
- - fix(countTextInBlocks): Don't count text if maxChars is not set [`#21`](https://github.com/eea/volto-group-block/pull/21)
16
- - fix(countTextInBlocks): Don't count text if maxChars is not set - refs #153110 [`230298a`](https://github.com/eea/volto-group-block/commit/230298a23f9f67d76721b201cafdfd60c8be0f17)
15
+ - test(estlint): Fix .project.eslintrc.js [Alin Voinea - [`9f995f7`](https://github.com/eea/volto-group-block/commit/9f995f73f9866643c944ce44175b45d2f16dffca)]
16
+ - test(cypress): Rename [Alin Voinea - [`814d50c`](https://github.com/eea/volto-group-block/commit/814d50c7c88ab2675c4d7f042feff6aa233c1c7e)]
17
+ ## [5.0.0](https://github.com/eea/volto-group-block/compare/4.3.8...5.0.0) - 27 October 2022
17
18
 
18
- #### [4.3.6](https://github.com/eea/volto-group-block/compare/4.3.5...4.3.6)
19
+ #### :hammer_and_wrench: Others
19
20
 
20
- > 30 June 2022
21
+ - Prepare 5.0.0 release [Miu Razvan - [`88c0ddd`](https://github.com/eea/volto-group-block/commit/88c0ddd569aeda7ee34d1eadea6a087f4e7dc257)]
22
+ - Update dependencies [Alin Voinea - [`c8405af`](https://github.com/eea/volto-group-block/commit/c8405afb830cdf62e7877bf30b619933519e1d71)]
23
+ - Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`18e26c6`](https://github.com/eea/volto-group-block/commit/18e26c6939706d572ab8574e9b1826b9abc76314)]
24
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`8ed6d21`](https://github.com/eea/volto-group-block/commit/8ed6d21d8489911cc4cb471e3f8823c35f4adc50)]
25
+ ### [4.3.8](https://github.com/eea/volto-group-block/compare/4.3.7...4.3.8) - 26 August 2022
21
26
 
22
- - develop [`#20`](https://github.com/eea/volto-group-block/pull/20)
27
+ ### [4.3.7](https://github.com/eea/volto-group-block/compare/4.3.6...4.3.7) - 22 August 2022
23
28
 
24
- #### [4.3.5](https://github.com/eea/volto-group-block/compare/4.3.4...4.3.5)
29
+ #### :bug: Bug Fixes
25
30
 
26
- > 4 January 2022
31
+ - fix(countTextInBlocks): Don't count text if maxChars is not set - refs #153110 [Alin Voinea - [`230298a`](https://github.com/eea/volto-group-block/commit/230298a23f9f67d76721b201cafdfd60c8be0f17)]
27
32
 
28
- - Fix cypress tests when using with volto-slate [`#18`](https://github.com/eea/volto-group-block/pull/18)
33
+ ### [4.3.6](https://github.com/eea/volto-group-block/compare/4.3.5...4.3.6) - 30 June 2022
29
34
 
30
- #### [4.3.4](https://github.com/eea/volto-group-block/compare/4.3.3...4.3.4)
35
+ #### :hammer_and_wrench: Others
31
36
 
32
- > 3 January 2022
37
+ - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`4e73f8b`](https://github.com/eea/volto-group-block/commit/4e73f8be3c73559557efadc410cb56abc055d82d)]
38
+ - Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`3040335`](https://github.com/eea/volto-group-block/commit/3040335002c63b50208c95918413bc958150e7a9)]
39
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`386f730`](https://github.com/eea/volto-group-block/commit/386f730ed65f73fe1468b9b77351c97fb70edcc5)]
40
+ ### [4.3.5](https://github.com/eea/volto-group-block/compare/4.3.4...4.3.5) - 4 January 2022
33
41
 
34
- - Release [`#17`](https://github.com/eea/volto-group-block/pull/17)
35
- - add cy tests [`#16`](https://github.com/eea/volto-group-block/pull/16)
42
+ ### [4.3.4](https://github.com/eea/volto-group-block/compare/4.3.3...4.3.4) - 3 January 2022
36
43
 
37
- #### [4.3.3](https://github.com/eea/volto-group-block/compare/4.3.2...4.3.3)
44
+ ### [4.3.3](https://github.com/eea/volto-group-block/compare/4.3.2...4.3.3) - 18 December 2021
38
45
 
39
- > 18 December 2021
46
+ #### :hammer_and_wrench: Others
40
47
 
41
- - Add SonarQube badges [`#15`](https://github.com/eea/volto-group-block/pull/15)
48
+ - Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`3e62d79`](https://github.com/eea/volto-group-block/commit/3e62d79a7ed37d10d623bc845d43e1144f8080f7)]
49
+ ### [4.3.2](https://github.com/eea/volto-group-block/compare/4.3.1...4.3.2) - 10 December 2021
42
50
 
43
- #### [4.3.2](https://github.com/eea/volto-group-block/compare/4.3.1...4.3.2)
51
+ #### :hammer_and_wrench: Others
44
52
 
45
- > 10 December 2021
53
+ - Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`bc36cf5`](https://github.com/eea/volto-group-block/commit/bc36cf58c39e2b43c2fbf5189df6ddefc1260857)]
54
+ - Add Sonarqube tag using industry-frontend addons list [EEA Jenkins - [`8038e78`](https://github.com/eea/volto-group-block/commit/8038e783c1e8ddd71e21f72070fdfa8e7e098993)]
55
+ - Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`daccdbc`](https://github.com/eea/volto-group-block/commit/daccdbc733e47be7d6536eb67f8f2eea038dc94b)]
56
+ ### [4.3.1](https://github.com/eea/volto-group-block/compare/4.3.0...4.3.1) - 11 October 2021
46
57
 
47
- - Develop [`#14`](https://github.com/eea/volto-group-block/pull/14)
48
- - Correct Cypress tests [`#13`](https://github.com/eea/volto-group-block/pull/13)
49
- - Refs #142010 - Optimize Volto-addons gitflow pipelines [`bc36cf5`](https://github.com/eea/volto-group-block/commit/bc36cf58c39e2b43c2fbf5189df6ddefc1260857)
58
+ #### :hammer_and_wrench: Others
50
59
 
51
- #### [4.3.1](https://github.com/eea/volto-group-block/compare/4.3.0...4.3.1)
60
+ - Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`b0092e4`](https://github.com/eea/volto-group-block/commit/b0092e4f78a1a0184e22e32bb9806cd57417dfb2)]
61
+ - Add Sonarqube tag using sustainability-frontend addons list [EEA Jenkins - [`ff8889c`](https://github.com/eea/volto-group-block/commit/ff8889cb7b0761b1df43b201984ce40b14e1561b)]
62
+ - Add Sonarqube tag using climate-energy-frontend addons list [EEA Jenkins - [`0375c28`](https://github.com/eea/volto-group-block/commit/0375c28ed1ffe9186a4790b454795c0ca8039f72)]
63
+ - Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`c392190`](https://github.com/eea/volto-group-block/commit/c392190f044f5d9397bd2fb8c3d6a357f84960d0)]
64
+ - Add Sonarqube tag using frontend addons list [EEA Jenkins - [`9694501`](https://github.com/eea/volto-group-block/commit/9694501141e6780eba89464d36406e3c93629fd8)]
65
+ ### [4.3.0](https://github.com/eea/volto-group-block/compare/4.2.3...4.3.0) - 24 June 2021
52
66
 
53
- > 11 October 2021
67
+ #### :hammer_and_wrench: Others
54
68
 
55
- - Possibility to ignore spaces with maxChars [`#11`](https://github.com/eea/volto-group-block/pull/11)
56
- - No space count [`#10`](https://github.com/eea/volto-group-block/pull/10)
69
+ - Show help icon only if block instructions differ from section instructions [Alin Voinea - [`a4ca4e5`](https://github.com/eea/volto-group-block/commit/a4ca4e58968dcfb947072a255c8f797df7977852)]
70
+ ### [4.2.3](https://github.com/eea/volto-group-block/compare/4.2.2...4.2.3) - 27 May 2021
57
71
 
58
- #### [4.3.0](https://github.com/eea/volto-group-block/compare/4.2.3...4.3.0)
72
+ ### [4.2.2](https://github.com/eea/volto-group-block/compare/4.2.1...4.2.2) - 14 May 2021
59
73
 
60
- > 24 June 2021
74
+ ### [4.2.1](https://github.com/eea/volto-group-block/compare/4.2.0...4.2.1) - 12 April 2021
61
75
 
62
- - Refactor counter to use CSS class instead of inline style [`#9`](https://github.com/eea/volto-group-block/pull/9)
63
- - Show help icon only if block instructions differ from section instructions [`a4ca4e5`](https://github.com/eea/volto-group-block/commit/a4ca4e58968dcfb947072a255c8f797df7977852)
76
+ #### :hammer_and_wrench: Others
64
77
 
65
- #### [4.2.3](https://github.com/eea/volto-group-block/compare/4.2.2...4.2.3)
78
+ - Release 4.2.1 [Alin Voinea - [`9742085`](https://github.com/eea/volto-group-block/commit/974208542a7b8b0a77b4f6a9af9884ffb82b85b7)]
79
+ - Fix onChangeField for inner blocks/metadata [Alin Voinea - [`80cf9c2`](https://github.com/eea/volto-group-block/commit/80cf9c2c3f7da6d03982c68a82eb8132616a08eb)]
80
+ ### [4.2.0](https://github.com/eea/volto-group-block/compare/4.1.4...4.2.0) - 7 April 2021
66
81
 
67
- > 27 May 2021
82
+ #### :hammer_and_wrench: Others
68
83
 
69
- - Cypress coverage [`#8`](https://github.com/eea/volto-group-block/pull/8)
84
+ - Release 4.2.0 [Alin Voinea - [`a33bad6`](https://github.com/eea/volto-group-block/commit/a33bad68af278e94376e5a68e39b82a0a92dd513)]
85
+ - Add support for onInsertBlock with BlockChooser [Alin Voinea - [`020ee19`](https://github.com/eea/volto-group-block/commit/020ee19929005733fcaff4a1786f5210c8a5421e)]
86
+ - Revert "Add support for newId returned by onMutateBlock" [Alin Voinea - [`c53bc1b`](https://github.com/eea/volto-group-block/commit/c53bc1b1986f1d67ed5a6e21a53fafeed81eb068)]
87
+ - Add support for newId returned by onMutateBlock [Alin Voinea - [`94740c6`](https://github.com/eea/volto-group-block/commit/94740c671faf84fd00adb228c0407ea5602d0739)]
88
+ ### [4.1.4](https://github.com/eea/volto-group-block/compare/4.1.3...4.1.4) - 5 April 2021
70
89
 
71
- #### [4.2.2](https://github.com/eea/volto-group-block/compare/4.2.1...4.2.2)
90
+ #### :hammer_and_wrench: Others
72
91
 
73
- > 14 May 2021
92
+ - Release 4.1.4 [Alin Voinea - [`16550db`](https://github.com/eea/volto-group-block/commit/16550db572895b525559888dc8a050ef9a310e06)]
93
+ - Add fixedLayout settings [Alin Voinea - [`8c3936c`](https://github.com/eea/volto-group-block/commit/8c3936c4b210a32511d2171be40d297a1e761bb1)]
94
+ - Fix block propType [Alin Voinea - [`d8abe50`](https://github.com/eea/volto-group-block/commit/d8abe50ae09a8c4edddf7a15f86063c33f032b3f)]
95
+ ### [4.1.3](https://github.com/eea/volto-group-block/compare/4.1.2...4.1.3) - 30 March 2021
74
96
 
97
+ #### :hammer_and_wrench: Others
75
98
 
76
- #### [4.2.1](https://github.com/eea/volto-group-block/compare/4.2.0...4.2.1)
99
+ - Release 4.1.3 [Alin Voinea - [`3bddac3`](https://github.com/eea/volto-group-block/commit/3bddac317acc290b7759315223fa6a1ad3689aaf)]
100
+ - Fix first selecting an inner block SidebarPortal [Alin Voinea - [`77ae916`](https://github.com/eea/volto-group-block/commit/77ae9160281447554b579f241a93dff767f59e60)]
101
+ ### [4.1.2](https://github.com/eea/volto-group-block/compare/4.1.1...4.1.2) - 29 March 2021
77
102
 
78
- > 12 April 2021
103
+ #### :hammer_and_wrench: Others
79
104
 
80
- - Release 4.2.1 [`9742085`](https://github.com/eea/volto-group-block/commit/974208542a7b8b0a77b4f6a9af9884ffb82b85b7)
81
- - Fix onChangeField for inner blocks/metadata [`80cf9c2`](https://github.com/eea/volto-group-block/commit/80cf9c2c3f7da6d03982c68a82eb8132616a08eb)
105
+ - Release 4.1.2 [Alin Voinea - [`5d23d46`](https://github.com/eea/volto-group-block/commit/5d23d464ea32869185c6e515c17070f623cfae61)]
106
+ - Update docs [Alin Voinea - [`6dde4e0`](https://github.com/eea/volto-group-block/commit/6dde4e0fb9bb3196fa694b9a9d0401f204408757)]
107
+ - Show instructions button when instructions available [Alin Voinea - [`02ba2ac`](https://github.com/eea/volto-group-block/commit/02ba2ac520f594ac16da7a2e0ffac6debe505251)]
108
+ ### [4.1.1](https://github.com/eea/volto-group-block/compare/4.1.0...4.1.1) - 26 March 2021
82
109
 
83
- #### [4.2.0](https://github.com/eea/volto-group-block/compare/4.1.4...4.2.0)
110
+ #### :hammer_and_wrench: Others
84
111
 
85
- > 7 April 2021
112
+ - Release 4.1.1 [Alin Voinea - [`22df819`](https://github.com/eea/volto-group-block/commit/22df819680e66849f5b41bc004103aefb98494e0)]
113
+ - Fix delete button visibility on Section group block [Alin Voinea - [`514df57`](https://github.com/eea/volto-group-block/commit/514df57ff155f04f73639413f7458ee8a03d877d)]
114
+ ### [4.1.0](https://github.com/eea/volto-group-block/compare/4.0.1...4.1.0) - 24 March 2021
86
115
 
87
- - Release 4.2.0 [`a33bad6`](https://github.com/eea/volto-group-block/commit/a33bad68af278e94376e5a68e39b82a0a92dd513)
88
- - Add support for onInsertBlock with BlockChooser [`020ee19`](https://github.com/eea/volto-group-block/commit/020ee19929005733fcaff4a1786f5210c8a5421e)
89
- - Revert "Add support for newId returned by onMutateBlock" [`c53bc1b`](https://github.com/eea/volto-group-block/commit/c53bc1b1986f1d67ed5a6e21a53fafeed81eb068)
90
- - Add support for newId returned by onMutateBlock [`94740c6`](https://github.com/eea/volto-group-block/commit/94740c671faf84fd00adb228c0407ea5602d0739)
116
+ #### :hammer_and_wrench: Others
91
117
 
92
- #### [4.1.4](https://github.com/eea/volto-group-block/compare/4.1.3...4.1.4)
118
+ - Release 4.1.0 [Alin Voinea - [`7dbcd32`](https://github.com/eea/volto-group-block/commit/7dbcd32ff498abc3cefbc70b947cfa93dccc5488)]
119
+ - Allow editing section title and HTML tag in edit mode [Alin Voinea - [`286cb0b`](https://github.com/eea/volto-group-block/commit/286cb0bc9dd94da07d51d6608cb2f0e3a6dd56fd)]
120
+ - Fix eslint and stylelint [Alin Voinea - [`fd7738f`](https://github.com/eea/volto-group-block/commit/fd7738f16120ea013ac699b551d51061be12a2d6)]
121
+ - Make Section block more visible and selectable within Edit form [Alin Voinea - [`4a368b6`](https://github.com/eea/volto-group-block/commit/4a368b6158d753cf8545452ff921c26553da3b2b)]
122
+ ### [4.0.1](https://github.com/eea/volto-group-block/compare/4.0.0...4.0.1) - 24 March 2021
93
123
 
94
- > 5 April 2021
124
+ #### :hammer_and_wrench: Others
95
125
 
96
- - Release 4.1.4 [`16550db`](https://github.com/eea/volto-group-block/commit/16550db572895b525559888dc8a050ef9a310e06)
97
- - Add fixedLayout settings [`8c3936c`](https://github.com/eea/volto-group-block/commit/8c3936c4b210a32511d2171be40d297a1e761bb1)
98
- - Fix block propType [`d8abe50`](https://github.com/eea/volto-group-block/commit/d8abe50ae09a8c4edddf7a15f86063c33f032b3f)
126
+ - Release 4.0.1 [Alin Voinea - [`e24241a`](https://github.com/eea/volto-group-block/commit/e24241a72028afbfec9aa445325bed820adf5d9b)]
127
+ - Display group block instructions within sidebar [Alin Voinea - [`2ac0cce`](https://github.com/eea/volto-group-block/commit/2ac0cce488dda671ba77151853a20168055954de)]
128
+ ## [4.0.0](https://github.com/eea/volto-group-block/compare/3.0.0...4.0.0) - 23 March 2021
99
129
 
100
- #### [4.1.3](https://github.com/eea/volto-group-block/compare/4.1.2...4.1.3)
130
+ #### :hammer_and_wrench: Others
101
131
 
102
- > 30 March 2021
132
+ - Release 4.0.0 [Alin Voinea - [`185b248`](https://github.com/eea/volto-group-block/commit/185b248410daf5438cf7ceb8ace311e1aed3e73a)]
133
+ - Better icon for groups block [Alin Voinea - [`b570fe0`](https://github.com/eea/volto-group-block/commit/b570fe082c2d910e70598a56b3d209e4d72e121b)]
134
+ - Fix stylelint [Alin Voinea - [`06aba53`](https://github.com/eea/volto-group-block/commit/06aba53f82207088b1bb62d192b955a699ca8a0f)]
135
+ - Add possibility to disable buttons inside group block [Alin Voinea - [`fc21b15`](https://github.com/eea/volto-group-block/commit/fc21b1509d30c00f975169269f8f19e451e3f3f1)]
136
+ - Custom Edit Block Wrapper [Alin Voinea - [`5b83746`](https://github.com/eea/volto-group-block/commit/5b83746282692f22e8866a6faab10f3c8b9c08bd)]
137
+ ## [3.0.0](https://github.com/eea/volto-group-block/compare/2.0.0...3.0.0) - 8 March 2021
103
138
 
104
- - Release 4.1.3 [`3bddac3`](https://github.com/eea/volto-group-block/commit/3bddac317acc290b7759315223fa6a1ad3689aaf)
105
- - Fix first selecting an inner block SidebarPortal [`77ae916`](https://github.com/eea/volto-group-block/commit/77ae9160281447554b579f241a93dff767f59e60)
139
+ #### :hammer_and_wrench: Others
106
140
 
107
- #### [4.1.2](https://github.com/eea/volto-group-block/compare/4.1.1...4.1.2)
141
+ - Release 3.0.0 [Alin Voinea - [`a83216e`](https://github.com/eea/volto-group-block/commit/a83216ed496b3a14ea49fd9697cd50ac64866092)]
142
+ - Cleanup Jenkinsfile DEPENDENCIES [Alin Voinea - [`9d2a5d0`](https://github.com/eea/volto-group-block/commit/9d2a5d04308ecef93ca2682d928d0919b0f861ea)]
143
+ - Cosmetics [Alin Voinea - [`03d6ed8`](https://github.com/eea/volto-group-block/commit/03d6ed8cbb796bacef3b3b78a1cee4114874033c)]
144
+ - Fix focus management [Alin Voinea - [`35327d7`](https://github.com/eea/volto-group-block/commit/35327d7b457beeed15b7129541bb1665cab4586b)]
145
+ - Change imports from volto core [Alin Voinea - [`d1dcc14`](https://github.com/eea/volto-group-block/commit/d1dcc14116fa408731d545d45d01669a06563b46)]
146
+ ## [2.0.0](https://github.com/eea/volto-group-block/compare/1.0.3...2.0.0) - 28 February 2021
108
147
 
109
- > 29 March 2021
148
+ #### :hammer_and_wrench: Others
110
149
 
111
- - Release 4.1.2 [`5d23d46`](https://github.com/eea/volto-group-block/commit/5d23d464ea32869185c6e515c17070f623cfae61)
112
- - Update docs [`6dde4e0`](https://github.com/eea/volto-group-block/commit/6dde4e0fb9bb3196fa694b9a9d0401f204408757)
113
- - Show instructions button when instructions available [`02ba2ac`](https://github.com/eea/volto-group-block/commit/02ba2ac520f594ac16da7a2e0ffac6debe505251)
150
+ - Release 2.0.0 [Alin Voinea - [`0ddb88c`](https://github.com/eea/volto-group-block/commit/0ddb88cd34e9bb7a623c3ce86662048845781e72)]
151
+ - Volto 12 upgrade: ~/config -> @plone/volto/registry [Alin Voinea - [`3153769`](https://github.com/eea/volto-group-block/commit/3153769d8d87ede91321a90b77d258beed50b647)]
152
+ ### [1.0.3](https://github.com/eea/volto-group-block/compare/1.0.2...1.0.3) - 14 January 2021
114
153
 
115
- #### [4.1.1](https://github.com/eea/volto-group-block/compare/4.1.0...4.1.1)
154
+ #### :hammer_and_wrench: Others
116
155
 
117
- > 26 March 2021
156
+ - Release 1.0.3 [Alin Voinea - [`90986ff`](https://github.com/eea/volto-group-block/commit/90986ff6ec3dc8fe869477d404d9aa89d9ad19ba)]
157
+ - made counter work also for text inside columns and accordions, even nest [Alex Medesan - [`b3c0c16`](https://github.com/eea/volto-group-block/commit/b3c0c1651bb85b5252afe204107852aad0ef500c)]
158
+ - fix adding new blocks [Alex Medesan - [`ec3a37a`](https://github.com/eea/volto-group-block/commit/ec3a37a153106acec64e28e116c6f96cef00ce03)]
159
+ ### [1.0.2](https://github.com/eea/volto-group-block/compare/1.0.1...1.0.2) - 5 January 2021
118
160
 
119
- - Release 4.1.1 [`22df819`](https://github.com/eea/volto-group-block/commit/22df819680e66849f5b41bc004103aefb98494e0)
120
- - Fix delete button visibility on Section group block [`514df57`](https://github.com/eea/volto-group-block/commit/514df57ff155f04f73639413f7458ee8a03d877d)
161
+ #### :hammer_and_wrench: Others
121
162
 
122
- #### [4.1.0](https://github.com/eea/volto-group-block/compare/4.0.1...4.1.0)
163
+ - Release 1.0.2 [Alin Voinea - [`4aa34c3`](https://github.com/eea/volto-group-block/commit/4aa34c374fb1520d6f83a430e2156271ca81847a)]
164
+ - fixed count values from child groups with text [Alex Medesan - [`5151e33`](https://github.com/eea/volto-group-block/commit/5151e33455d504660b8b16eb9f7fbf1fbd7a5aff)]
165
+ - fixed counter for new props schema [Alex Medesan - [`6005d82`](https://github.com/eea/volto-group-block/commit/6005d82a7191a88efab6be7b0909d7287f1534a0)]
166
+ ### [1.0.1](https://github.com/eea/volto-group-block/compare/1.0.0...1.0.1) - 11 December 2020
123
167
 
124
- > 24 March 2021
168
+ #### :hammer_and_wrench: Others
125
169
 
126
- - Release 4.1.0 [`7dbcd32`](https://github.com/eea/volto-group-block/commit/7dbcd32ff498abc3cefbc70b947cfa93dccc5488)
127
- - Allow editing section title and HTML tag in edit mode [`286cb0b`](https://github.com/eea/volto-group-block/commit/286cb0bc9dd94da07d51d6608cb2f0e3a6dd56fd)
128
- - Fix eslint and stylelint [`fd7738f`](https://github.com/eea/volto-group-block/commit/fd7738f16120ea013ac699b551d51061be12a2d6)
129
- - Make Section block more visible and selectable within Edit form [`4a368b6`](https://github.com/eea/volto-group-block/commit/4a368b6158d753cf8545452ff921c26553da3b2b)
170
+ - Release 1.0.1 [Alin Voinea - [`06a5b74`](https://github.com/eea/volto-group-block/commit/06a5b74f65f0015665b3f3ba94d0f59ab82ba792)]
171
+ - Release to npm by default [Alin Voinea - [`a499afa`](https://github.com/eea/volto-group-block/commit/a499afa63ca80b73c3d462e619af701c187e92ce)]
172
+ - Fix docs about install commands [Alin Voinea - [`460c0d2`](https://github.com/eea/volto-group-block/commit/460c0d21ed0896eba720d59e18457e0118161057)]
173
+ ## [1.0.0](https://github.com/eea/volto-group-block/compare/0.1.3...1.0.0) - 16 November 2020
130
174
 
131
- #### [4.0.1](https://github.com/eea/volto-group-block/compare/4.0.0...4.0.1)
175
+ #### :hammer_and_wrench: Others
132
176
 
133
- > 24 March 2021
177
+ - Release 1.0.0 [Alin Voinea - [`b6ef873`](https://github.com/eea/volto-group-block/commit/b6ef873cb6f61e17db66fdd4de1d9d4902a66fc6)]
178
+ - Update package meta info [Alin Voinea - [`143b7d4`](https://github.com/eea/volto-group-block/commit/143b7d44438d7afa5e346a9d21a85352df4e925f)]
179
+ - Add Jenkinkins pipeline [Alin Voinea - [`866a4e1`](https://github.com/eea/volto-group-block/commit/866a4e14ea1eb8f5adb01222e576e5ab6dc73a70)]
180
+ - yarn prettier [Alin Voinea - [`e3fe0a3`](https://github.com/eea/volto-group-block/commit/e3fe0a36b89878769341b45198d6c9e2f2584d15)]
181
+ ### [0.1.3](https://github.com/eea/volto-group-block/compare/0.1.2...0.1.3) - 9 November 2020
134
182
 
135
- - Release 4.0.1 [`e24241a`](https://github.com/eea/volto-group-block/commit/e24241a72028afbfec9aa445325bed820adf5d9b)
136
- - Display group block instructions within sidebar [`2ac0cce`](https://github.com/eea/volto-group-block/commit/2ac0cce488dda671ba77151853a20168055954de)
183
+ #### :hammer_and_wrench: Others
137
184
 
138
- ### [4.0.0](https://github.com/eea/volto-group-block/compare/3.0.0...4.0.0)
185
+ - Release 0.1.3 [Alin Voinea - [`1bdc665`](https://github.com/eea/volto-group-block/commit/1bdc6658918057c13e1a39d8e04fc177d9cf724f)]
186
+ - Update docs [Alin Voinea - [`832e15d`](https://github.com/eea/volto-group-block/commit/832e15d9257edf8aecb5e4106ac3f67630bad8fe)]
187
+ - Prepare release [Alin Voinea - [`5211fa0`](https://github.com/eea/volto-group-block/commit/5211fa07a4667631b351b1335932bb5d5755bb55)]
188
+ - Cosmetics [Alin Voinea - [`38dd486`](https://github.com/eea/volto-group-block/commit/38dd4861006798d3b2fa23a7dbbccff99466f9ec)]
189
+ - minor fixes and checks [Alex Medesan - [`e4a5c66`](https://github.com/eea/volto-group-block/commit/e4a5c6664a5c8b93f6d12120172956b11fc5c1e1)]
190
+ - implemented character count on groups [Alex Medesan - [`b6d8f1d`](https://github.com/eea/volto-group-block/commit/b6d8f1d3c57f44b2965787af5aeb0e41f9c3e0b6)]
191
+ ### [0.1.2](https://github.com/eea/volto-group-block/compare/0.1.1...0.1.2) - 6 October 2020
139
192
 
140
- > 23 March 2021
193
+ #### :hammer_and_wrench: Others
141
194
 
142
- - Release 4.0.0 [`185b248`](https://github.com/eea/volto-group-block/commit/185b248410daf5438cf7ceb8ace311e1aed3e73a)
143
- - Better icon for groups block [`b570fe0`](https://github.com/eea/volto-group-block/commit/b570fe082c2d910e70598a56b3d209e4d72e121b)
144
- - Fix stylelint [`06aba53`](https://github.com/eea/volto-group-block/commit/06aba53f82207088b1bb62d192b955a699ca8a0f)
145
- - Add possibility to disable buttons inside group block [`fc21b15`](https://github.com/eea/volto-group-block/commit/fc21b1509d30c00f975169269f8f19e451e3f3f1)
146
- - Custom Edit Block Wrapper [`5b83746`](https://github.com/eea/volto-group-block/commit/5b83746282692f22e8866a6faab10f3c8b9c08bd)
195
+ - Propagate parent metadata properties within inner form view [Alin Voinea - [`0620b99`](https://github.com/eea/volto-group-block/commit/0620b9933d1e1a38dacfee3d2f0c28556368db9e)]
196
+ - Propagate parent metadata properties within inner forms [Alin Voinea - [`76e2cc2`](https://github.com/eea/volto-group-block/commit/76e2cc23d11b043c6a10f98987b928b91e327709)]
197
+ ### [0.1.1](https://github.com/eea/volto-group-block/compare/0.1.0...0.1.1) - 29 September 2020
147
198
 
148
- ### [3.0.0](https://github.com/eea/volto-group-block/compare/2.0.0...3.0.0)
199
+ #### :hammer_and_wrench: Others
149
200
 
150
- > 8 March 2021
201
+ - Render group of blocks as section, article, etc. [Alin Voinea - [`765b513`](https://github.com/eea/volto-group-block/commit/765b51357e22e96d022a2fabf1d7fa1cf165bb5f)]
202
+ - Update docs [Alin Voinea - [`bbe8939`](https://github.com/eea/volto-group-block/commit/bbe89396fefd53ee692920d88f8c55dde446a21c)]
203
+ ### 0.1.0 - 25 September 2020
151
204
 
152
- - Drop volto-blocks-form dependency [`#6`](https://github.com/eea/volto-group-block/pull/6)
153
- - Release 3.0.0 [`a83216e`](https://github.com/eea/volto-group-block/commit/a83216ed496b3a14ea49fd9697cd50ac64866092)
154
- - Cosmetics [`03d6ed8`](https://github.com/eea/volto-group-block/commit/03d6ed8cbb796bacef3b3b78a1cee4114874033c)
155
- - Fix focus management [`35327d7`](https://github.com/eea/volto-group-block/commit/35327d7b457beeed15b7129541bb1665cab4586b)
156
- - Change imports from volto core [`d1dcc14`](https://github.com/eea/volto-group-block/commit/d1dcc14116fa408731d545d45d01669a06563b46)
157
-
158
- ### [2.0.0](https://github.com/eea/volto-group-block/compare/1.0.3...2.0.0)
159
-
160
- > 28 February 2021
161
-
162
- - Release 2.0.0 [`0ddb88c`](https://github.com/eea/volto-group-block/commit/0ddb88cd34e9bb7a623c3ce86662048845781e72)
163
- - Volto 12 upgrade: ~/config -> @plone/volto/registry [`3153769`](https://github.com/eea/volto-group-block/commit/3153769d8d87ede91321a90b77d258beed50b647)
164
-
165
- #### [1.0.3](https://github.com/eea/volto-group-block/compare/1.0.2...1.0.3)
166
-
167
- > 14 January 2021
168
-
169
- - Release 1.0.3 [`90986ff`](https://github.com/eea/volto-group-block/commit/90986ff6ec3dc8fe869477d404d9aa89d9ad19ba)
170
- - made counter work also for text inside columns and accordions, even nest [`b3c0c16`](https://github.com/eea/volto-group-block/commit/b3c0c1651bb85b5252afe204107852aad0ef500c)
171
- - fix adding new blocks [`ec3a37a`](https://github.com/eea/volto-group-block/commit/ec3a37a153106acec64e28e116c6f96cef00ce03)
172
-
173
- #### [1.0.2](https://github.com/eea/volto-group-block/compare/1.0.1...1.0.2)
174
-
175
- > 5 January 2021
176
-
177
- - Fixed count values from child groups with text [`#4`](https://github.com/eea/volto-group-block/pull/4)
178
- - Release 1.0.2 [`4aa34c3`](https://github.com/eea/volto-group-block/commit/4aa34c374fb1520d6f83a430e2156271ca81847a)
179
- - fixed count values from child groups with text [`5151e33`](https://github.com/eea/volto-group-block/commit/5151e33455d504660b8b16eb9f7fbf1fbd7a5aff)
180
- - fixed counter for new props schema [`6005d82`](https://github.com/eea/volto-group-block/commit/6005d82a7191a88efab6be7b0909d7287f1534a0)
181
-
182
- #### [1.0.1](https://github.com/eea/volto-group-block/compare/1.0.0...1.0.1)
183
-
184
- > 11 December 2020
185
-
186
- - Release 1.0.1 [`06a5b74`](https://github.com/eea/volto-group-block/commit/06a5b74f65f0015665b3f3ba94d0f59ab82ba792)
187
- - Release to npm by default [`a499afa`](https://github.com/eea/volto-group-block/commit/a499afa63ca80b73c3d462e619af701c187e92ce)
188
- - Fix docs about install commands [`460c0d2`](https://github.com/eea/volto-group-block/commit/460c0d21ed0896eba720d59e18457e0118161057)
189
-
190
- ### [1.0.0](https://github.com/eea/volto-group-block/compare/0.1.3...1.0.0)
191
-
192
- > 16 November 2020
193
-
194
- - Release 1.0.0 [`b6ef873`](https://github.com/eea/volto-group-block/commit/b6ef873cb6f61e17db66fdd4de1d9d4902a66fc6)
195
- - Update package meta info [`143b7d4`](https://github.com/eea/volto-group-block/commit/143b7d44438d7afa5e346a9d21a85352df4e925f)
196
- - Add Jenkinkins pipeline [`866a4e1`](https://github.com/eea/volto-group-block/commit/866a4e14ea1eb8f5adb01222e576e5ab6dc73a70)
197
-
198
- #### [0.1.3](https://github.com/eea/volto-group-block/compare/0.1.2...0.1.3)
199
-
200
- > 9 November 2020
201
-
202
- - Feature/count [`#2`](https://github.com/eea/volto-group-block/pull/2)
203
- - Release 0.1.3 [`1bdc665`](https://github.com/eea/volto-group-block/commit/1bdc6658918057c13e1a39d8e04fc177d9cf724f)
204
- - Update docs [`832e15d`](https://github.com/eea/volto-group-block/commit/832e15d9257edf8aecb5e4106ac3f67630bad8fe)
205
- - Prepare release [`5211fa0`](https://github.com/eea/volto-group-block/commit/5211fa07a4667631b351b1335932bb5d5755bb55)
206
- - Cosmetics [`38dd486`](https://github.com/eea/volto-group-block/commit/38dd4861006798d3b2fa23a7dbbccff99466f9ec)
207
- - minor fixes and checks [`e4a5c66`](https://github.com/eea/volto-group-block/commit/e4a5c6664a5c8b93f6d12120172956b11fc5c1e1)
208
- - implemented character count on groups [`b6d8f1d`](https://github.com/eea/volto-group-block/commit/b6d8f1d3c57f44b2965787af5aeb0e41f9c3e0b6)
209
-
210
- #### [0.1.2](https://github.com/eea/volto-group-block/compare/0.1.1...0.1.2)
211
-
212
- > 6 October 2020
213
-
214
- - Propagate parent metadata properties within inner form view [`0620b99`](https://github.com/eea/volto-group-block/commit/0620b9933d1e1a38dacfee3d2f0c28556368db9e)
215
- - Propagate parent metadata properties within inner forms [`76e2cc2`](https://github.com/eea/volto-group-block/commit/76e2cc23d11b043c6a10f98987b928b91e327709)
216
-
217
- #### [0.1.1](https://github.com/eea/volto-group-block/compare/0.1.0...0.1.1)
218
-
219
- > 29 September 2020
220
-
221
- - Render group of blocks as section, article, etc. [`765b513`](https://github.com/eea/volto-group-block/commit/765b51357e22e96d022a2fabf1d7fa1cf165bb5f)
222
- - Update docs [`bbe8939`](https://github.com/eea/volto-group-block/commit/bbe89396fefd53ee692920d88f8c55dde446a21c)
223
-
224
- #### 0.1.0
225
-
226
- > 25 September 2020
227
-
228
- - Remove sidebar [`e5d35fe`](https://github.com/eea/volto-group-block/commit/e5d35fed034c73386d67bf1e45ccd87e839d4d33)
229
- - Fix select bug [`dfb0de6`](https://github.com/eea/volto-group-block/commit/dfb0de6447f4886a1ca474539b8f794a4112f2a4)
230
- - Update docs [`0d5d313`](https://github.com/eea/volto-group-block/commit/0d5d31343413ab81afab637b878a1ea72a04bcb0)
231
- - Cosmetics [`fcbef4a`](https://github.com/eea/volto-group-block/commit/fcbef4af8538913fcd7aabdfc9f71cc4139788f5)
232
- - Cosmetics [`be8e4f9`](https://github.com/eea/volto-group-block/commit/be8e4f99eadfd70d0e4b1a1d1eb744582978553f)
233
- - Add group to allowedBlocks settings [`a6ce43f`](https://github.com/eea/volto-group-block/commit/a6ce43fddd9143b468b5e1ac04d1e84403ff3720)
234
- - Fix inner groups margins [`3e05b61`](https://github.com/eea/volto-group-block/commit/3e05b61de8cc5b797cf291c597d0e4fba0e69154)
235
- - Add editing instructions to Group block settings [`d820b98`](https://github.com/eea/volto-group-block/commit/d820b988432f56674ead145e9ec2a75e2f21eed6)
236
- - Rename package and block: Group [`7475d28`](https://github.com/eea/volto-group-block/commit/7475d284c7fbcdc87735a1923e2580765819a1e9)
237
- - Avoid removing all blocks within meta-block [`d078df7`](https://github.com/eea/volto-group-block/commit/d078df74648f0673f1cf5d7c537ff0b2558654c2)
238
- - Render meta block [`0d44560`](https://github.com/eea/volto-group-block/commit/0d4456011ca56454068a54c610250b02df4ccb3b)
239
- - Implement meta block allowedBlocks settings [`f24feb1`](https://github.com/eea/volto-group-block/commit/f24feb1a1751f04841c21c7cd52a517fb02074ba)
240
- - Edit meta block [`236d291`](https://github.com/eea/volto-group-block/commit/236d29156fa835a7aa54eecdb4f120de0d64b271)
241
- - Initial commit [`6a7b0de`](https://github.com/eea/volto-group-block/commit/6a7b0deb8f873d1462fd6a9c61edfc1562b3aace)
205
+ #### :hammer_and_wrench: Others
206
+
207
+ - Remove sidebar [Alin Voinea - [`e5d35fe`](https://github.com/eea/volto-group-block/commit/e5d35fed034c73386d67bf1e45ccd87e839d4d33)]
208
+ - Fix select bug [Tiberiu Ichim - [`dfb0de6`](https://github.com/eea/volto-group-block/commit/dfb0de6447f4886a1ca474539b8f794a4112f2a4)]
209
+ - Update docs [Alin Voinea - [`0d5d313`](https://github.com/eea/volto-group-block/commit/0d5d31343413ab81afab637b878a1ea72a04bcb0)]
210
+ - Cosmetics [Alin Voinea - [`fcbef4a`](https://github.com/eea/volto-group-block/commit/fcbef4af8538913fcd7aabdfc9f71cc4139788f5)]
211
+ - Cosmetics [Alin Voinea - [`be8e4f9`](https://github.com/eea/volto-group-block/commit/be8e4f99eadfd70d0e4b1a1d1eb744582978553f)]
212
+ - Add group to allowedBlocks settings [Alin Voinea - [`a6ce43f`](https://github.com/eea/volto-group-block/commit/a6ce43fddd9143b468b5e1ac04d1e84403ff3720)]
213
+ - Fix inner groups margins [Alin Voinea - [`3e05b61`](https://github.com/eea/volto-group-block/commit/3e05b61de8cc5b797cf291c597d0e4fba0e69154)]
214
+ - Add editing instructions to Group block settings [Alin Voinea - [`d820b98`](https://github.com/eea/volto-group-block/commit/d820b988432f56674ead145e9ec2a75e2f21eed6)]
215
+ - Rename package and block: Group [Alin Voinea - [`7475d28`](https://github.com/eea/volto-group-block/commit/7475d284c7fbcdc87735a1923e2580765819a1e9)]
216
+ - Avoid removing all blocks within meta-block [Alin Voinea - [`d078df7`](https://github.com/eea/volto-group-block/commit/d078df74648f0673f1cf5d7c537ff0b2558654c2)]
217
+ - Render meta block [Alin Voinea - [`0d44560`](https://github.com/eea/volto-group-block/commit/0d4456011ca56454068a54c610250b02df4ccb3b)]
218
+ - Implement meta block allowedBlocks settings [Alin Voinea - [`f24feb1`](https://github.com/eea/volto-group-block/commit/f24feb1a1751f04841c21c7cd52a517fb02074ba)]
219
+ - Edit meta block [Alin Voinea - [`236d291`](https://github.com/eea/volto-group-block/commit/236d29156fa835a7aa54eecdb4f120de0d64b271)]
220
+ - yarn bootstrap [Alin Voinea - [`e009dfb`](https://github.com/eea/volto-group-block/commit/e009dfb6b9b74d101a6722f0982a5359fc522b6b)]
221
+ - Initial commit [Alin Voinea - [`6a7b0de`](https://github.com/eea/volto-group-block/commit/6a7b0deb8f873d1462fd6a9c61edfc1562b3aace)]
package/README.md CHANGED
@@ -14,7 +14,6 @@
14
14
  [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-group-block-develop&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-group-block-develop)
15
15
  [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-group-block-develop&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-group-block-develop)
16
16
 
17
-
18
17
  [Volto](https://github.com/plone/volto) add-on to group blocks in sections and filter available blocks per content-type per section
19
18
 
20
19
  ## Features
@@ -31,6 +30,7 @@
31
30
  ```
32
31
 
33
32
  1. Start Plone backend
33
+
34
34
  ```
35
35
  docker run -d --name plone -p 8080:8080 -e SITE=Plone -e PROFILES="profile-plone.restapi:blocks" plone
36
36
  ```
@@ -53,25 +53,25 @@
53
53
 
54
54
  1. Start Volto frontend
55
55
 
56
- * If you already have a volto project, just update `package.json`:
56
+ - If you already have a volto project, just update `package.json`:
57
57
 
58
- ```JSON
59
- "addons": [
60
- "@eeacms/volto-group-block"
61
- ],
58
+ ```JSON
59
+ "addons": [
60
+ "@eeacms/volto-group-block"
61
+ ],
62
62
 
63
- "dependencies": {
64
- "@eeacms/volto-group-block": "^4.0.0"
65
- }
66
- ```
63
+ "dependencies": {
64
+ "@eeacms/volto-group-block": "^4.0.0"
65
+ }
66
+ ```
67
67
 
68
- * If not, create one:
68
+ - If not, create one:
69
69
 
70
- ```
71
- npm install -g yo @plone/generator-volto
72
- yo @plone/volto my-volto-project --addon @eeacms/volto-group-block
73
- cd my-volto-project
74
- ```
70
+ ```
71
+ npm install -g yo @plone/generator-volto
72
+ yo @plone/volto my-volto-project --addon @eeacms/volto-group-block
73
+ cd my-volto-project
74
+ ```
75
75
 
76
76
  1. Install new add-ons and restart Volto:
77
77
 
@@ -86,78 +86,7 @@
86
86
 
87
87
  ## Release
88
88
 
89
- ### Automatic release using Jenkins
90
-
91
- * The automatic release is started by creating a [Pull Request](../../compare/master...develop) from `develop` to `master`. The pull request status checks correlated to the branch and PR Jenkins jobs need to be processed successfully. 1 review from a github user with rights is mandatory.
92
- * It runs on every commit on `master` branch, which is protected from direct commits, only allowing pull request merge commits.
93
- * The automatic release is done by [Jenkins](https://ci.eionet.europa.eu). The status of the release job can be seen both in the Readme.md badges and the green check/red cross/yellow circle near the last commit information. If you click on the icon, you will have the list of checks that were run. The `continuous-integration/jenkins/branch` link goes to the Jenkins job execution webpage.
94
- * Automated release scripts are located in the `eeacms/gitflow` docker image, specifically [js-release.sh](https://github.com/eea/eea.docker.gitflow/blob/master/src/js-release.sh) script. It uses the `release-it` tool.
95
- * As long as a PR request is open from develop to master, the PR Jenkins job will automatically re-create the CHANGELOG.md and package.json files to be production-ready.
96
- * The version format must be MAJOR.MINOR.PATCH. By default, next release is set to next minor version (with patch 0).
97
- * You can manually change the version in `package.json`. The new version must not be already present in the tags/releases of the repository, otherwise it will be automatically increased by the script. Any changes to the version will trigger a `CHANGELOG.md` re-generation.
98
- * Automated commits and commits with [JENKINS] or [YARN] in the commit log are excluded from `CHANGELOG.md` file.
99
-
100
- ### Manual release from the develop branch ( beta release )
101
-
102
- #### Installation and configuration of release-it
103
-
104
- You need to first install the [release-it](https://github.com/release-it/release-it) client.
105
-
106
- ```
107
- npm install -g release-it
108
- ```
109
-
110
- Release-it uses the configuration written in the [`.release-it.json`](./.release-it.json) file located in the root of the repository.
111
-
112
- Release-it is a tool that automates 4 important steps in the release process:
113
-
114
- 1. Version increase in `package.json` ( increased from the current version in `package.json`)
115
- 2. `CHANGELOG.md` automatic generation from commit messages ( grouped by releases )
116
- 3. GitHub release on the commit with the changelog and package.json modification on the develop branch
117
- 4. NPM release ( by default it's disabled, but can be enabled in the configuration file )
118
-
119
- To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
120
-
121
- ```
122
- export GITHUB_TOKEN=XXX-XXXXXXXXXXXXXXXXXXXXXX
123
- ```
124
-
125
- To configure npm, you can use the `npm login` command or use a configuration file with a TOKEN :
126
-
127
- ```
128
- echo "//registry.npmjs.org/:_authToken=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" > .npmrc
129
- ```
130
-
131
- #### Using release-it tool
132
-
133
- There are 3 yarn scripts that can be run to do the release
134
-
135
- ##### yarn release-beta
136
-
137
- Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
138
-
139
- ```
140
- ? Select increment (next version):
141
- ❯ prepatch (0.1.1-beta.0)
142
- preminor (0.2.0-beta.0)
143
- premajor (1.0.0-beta.0)
144
- Other, please specify...
145
- ```
146
-
147
- ##### yarn release-major-beta
148
-
149
- Same as `yarn release-beta`, but with premajor version pre-selected.
150
-
151
- ##### yarn release
152
-
153
- Generic command, does not automatically add the `beta` to version, but you can still manually write it if you choose Other.
154
-
155
- #### Important notes
156
-
157
- > Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
158
-
159
- > Do not keep Pull Requests from develop to master branches open when you are doing beta releases from the develop branch. As long as a PR to master is open, an automatic script will run on every commit and will update both the version and the changelog to a production-ready state - ( MAJOR.MINOR.PATCH mandatory format for version).
160
-
89
+ See [RELEASE.md](https://github.com/eea/volto-group-block/blob/master/RELEASE.md).
161
90
 
162
91
  ## How to contribute
163
92