Skip to content

Commit 563f98e

Browse files
authored
feat: merge 1.0 #762
2 parents 3132d35 + 1e4b94c commit 563f98e

File tree

533 files changed

+15093
-14698
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

533 files changed

+15093
-14698
lines changed

.eslintrc.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,27 @@ module.exports = {
2121
},
2222
},
2323
overrides: [
24+
{
25+
files: ['test/**/int.spec.ts'],
26+
rules: {
27+
'@typescript-eslint/no-use-before-define': 'off',
28+
'@typescript-eslint/consistent-type-imports': 'warn',
29+
'jest/prefer-strict-equal': 'off',
30+
}
31+
},
32+
{
33+
files: ['test/**/e2e.spec.ts'],
34+
extends: [
35+
'plugin:playwright/playwright-test'
36+
],
37+
rules: {
38+
'jest/consistent-test-it': 'off',
39+
'jest/require-top-level-describe': 'off',
40+
'jest/no-test-callback': 'off',
41+
'jest/prefer-strict-equal': 'off',
42+
'jest/expect-expect': 'off',
43+
}
44+
},
2445
{
2546
files: ['*.ts', '*.tsx'],
2647
parser: '@typescript-eslint/parser',

.github/workflows/tests.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,25 @@ jobs:
3131
env:
3232
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3333
- run: yarn build
34-
- run: yarn test:client
35-
- run: yarn test:int # In-memory db + api tests
36-
- run: yarn demo:generate:types
37-
env:
38-
CI: true
34+
35+
- name: Component Tests
36+
run: yarn test:components
37+
- name: Integration Tests
38+
run: yarn test:int
39+
40+
- name: Generate Payload Types
41+
run: yarn dev:generate-types fields
42+
43+
# - name: Install Playwright Browsers
44+
# run: npx playwright install --with-deps
45+
# - name: E2E Tests
46+
# run: yarn test:e2e
47+
# - uses: actions/upload-artifact@v2
48+
# if: always()
49+
# with:
50+
# name: playwright-report
51+
# path: playwright-report/
52+
# retention-days: 30
3953
install_npm:
4054
runs-on: ubuntu-latest
4155
strategy:

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ coverage
22
package-lock.json
33
dist
44
.idea
5-
cypress/videos
6-
cypress/screenshots
75

86
# Created by https://www.gitignore.io/api/node,macos,windows,webstorm,sublimetext,visualstudiocode
97

.vscode/launch.json

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -29,55 +29,17 @@
2929
"request": "launch",
3030
"name": "Launch Program",
3131
"env": {
32-
"PAYLOAD_CONFIG_PATH": "demo/payload.config.ts",
3332
"BABEL_ENV": "development"
3433
},
35-
"program": "${workspaceFolder}/demo/index.js",
34+
"program": "${workspaceFolder}/test/dev.js",
3635
"skipFiles": [
3736
"<node_internals>/**"
3837
],
39-
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/babel-node",
40-
"runtimeArgs": [
41-
"--nolazy"
42-
],
43-
},
44-
{
45-
"type": "node",
46-
"request": "launch",
47-
"name": "Launch Program - Production",
48-
"env": {
49-
"PAYLOAD_CONFIG_PATH": "demo/payload.config.ts",
50-
"NODE_ENV": "production",
51-
"BABEL_ENV": "development"
52-
},
53-
"program": "${workspaceFolder}/demo/index.js",
54-
"skipFiles": [
55-
"<node_internals>/**"
56-
],
57-
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/babel-node",
58-
"outputCapture": "std",
5938
"runtimeArgs": [
6039
"--nolazy"
6140
],
62-
},
63-
{
64-
"type": "chrome",
65-
"request": "launch",
66-
"name": "Launch Chrome against Localhost",
67-
"url": "http://localhost:3000/admin",
68-
"webRoot": "${workspaceFolder}"
69-
},
70-
{
71-
"type": "node",
72-
"request": "launch",
73-
"name": "Debug Payload Generate Types",
74-
"program": "${workspaceFolder}/src/bin/generateTypes.ts",
75-
"env": {
76-
"PAYLOAD_CONFIG_PATH": "demo/payload.config.ts",
77-
},
78-
"outFiles": [
79-
"${workspaceFolder}/dist/**/*.js",
80-
"!**/node_modules/**"
41+
"args": [
42+
"fields"
8143
]
8244
},
8345
]

CHANGELOG.md

Lines changed: 588 additions & 852 deletions
Large diffs are not rendered by default.

components/elements.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ export { default as Button } from '../dist/admin/components/elements/Button';
22
export { default as Card } from '../dist/admin/components/elements/Card';
33
export { default as Eyebrow } from '../dist/admin/components/elements/Eyebrow';
44
export { default as Nav } from '../dist/admin/components/elements/Nav';
5+
export { default as Gutter } from '../dist/admin/components/elements/Gutter';

cypress.json

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

cypress/cypress.d.ts

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

cypress/fixtures/example.json

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

cypress/integration/collections.e2e.ts

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

0 commit comments

Comments
 (0)