-
-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial push of the Plone 7 base package (#6599)
- Loading branch information
Showing
84 changed files
with
4,518 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Cookieplone | ||
on: [push, pull_request] | ||
|
||
env: | ||
PYTHON_VERSION: "3.13" | ||
|
||
jobs: | ||
seven: | ||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | ||
runs-on: ubuntu-latest | ||
name: Seven Cookieplone | ||
timeout-minutes: 45 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [22.x] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: echo "Current branch is ${GITHUB_REF#refs/heads/}" | ||
- name: Set up Node.js environment | ||
uses: ./.github/actions/node_env_setup | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Generate Cookieplone-based frontend addon | ||
run: | | ||
pipx install cookieplone | ||
COOKIEPLONE_REPOSITORY_TAG=seventemplate pipx run --no-cache cookieplone seven_addon --no-input | ||
- name: Install generated package | ||
working-directory: seven-add-on | ||
run: | | ||
pnpm dlx mrs-developer missdev --no-config --fetch-https | ||
(cd core && git fetch --depth 1 origin ${GITHUB_REF#refs/heads/}:${GITHUB_REF#refs/heads/} && git checkout ${GITHUB_REF#refs/heads/}) | ||
pnpm i | ||
- name: Cypress acceptance tests | ||
uses: cypress-io/github-action@v6 | ||
env: | ||
BABEL_ENV: production | ||
CYPRESS_RETRIES: 2 | ||
# Recommended: pass the GitHub token lets this action correctly | ||
# determine the unique run id necessary to re-run the checks | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
install: false | ||
working-directory: seven-add-on/core/packages/seven | ||
browser: chrome | ||
spec: cypress/tests/core/basic/**/*.cy.ts | ||
start: | | ||
make ci-acceptance-backend-start | ||
make project-acceptance-frontend-prod-start | ||
wait-on: 'npx wait-on --httpTimeout 20000 http-get://127.0.0.1:55001/plone http://127.0.0.1:3000' | ||
|
||
# Upload Cypress screenshots | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: cypress-screenshots | ||
path: packages/seven/cypress/screenshots | ||
# Upload Cypress videos | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: cypress-videos | ||
path: packages/seven/cypress/videos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
extends: ['../../.eslintrc.cjs', 'plugin:react/jsx-runtime'], | ||
ignorePatterns: ['storybook-static', 'dist'], | ||
extends: ['../../.eslintrc.cjs', '../eslintconfig/addons.js'], | ||
ignorePatterns: ['vitest.config.ts'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fixed several typing errors and a map without key. @sneridagh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import '@testing-library/jest-dom'; | ||
import { toHaveNoViolations } from 'jest-axe'; | ||
expect.extend(toHaveNoViolations); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { defineConfig } from 'vitest/config'; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
test: { | ||
globals: true, | ||
environment: 'jsdom', | ||
setupFiles: './setupTesting.ts', | ||
// you might want to disable it, if you don't have tests that rely on CSS | ||
// since parsing CSS is slow | ||
css: true, | ||
exclude: ['**/node_modules/**', '**/lib/**'], | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix typo in README. @sneridagh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# `eslintconfig` | ||
|
||
Base configurations for projects. | ||
|
||
## Usage | ||
|
||
In `package.json`: | ||
|
||
```json | ||
"devDependencies": { | ||
"eslintconfig": "workspace:*", | ||
} | ||
``` | ||
|
||
```js | ||
{ | ||
"extends": "tsconfig/react-library.json", | ||
"include": ["src", "src/**/*.js"], | ||
"exclude": [ | ||
"node_modules", | ||
"build", | ||
"public", | ||
"coverage", | ||
"src/**/*.test.{js,jsx,ts,tsx}", | ||
"src/**/*.spec.{js,jsx,ts,tsx}", | ||
"src/**/*.stories.{js,jsx,ts,tsx}" | ||
] | ||
} | ||
``` | ||
|
||
> [!WARNING] | ||
> This package or app is experimental. | ||
> The community offers no support whatsoever for it. | ||
> Breaking changes may occur without notice. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
ignorePatterns: ['storybook-static', 'dist'], | ||
overrides: [ | ||
{ | ||
files: ['**/*.{ts,tsx, js, jsx}'], | ||
extends: [ | ||
'plugin:react/jsx-runtime', // We only want this for non-library code (eg. volto add-ons) | ||
], | ||
rules: { | ||
'import/no-unresolved': 1, | ||
'import/named': 'error', | ||
'react/jsx-key': [2, { checkFragmentShorthand: true }], | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "eslintconfig", | ||
"version": "0.0.0", | ||
"private": true, | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
Oops, something went wrong.