@eeacms/volto-timeline-block 0.2.3 → 1.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.
- package/.coverage.babel.config.js +1 -1
- package/.i18n.babel.config.js +1 -0
- package/.project.eslintrc.js +3 -1
- package/CHANGELOG.md +38 -22
- package/babel.config.js +1 -1
- package/cypress.config.js +26 -0
- package/jest-addon.config.js +4 -4
- package/package.json +18 -16
- package/cypress.json +0 -17
|
@@ -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('
|
|
5
|
+
voltoBabel.plugins.push('istanbul');
|
|
6
6
|
return voltoBabel;
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('@plone/volto/babel');
|
package/.project.eslintrc.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
2
|
const path = require('path');
|
|
3
3
|
|
|
4
|
-
const projectRootPath = fs.
|
|
4
|
+
const projectRootPath = fs.existsSync('./project')
|
|
5
|
+
? fs.realpathSync('./project')
|
|
6
|
+
: fs.realpathSync('./../../../');
|
|
5
7
|
const packageJson = require(path.join(projectRootPath, 'package.json'));
|
|
6
8
|
const jsConfig = require(path.join(projectRootPath, 'jsconfig.json')).compilerOptions;
|
|
7
9
|
|
package/CHANGELOG.md
CHANGED
|
@@ -4,38 +4,54 @@ 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
|
-
|
|
7
|
+
### [1.0.1](https://github.com/eea/volto-timeline-block/compare/1.0.0...1.0.1) - 16 November 2022
|
|
8
8
|
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
- test(estlint): Fix .project.eslintrc.js [Alin Voinea - [`742fb19`](https://github.com/eea/volto-timeline-block/commit/742fb1986b76ed5b775a7895aa91df452bf601e6)]
|
|
12
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`c4e6e36`](https://github.com/eea/volto-timeline-block/commit/c4e6e36aaabb02bea84695411cfb2d3ca586b210)]
|
|
13
|
+
## [1.0.0](https://github.com/eea/volto-timeline-block/compare/0.2.3...1.0.0) - 28 October 2022
|
|
11
14
|
|
|
12
|
-
|
|
15
|
+
#### :nail_care: Enhancements
|
|
13
16
|
|
|
14
|
-
-
|
|
15
|
-
- fix(timeline_block): BlockChooser Icon [`8a7b653`](https://github.com/eea/volto-timeline-block/commit/8a7b653a3f9fb9083e06b65860e6fbe73a19969b)
|
|
16
|
-
- Remove useless from block title [`2eecc11`](https://github.com/eea/volto-timeline-block/commit/2eecc11c3e1791b222ebcceae691ec6e92854a4e)
|
|
17
|
+
- refactor(volto-slate): Replace volto-slate with core @plone/volto-slate [Alin Voinea - [`aa18d6a`](https://github.com/eea/volto-timeline-block/commit/aa18d6a01e6f3e4468a602f1bd26dfa73228308c)]
|
|
17
18
|
|
|
18
|
-
####
|
|
19
|
+
#### :hammer_and_wrench: Others
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
- Jenkinsfile [Alin Voinea - [`56815ff`](https://github.com/eea/volto-timeline-block/commit/56815ffa6c1905f8a6463f14f312255e75a2ee76)]
|
|
22
|
+
- test(cypress): Cypress 10 / Razzle 4 [Alin Voinea - [`ca50ec9`](https://github.com/eea/volto-timeline-block/commit/ca50ec9a9ab4db0faf0b33fa250814d788741478)]
|
|
23
|
+
- Cleanup [Alin Voinea - [`28c2444`](https://github.com/eea/volto-timeline-block/commit/28c244491045ca3ba6a3c182818364f73951f765)]
|
|
24
|
+
- Update dependencies [Alin Voinea - [`ab59000`](https://github.com/eea/volto-timeline-block/commit/ab590002fdef3c95d4580893b6e407b51746a290)]
|
|
25
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`bfa44a6`](https://github.com/eea/volto-timeline-block/commit/bfa44a64c026b2a5f9f22fbfcb3119f60c78d461)]
|
|
26
|
+
### [0.2.3](https://github.com/eea/volto-timeline-block/compare/0.2.2...0.2.3) - 30 June 2022
|
|
21
27
|
|
|
22
|
-
|
|
28
|
+
### [0.2.2](https://github.com/eea/volto-timeline-block/compare/0.2.1...0.2.2) - 8 June 2022
|
|
23
29
|
|
|
24
|
-
####
|
|
30
|
+
#### :bug: Bug Fixes
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
- fix(timeline_block): BlockChooser Icon [Alin Voinea - [`8a7b653`](https://github.com/eea/volto-timeline-block/commit/8a7b653a3f9fb9083e06b65860e6fbe73a19969b)]
|
|
27
33
|
|
|
28
|
-
|
|
29
|
-
- Release 0.2.0 [`296e2c1`](https://github.com/eea/volto-timeline-block/commit/296e2c1247bb12c71d03cb294a1bf5bc6b5332f4)
|
|
30
|
-
- Update description [`ce5a657`](https://github.com/eea/volto-timeline-block/commit/ce5a657d3f3f692b0e36345b2153179866881fab)
|
|
31
|
-
- Update README: Add screenshot [`d237607`](https://github.com/eea/volto-timeline-block/commit/d237607c843f12e3692a87b8cdef6ff7f751300d)
|
|
32
|
-
- Move timeline block to common group [`57552b9`](https://github.com/eea/volto-timeline-block/commit/57552b9641aa7458acf3432ccfd37590758db5b0)
|
|
33
|
-
- Add description [`eab3def`](https://github.com/eea/volto-timeline-block/commit/eab3def6d3ea273252e4881ca448643eb8eb6d25)
|
|
34
|
-
- don't use timeline from volto-eea-design-system [`bfcf521`](https://github.com/eea/volto-timeline-block/commit/bfcf52143f656b908f12b3374cc3d596b35fc1f7)
|
|
35
|
-
- Run bootstrap [`5edf844`](https://github.com/eea/volto-timeline-block/commit/5edf844a3a00cb9b5a40cd2bed0a9fea49f5c841)
|
|
34
|
+
#### :hammer_and_wrench: Others
|
|
36
35
|
|
|
37
|
-
|
|
36
|
+
- Remove useless from block title [Alin Voinea - [`2eecc11`](https://github.com/eea/volto-timeline-block/commit/2eecc11c3e1791b222ebcceae691ec6e92854a4e)]
|
|
37
|
+
### [0.2.1](https://github.com/eea/volto-timeline-block/compare/0.2.0...0.2.1) - 22 April 2022
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
#### :hammer_and_wrench: Others
|
|
40
40
|
|
|
41
|
-
-
|
|
41
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`21fea4e`](https://github.com/eea/volto-timeline-block/commit/21fea4edb8da738f81c12ca1f70696b63581159b)]
|
|
42
|
+
### [0.2.0](https://github.com/eea/volto-timeline-block/compare/0.1.0...0.2.0) - 29 March 2022
|
|
43
|
+
|
|
44
|
+
#### :hammer_and_wrench: Others
|
|
45
|
+
|
|
46
|
+
- Release 0.2.0 [Alin Voinea - [`296e2c1`](https://github.com/eea/volto-timeline-block/commit/296e2c1247bb12c71d03cb294a1bf5bc6b5332f4)]
|
|
47
|
+
- Update description [Alin Voinea - [`ce5a657`](https://github.com/eea/volto-timeline-block/commit/ce5a657d3f3f692b0e36345b2153179866881fab)]
|
|
48
|
+
- Update README: Add screenshot [Alin Voinea - [`d237607`](https://github.com/eea/volto-timeline-block/commit/d237607c843f12e3692a87b8cdef6ff7f751300d)]
|
|
49
|
+
- Move timeline block to common group [Miu Razvan - [`57552b9`](https://github.com/eea/volto-timeline-block/commit/57552b9641aa7458acf3432ccfd37590758db5b0)]
|
|
50
|
+
- Add description [Miu Razvan - [`eab3def`](https://github.com/eea/volto-timeline-block/commit/eab3def6d3ea273252e4881ca448643eb8eb6d25)]
|
|
51
|
+
- don't use timeline from volto-eea-design-system [Miu Razvan - [`bfcf521`](https://github.com/eea/volto-timeline-block/commit/bfcf52143f656b908f12b3374cc3d596b35fc1f7)]
|
|
52
|
+
- Run bootstrap [Miu Razvan - [`5edf844`](https://github.com/eea/volto-timeline-block/commit/5edf844a3a00cb9b5a40cd2bed0a9fea49f5c841)]
|
|
53
|
+
### 0.1.0 - 23 March 2022
|
|
54
|
+
|
|
55
|
+
#### :hammer_and_wrench: Others
|
|
56
|
+
|
|
57
|
+
- Initial commit [Miu Razvan - [`b336dc7`](https://github.com/eea/volto-timeline-block/commit/b336dc76bdfad08e161f67312053a44570584e40)]
|
package/babel.config.js
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const { defineConfig } = require('cypress');
|
|
2
|
+
|
|
3
|
+
module.exports = defineConfig({
|
|
4
|
+
viewportWidth: 1280,
|
|
5
|
+
defaultCommandTimeout: 8888,
|
|
6
|
+
chromeWebSecurity: false,
|
|
7
|
+
reporter: 'junit',
|
|
8
|
+
video: true,
|
|
9
|
+
retries: {
|
|
10
|
+
runMode: 8,
|
|
11
|
+
openMode: 0,
|
|
12
|
+
},
|
|
13
|
+
reporterOptions: {
|
|
14
|
+
mochaFile: 'cypress/reports/cypress-[hash].xml',
|
|
15
|
+
jenkinsMode: true,
|
|
16
|
+
toConsole: true,
|
|
17
|
+
},
|
|
18
|
+
e2e: {
|
|
19
|
+
setupNodeEvents(on, config) {
|
|
20
|
+
// e2e testing node events setup code
|
|
21
|
+
require('@cypress/code-coverage/task')(on, config);
|
|
22
|
+
return config;
|
|
23
|
+
},
|
|
24
|
+
baseUrl: 'http://localhost:3000',
|
|
25
|
+
},
|
|
26
|
+
});
|
package/jest-addon.config.js
CHANGED
|
@@ -9,18 +9,18 @@ module.exports = {
|
|
|
9
9
|
'@plone/volto/babel': '<rootDir>/node_modules/@plone/volto/babel',
|
|
10
10
|
'@plone/volto/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
|
|
11
11
|
'@package/(.*)$': '<rootDir>/src/$1',
|
|
12
|
+
'@root/(.*)$': '<rootDir>/src/$1',
|
|
12
13
|
'@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
|
|
13
14
|
'@eeacms/(.*?)/(.*)$': '<rootDir>/src/addons/$1/src/$2',
|
|
14
|
-
'volto-slate
|
|
15
|
+
'@plone/volto-slate':
|
|
16
|
+
'<rootDir>/node_modules/@plone/volto/packages/volto-slate/src',
|
|
15
17
|
'~/(.*)$': '<rootDir>/src/$1',
|
|
16
18
|
'load-volto-addons':
|
|
17
19
|
'<rootDir>/node_modules/@plone/volto/jest-addons-loader.js',
|
|
20
|
+
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
|
|
18
21
|
},
|
|
19
22
|
transform: {
|
|
20
23
|
'^.+\\.js(x)?$': 'babel-jest',
|
|
21
|
-
'^.+\\.css$': 'jest-css-modules',
|
|
22
|
-
'^.+\\.less$': 'jest-css-modules',
|
|
23
|
-
'^.+\\.scss$': 'jest-css-modules',
|
|
24
24
|
'^.+\\.(png)$': 'jest-file',
|
|
25
25
|
'^.+\\.(jpg)$': 'jest-file',
|
|
26
26
|
'^.+\\.(svg)$': './node_modules/@plone/volto/jest-svgsystem-transform.js',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-timeline-block",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "@eeacms/volto-timeline-block: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -16,28 +16,30 @@
|
|
|
16
16
|
"type": "git",
|
|
17
17
|
"url": "git@github.com:eea/volto-timeline-block.git"
|
|
18
18
|
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"@plone/scripts": "*"
|
|
21
|
-
},
|
|
19
|
+
"dependencies": {},
|
|
22
20
|
"devDependencies": {
|
|
23
|
-
"@
|
|
24
|
-
"
|
|
21
|
+
"@plone/scripts": "*",
|
|
22
|
+
"@cypress/code-coverage": "^3.10.0",
|
|
23
|
+
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
24
|
+
"md5": "^2.3.0"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"release": "release-it",
|
|
28
|
+
"release-major-beta": "release-it major --preRelease=beta",
|
|
29
|
+
"release-beta": "release-it --preRelease=beta",
|
|
28
30
|
"bootstrap": "npm install -g ejs; npm link ejs; node bootstrap",
|
|
29
31
|
"test": "make test",
|
|
30
32
|
"test:fix": "make test-update",
|
|
31
33
|
"pre-commit": "yarn stylelint:fix && yarn prettier:fix && yarn lint:fix",
|
|
32
|
-
"stylelint": "
|
|
33
|
-
"stylelint:overrides": "
|
|
34
|
-
"stylelint:fix": "
|
|
35
|
-
"prettier": "
|
|
36
|
-
"prettier:fix": "
|
|
37
|
-
"lint": "
|
|
38
|
-
"lint:fix": "
|
|
39
|
-
"i18n": "
|
|
40
|
-
"cypress:run": "
|
|
41
|
-
"cypress:open": "
|
|
34
|
+
"stylelint": "make stylelint",
|
|
35
|
+
"stylelint:overrides": "make stylelint-overrides",
|
|
36
|
+
"stylelint:fix": "make stylelint-fix",
|
|
37
|
+
"prettier": "make prettier",
|
|
38
|
+
"prettier:fix": "make prettier-fix",
|
|
39
|
+
"lint": "make lint",
|
|
40
|
+
"lint:fix": "make lint-fix",
|
|
41
|
+
"i18n": "make i18n",
|
|
42
|
+
"cypress:run": "make cypress-run",
|
|
43
|
+
"cypress:open": "make cypress-open"
|
|
42
44
|
}
|
|
43
45
|
}
|
package/cypress.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"baseUrl": "http://localhost:3000",
|
|
3
|
-
"viewportWidth": 1280,
|
|
4
|
-
"defaultCommandTimeout": 8888,
|
|
5
|
-
"chromeWebSecurity": false,
|
|
6
|
-
"reporter": "junit",
|
|
7
|
-
"video": true,
|
|
8
|
-
"retries": {
|
|
9
|
-
"runMode": 8,
|
|
10
|
-
"openMode": 0
|
|
11
|
-
},
|
|
12
|
-
"reporterOptions": {
|
|
13
|
-
"mochaFile": "cypress/reports/cypress-[hash].xml",
|
|
14
|
-
"jenkinsMode": true,
|
|
15
|
-
"toConsole": true
|
|
16
|
-
}
|
|
17
|
-
}
|