Skip to content

Commit a1ff97a

Browse files
authored
chore: bump [email protected] (#188)
* chore: bump [email protected] * chore: use rc-test
1 parent 0a3c533 commit a1ff97a

File tree

6 files changed

+22
-31
lines changed

6 files changed

+22
-31
lines changed

.fatherrc.js

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

.fatherrc.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from 'father';
2+
3+
export default defineConfig({
4+
plugins: ['@rc-component/father-plugin'],
5+
});

.github/workflows/react-component-ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
jobs:
1010
setup:
@@ -15,7 +15,7 @@ jobs:
1515

1616
- uses: actions/setup-node@v1
1717
with:
18-
node-version: '12'
18+
node-version: '18'
1919

2020
- name: cache package-lock.json
2121
uses: actions/cache@v2
@@ -24,7 +24,7 @@ jobs:
2424
key: lock-${{ github.sha }}
2525

2626
- name: create package-lock.json
27-
run: npm i --package-lock-only
27+
run: npm i --package-lock-only --ignore-scripts
2828

2929
- name: hack for singe file
3030
run: |
@@ -43,7 +43,7 @@ jobs:
4343
- name: install
4444
if: steps.node_modules_cache_id.outputs.cache-hit != 'true'
4545
run: npm ci
46-
46+
4747
lint:
4848
runs-on: ubuntu-latest
4949
steps:
@@ -66,7 +66,7 @@ jobs:
6666
run: npm run lint
6767

6868
needs: setup
69-
69+
7070
compile:
7171
runs-on: ubuntu-latest
7272
steps:
@@ -89,7 +89,7 @@ jobs:
8989
run: npm run compile
9090

9191
needs: setup
92-
92+
9393
coverage:
9494
runs-on: ubuntu-latest
9595
steps:

.gitignore

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.storybook
21
*.iml
32
*.log
43
.idea
@@ -29,14 +28,8 @@ yarn.lock
2928
package-lock.json
3029
.doc/
3130

32-
# umi
33-
.umi
34-
.umi-production
35-
.umi-test
36-
.env.local
37-
38-
39-
# dumi
4031
.doc
32+
# dumi
4133
.dumi/tmp
34+
.dumi/tmp-test
4235
.dumi/tmp-production

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@
3232
"docs:build": "dumi build",
3333
"docs:deploy": "gh-pages -d .doc",
3434
"compile": "father build && lessc assets/index.less assets/index.css",
35+
"prepare": "dumi setup",
3536
"prepublishOnly": "npm run compile && np --yolo --no-publish",
3637
"postpublish": "npm run docs:build && npm run docs:deploy",
3738
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md",
3839
"prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
39-
"test": "father test",
40-
"coverage": "father test --coverage",
40+
"test": "rc-test",
41+
"coverage": "rc-test --coverage",
4142
"now-build": "npm run docs:build"
4243
},
4344
"dependencies": {
@@ -46,6 +47,7 @@
4647
"rc-util": "^5.0.1"
4748
},
4849
"devDependencies": {
50+
"@rc-component/father-plugin": "^1.0.0",
4951
"@types/classnames": "^2.2.9",
5052
"@types/jest": "^29.5.1",
5153
"@types/react": "^17.0.15",
@@ -54,14 +56,14 @@
5456
"cross-env": "^7.0.0",
5557
"dumi": "^2.1.2",
5658
"enzyme": "^3.1.1",
57-
"enzyme-adapter-react-16": "^1.0.1",
59+
"enzyme-adapter-react-16": "^1.15.6",
5860
"enzyme-to-json": "^3.1.2",
5961
"eslint": "^7.1.0",
60-
"father": "^2.22.0",
61-
"father-build": "^1.18.6",
62+
"father": "^4.0.0",
6263
"gh-pages": "^3.1.0",
6364
"less": "^3.0.0",
6465
"np": "^7.0.0",
66+
"rc-test": "^7.0.15",
6567
"rc-tooltip": "^5.0.1",
6668
"react": "^16.0.0",
6769
"react-dom": "^16.0.0",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"target": "esnext",
44
"moduleResolution": "node",
55
"baseUrl": "./",
6-
"jsx": "preserve",
6+
"jsx": "react",
77
"declaration": true,
88
"skipLibCheck": true,
99
"esModuleInterop": true,

0 commit comments

Comments
 (0)