Skip to content

Commit

Permalink
v4 (#16)
Browse files Browse the repository at this point in the history
* chore: change to ECMAScript modules

BREAKING CHANGE: The package won't support CJS anymore.

* chore: replace AdminJS.bundle with ComponentLoader (#15)

BREAKING CHANGE: The package now requires you to provide your ComponentLoader instance.
  • Loading branch information
dziraf authored Apr 18, 2023
1 parent 9d50329 commit 347411a
Show file tree
Hide file tree
Showing 29 changed files with 5,564 additions and 12,345 deletions.
48 changes: 20 additions & 28 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,51 +8,43 @@ module.exports = {
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
],
ignorePatterns: [
'*/build/**/*',
'*.json',
'*.txt',
'yarn.lock',
'*.yaml',
],
ignorePatterns: ['*/build/**/*', '*.json', '*.txt', 'yarn.lock', '*.yaml'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 11,
ecmaVersion: 20,
sourceType: 'module',
},
plugins: [
'react',
'@typescript-eslint',
],
plugins: ['react', '@typescript-eslint'],
rules: {
semi: ['error', 'never'],
'no-unused-vars': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'react/jsx-filename-extension': 'off',
indent: [
'error',
2,
],
indent: ['error', 2],
'linebreak-style': ['error', 'unix'],
'object-curly-newline': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
overrides: [{
files: ['*.tsx', '*.jsx'],
rules: {
'react/prop-types': 'off',
'react/jsx-props-no-spreading': 'off',
'import/no-extraneous-dependencies': 'off',
overrides: [
{
files: ['*.tsx', '*.jsx'],
rules: {
'react/prop-types': 'off',
'react/jsx-props-no-spreading': 'off',
'import/no-extraneous-dependencies': 'off',
'react/function-component-definition': 'off',
},
},
}, {
files: ['./src/**/*.spec.ts', '**/*/spec/**/*.ts'],
rules: {
'no-unused-expressions': 'off',
'import/no-extraneous-dependencies': 'off',
{
files: ['./src/**/*.spec.ts', '**/*/spec/**/*.ts'],
rules: {
'no-unused-expressions': 'off',
'import/no-extraneous-dependencies': 'off',
},
},
}],
],
}
24 changes: 3 additions & 21 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: '10.x'
- uses: actions/cache@v1
node-version: '18.x'
- uses: actions/cache@v2
id: yarn-cache
with:
path: node_modules
Expand All @@ -32,26 +32,8 @@ jobs:
- name: Build
run: yarn build
- name: Release
if: github.event_name == 'push'
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn release

notify:
name: Notify
runs-on: ubuntu-latest
if: failure()
needs:
- test
steps:
- uses: technote-space/workflow-conclusion-action@v1
- uses: 8398a7/action-slack@v3
with:
status: ${{ env.WORKFLOW_CONCLUSION }}
fields: repo,message,commit,author,action,eventName,ref,workflow
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
if: always()
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,5 @@ build
.adminjs

example-app/cypress/videos

.nova
19 changes: 0 additions & 19 deletions .vscode/settings.json

This file was deleted.

File renamed without changes.
3 changes: 0 additions & 3 deletions example-app/.env-example

This file was deleted.

3 changes: 0 additions & 3 deletions example-app/cypress.json

This file was deleted.

5 changes: 0 additions & 5 deletions example-app/cypress/fixtures/example.json

This file was deleted.

9 changes: 0 additions & 9 deletions example-app/cypress/integration/example.spec.ts

This file was deleted.

22 changes: 0 additions & 22 deletions example-app/cypress/plugins/index.js

This file was deleted.

25 changes: 0 additions & 25 deletions example-app/cypress/support/commands.js

This file was deleted.

20 changes: 0 additions & 20 deletions example-app/cypress/support/index.js

This file was deleted.

13 changes: 0 additions & 13 deletions example-app/docker-compose.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions example-app/ormconfig.js

This file was deleted.

34 changes: 0 additions & 34 deletions example-app/package.json

This file was deleted.

38 changes: 0 additions & 38 deletions example-app/src/index.ts

This file was deleted.

36 changes: 0 additions & 36 deletions example-app/src/user/user.entity.ts

This file was deleted.

Loading

0 comments on commit 347411a

Please sign in to comment.