Skip to content

Commit 7605658

Browse files
committed
Refactor vlt8
1 parent b51e9a1 commit 7605658

File tree

19 files changed

+114
-99
lines changed

19 files changed

+114
-99
lines changed

.github/workflows/acceptance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- "packages/**"
1010

1111
env:
12-
NODE_VERSION: 20.x
12+
NODE_VERSION: 24.x
1313
CYPRESS_RETRIES: 2
1414

1515
jobs:

.github/workflows/code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- "packages/**"
99

1010
env:
11-
NODE_VERSION: 20.x
11+
NODE_VERSION: 24.x
1212

1313
jobs:
1414
codeanalysis:

.github/workflows/i18n.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- "packages/**"
99

1010
env:
11-
NODE_VERSION: 20.x
11+
NODE_VERSION: 24.x
1212

1313
jobs:
1414
unit:

.github/workflows/storybook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- ".github/workflows/storybook.yml"
99

1010
env:
11-
NODE_VERSION: 20.x
11+
NODE_VERSION: 24.x
1212

1313
permissions:
1414
contents: write

.github/workflows/unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- "packages/**"
99

1010
env:
11-
NODE_VERSION: 20.x
11+
NODE_VERSION: 24.x
1212

1313
jobs:
1414
unit:

.pre-commit-config.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ release-dry-run: ## Dry-run the release of the add-on on npmjs.org
7676
test: ## Run unit tests
7777
pnpm test
7878

79-
.PHONY: test-ci
79+
.PHONY: ci-test
8080
ci-test: ## Run unit tests in CI
81-
CI=1 RAZZLE_JEST_CONFIG=$(CURRENT_DIR)/jest-addon.config.js pnpm --filter @plone/volto test -- --passWithNoTests
81+
# Unit Tests need the i18n to be built
82+
VOLTOCONFIG=$(pwd)/volto.config.js pnpm --filter @plone/volto i18n
83+
CI=1 pnpm test --passWithNoTests
8284

8385
.PHONY: backend-docker-start
8486
backend-docker-start: ## Starts a Docker-based backend for development

jest-addon.config.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"build": "pnpm build:deps && VOLTOCONFIG=$(pwd)/volto.config.js pnpm --filter @plone/volto build",
1919
"build:deps": "pnpm --filter @plone/registry --filter @plone/components build",
2020
"i18n": "pnpm --filter @kitconcept/volto-separator-block i18n",
21-
"test": "RAZZLE_JEST_CONFIG=$(pwd)/jest-addon.config.js pnpm --filter @plone/volto test -- --passWithNoTests",
21+
"test": "pnpm --filter @kitconcept/volto-separator-block exec vitest",
2222
"lint": "eslint --max-warnings=0 'packages/**/src/**/*.{js,jsx,ts,tsx}'",
2323
"lint:fix": "eslint --fix 'packages/**/src/**/*.{js,jsx,ts,tsx}'",
2424
"prettier": "prettier --check 'packages/**/src/**/*.{js,jsx,ts,tsx}'",
@@ -41,4 +41,4 @@
4141
"mrs-developer": "^2.2.0"
4242
},
4343
"packageManager": "pnpm@9.1.1"
44-
}
44+
}

packages/volto-separator-block/package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@kitconcept/volto-separator-block",
33
"version": "4.2.1",
44
"description": "volto-separator-block: Volto add-on that provides a visual separator between blocks",
5-
"main": "src/index.js",
5+
"main": "src/index.ts",
66
"license": "MIT",
77
"keywords": [
88
"volto-addon",
@@ -27,15 +27,24 @@
2727
"release-alpha": "release-it --preRelease=alpha"
2828
},
2929
"dependencies": {
30-
"@plone/components": "workspace:*"
30+
"classnames": "^2.5.1"
3131
},
3232
"peerDependencies": {
3333
"react": "18.2.0",
3434
"react-dom": "18.2.0",
3535
"react-intl": "^3.12.1"
3636
},
3737
"devDependencies": {
38-
"@plone/scripts": "^3.6.1",
39-
"release-it": "^17.1.1"
38+
"@plone/scripts": "^3.10.3",
39+
"@plone/types": "workspace:*",
40+
"@testing-library/cypress": "10.0.3",
41+
"@testing-library/jest-dom": "^6.8.0",
42+
"@testing-library/react": "^16.2.0",
43+
"@types/node": "^24",
44+
"@types/react": "^18",
45+
"@types/react-dom": "^18",
46+
"release-it": "^19.0.3",
47+
"typescript": "^5.7.3",
48+
"vitest": "^3.1.2"
4049
}
4150
}

0 commit comments

Comments
 (0)