Skip to content

Commit 2be1dab

Browse files
jwasiakJarosław Wasiakdziraf
authored
v4 (#65)
* feat: replace AdminJS.bundle with ComponentLoader * chore: change to ECMAScript modules BREAKING CHANGE: The package won't support CJS anymore. BREAKING CHANGE: You now have to provide your ComponentLoader instance to the feature --------- Co-authored-by: Jarosław Wasiak <[email protected]> Co-authored-by: Rafal Dziegielewski <[email protected]>
1 parent a2be2be commit 2be1dab

Some content is hidden

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

62 files changed

+10948
-10724
lines changed

.eslintrc.js renamed to .eslintrc.cjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ module.exports = {
1010
],
1111
ignorePatterns: [
1212
'*/build/**/*',
13+
'*/dist/**/*',
1314
'*.json',
1415
'*.txt',
16+
'*.mp4',
1517
'yarn.lock',
1618
'*.yaml',
1719
'*.md',
@@ -22,7 +24,7 @@ module.exports = {
2224
ecmaFeatures: {
2325
jsx: true,
2426
},
25-
ecmaVersion: 11,
27+
ecmaVersion: 20,
2628
sourceType: 'module',
2729
},
2830
plugins: [
@@ -50,6 +52,8 @@ module.exports = {
5052
'react/prop-types': 'off',
5153
'react/jsx-props-no-spreading': 'off',
5254
'import/no-extraneous-dependencies': 'off',
55+
'react/function-component-definition': 'off',
56+
'react/require-default-props': 'off',
5357
},
5458
}, {
5559
files: ['./src/**/*.spec.ts', '**/*/spec/**/*.ts'],

.github/workflows/push.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v2
1414
- name: Setup
15-
uses: actions/setup-node@v1
15+
uses: actions/setup-node@v2
1616
with:
17-
node-version: '10.x'
18-
- uses: actions/cache@v1
17+
node-version: '18.x'
18+
- uses: actions/cache@v2
1919
id: yarn-cache
2020
with:
2121
path: node_modules
@@ -37,20 +37,3 @@ jobs:
3737
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939
run: yarn release
40-
41-
notify:
42-
name: Notify
43-
runs-on: ubuntu-latest
44-
if: failure()
45-
needs:
46-
- test
47-
steps:
48-
- uses: technote-space/workflow-conclusion-action@v1
49-
- uses: 8398a7/action-slack@v3
50-
with:
51-
status: ${{ env.WORKFLOW_CONCLUSION }}
52-
fields: repo,message,commit,author,action,eventName,ref,workflow
53-
env:
54-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
56-
if: always()

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,5 @@ build
162162

163163
example-app/cypress/videos
164164
example-app/public
165+
example-app/yarn-error.log*
166+
.nova

.releaserc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"semantic-release-slack-bot",
2020
{
2121
"notifyOnSuccess": true,
22-
"notifyOnFail": true
22+
"notifyOnFail": false
2323
}
2424
]
2525
]

.vscode/settings.json

Lines changed: 0 additions & 19 deletions
This file was deleted.
File renamed without changes.

example-app/cypress.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { defineConfig } from 'cypress'
2+
import pluginConfig from './cypress/plugins/index.js'
3+
4+
export default defineConfig({
5+
e2e: {
6+
// We've imported your old cypress plugins here.
7+
// You may want to clean this up later by importing these.
8+
setupNodeEvents(on, config) {
9+
pluginConfig(on, config)
10+
},
11+
baseUrl: 'http://localhost:3000/admin',
12+
},
13+
})

example-app/cypress.json

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

example-app/cypress/plugins/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
* @type {Cypress.PluginConfig}
1717
*/
1818
// eslint-disable-next-line @typescript-eslint/no-unused-vars
19-
module.exports = (on, config) => {
19+
const pluginConfig = (on, config) => {
2020
// `on` is used to hook into various events Cypress emits
2121
// `config` is the resolved Cypress config
2222
}
23+
24+
export default pluginConfig

0 commit comments

Comments
 (0)