Skip to content

Commit 50379f8

Browse files
committed
chore: clean up repository, update packages for esm
BREAKING CHANGE: The package won't support CJS anymore.
1 parent 1535a62 commit 50379f8

Some content is hidden

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

46 files changed

+3339
-10022
lines changed

.eslintrc.cjs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,46 @@ module.exports = {
33
es2020: true,
44
},
55
extends: [
6-
"airbnb",
7-
"plugin:react/recommended",
8-
"plugin:@typescript-eslint/recommended",
6+
'airbnb',
7+
'plugin:react/recommended',
8+
'plugin:@typescript-eslint/recommended',
99
],
10-
parser: "@typescript-eslint/parser",
10+
parser: '@typescript-eslint/parser',
1111
parserOptions: {
1212
ecmaFeatures: {
1313
jsx: true,
1414
},
1515
ecmaVersion: 20,
16-
sourceType: "module",
16+
sourceType: 'module',
1717
},
18-
plugins: ["react", "@typescript-eslint"],
18+
plugins: ['react', '@typescript-eslint'],
1919
rules: {
20-
semi: ["error", "always"],
21-
"no-unused-vars": "off",
22-
"import/extensions": "off",
23-
"import/no-unresolved": "off",
24-
"react/jsx-filename-extension": "off",
25-
indent: ["error", 2],
26-
"linebreak-style": ["error", "unix"],
27-
"object-curly-newline": "off",
28-
"@typescript-eslint/no-explicit-any": "off",
20+
semi: ['error', 'always'],
21+
'no-unused-vars': 'off',
22+
'import/extensions': 'off',
23+
'import/no-unresolved': 'off',
24+
'react/jsx-filename-extension': 'off',
25+
indent: ['error', 2],
26+
'linebreak-style': ['error', 'unix'],
27+
'object-curly-newline': 'off',
28+
'@typescript-eslint/no-explicit-any': 'off',
2929
},
3030
overrides: [
3131
{
32-
files: ["*.tsx"],
32+
files: ['*.tsx'],
3333
rules: {
34-
"react/prop-types": "off",
35-
"react/jsx-props-no-spreading": "off",
36-
"import/no-extraneous-dependencies": "off",
34+
'react/prop-types': 'off',
35+
'react/jsx-props-no-spreading': 'off',
36+
'import/no-extraneous-dependencies': 'off',
3737
},
3838
},
3939
{
40-
files: ["./src/**/*.spec.ts", "spec/*.ts"],
40+
files: ['./src/**/*.spec.ts', 'spec/*.ts'],
4141
rules: {
42-
"no-unused-expressions": "off",
43-
"prefer-arrow-callback": "off",
44-
"func-names": "off",
45-
"import/no-extraneous-dependencies": "off",
42+
'no-unused-expressions': 'off',
43+
'prefer-arrow-callback': 'off',
44+
'func-names': 'off',
45+
'import/no-extraneous-dependencies': 'off',
4646
},
4747
},
4848
],

.github/workflows/push.yml

Lines changed: 4 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
- name: Setup
1515
uses: actions/setup-node@v2
1616
with:
17-
node-version: '16.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
@@ -30,25 +30,14 @@ jobs:
3030
name: Test
3131
runs-on: ubuntu-latest
3232
needs: setup
33-
services:
34-
postgres:
35-
image: postgres:10.8
36-
env:
37-
POSTGRES_USER: postgres
38-
POSTGRES_PASSWORD: postgres
39-
POSTGRES_DB: postgres
40-
ports:
41-
- 5432:5432
42-
# needed because the postgres container does not provide a healthcheck
43-
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
4433
steps:
4534
- name: Checkout
4635
uses: actions/checkout@v2
4736
- name: Setup
4837
uses: actions/setup-node@v2
4938
with:
50-
node-version: '16.x'
51-
- uses: actions/cache@v1
39+
node-version: '18.x'
40+
- uses: actions/cache@v2
5241
id: yarn-cache
5342
with:
5443
path: node_modules
@@ -58,21 +47,8 @@ jobs:
5847
- name: Install
5948
if: steps.yarn-cache.outputs.cache-hit != 'true'
6049
run: yarn install
61-
- run: yarn run sequelize db:migrate
62-
env:
63-
NODE_ENV: test
64-
POSTGRES_PASSWORD: postgres
65-
POSTGRES_DATABASE: postgres
66-
POSTGRES_USER: postgres
6750
- name: Lint
6851
run: yarn lint
69-
- name: test
70-
run: yarn test
71-
env:
72-
NODE_ENV: test
73-
POSTGRES_PASSWORD: postgres
74-
POSTGRES_DATABASE: postgres
75-
POSTGRES_USER: postgres
7652
- name: Build
7753
run: yarn build
7854
- name: Release
@@ -82,23 +58,3 @@ jobs:
8258
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8359
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
8460
run: yarn release
85-
86-
notify:
87-
name: Notify
88-
runs-on: ubuntu-latest
89-
if: always()
90-
needs:
91-
- test
92-
- setup
93-
steps:
94-
- uses: technote-space/workflow-conclusion-action@v1
95-
- uses: 8398a7/action-slack@v3
96-
with:
97-
status: ${{ env.WORKFLOW_CONCLUSION }}
98-
fields: repo,message,commit,author,action,eventName,ref,workflow # selectable (default: repo,message)
99-
env:
100-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
101-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
102-
if: failure()
103-
104-

.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
]

.sequelizerc

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

.tav.yml

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

commitlint.config.js renamed to commitlint.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module.exports = {
22
extends: [
33
'@commitlint/config-conventional',
44
],
5-
}
5+
};

config/config.js

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

example-app/.adminbro/.entry.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

example-app/.adminbro/bundle.js

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

example-app/.env-example

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

example-app/cypress.json

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

example-app/cypress/fixtures/example.json

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

example-app/cypress/integration/example.spec.ts

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

example-app/cypress/plugins/index.js

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

example-app/cypress/support/commands.js

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

example-app/cypress/support/index.js

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

example-app/docker-compose.yaml

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

example-app/package.json

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

example-app/src/comments/comment.entity.ts

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

0 commit comments

Comments
 (0)