Skip to content

Commit

Permalink
chore: father 4 and rc-test (#538)
Browse files Browse the repository at this point in the history
* chore: father 4 and rc-test

* Update package.json
  • Loading branch information
afc163 authored Oct 27, 2022
1 parent 9e66b09 commit d98ed07
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
14 changes: 5 additions & 9 deletions .fatherrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
export default {
cjs: 'babel',
esm: { type: 'babel', importLibToEs: true },
preCommit: {
eslint: true,
prettier: true,
},
runtimeHelpers: true,
};
import { defineConfig } from 'father';

export default defineConfig({
plugins: ['@rc-component/father-plugin'],
});
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
],
"scripts": {
"compile": "father build && lessc assets/index.less assets/index.css",
"coverage": "father test --coverage",
"coverage": "rc-test --coverage",
"docs:build": "dumi build",
"docs:deploy": "gh-pages -d .doc",
"lint": "eslint src/ --ext .tsx,.ts,.jsx,.js",
"now-build": "npm run build",
"prepublishOnly": "npm run compile && np --yolo --no-publish",
"postpublish": "tnpm sync rc-menu",
"start": "dumi dev",
"test": "father test"
"test": "rc-test"
},
"dependencies": {
"@babel/runtime": "^7.10.1",
Expand All @@ -61,15 +61,16 @@
"cross-env": "^7.0.0",
"dumi": "^1.1.0",
"eslint": "^7.0.0",
"father": "^2.22.0",
"father-build": "^1.18.6",
"father": "^4.0.0",
"gh-pages": "^3.1.0",
"less": "^3.10.3",
"np": "^6.0.0",
"rc-test": "^7.0.14",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"regenerator-runtime": "^0.13.7",
"typescript": "^4.0.5"
"typescript": "^4.0.5",
"@rc-component/father-plugin": "^1.0.0"
},
"peerDependencies": {
"react": ">=16.9.0",
Expand Down
16 changes: 11 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@
"target": "esnext",
"moduleResolution": "node",
"baseUrl": "./",
"jsx": "preserve",
"jsx": "react",
"declaration": true,
"skipLibCheck": true,
"esModuleInterop": true,
"paths": {
"@/*": ["src/*"],
"@@/*": ["src/.umi/*"],
"rc-menu": ["src/index.tsx"]
"@/*": [
"src/*"
],
"@@/*": [
"src/.umi/*"
],
"rc-menu": [
"src/index.tsx"
]
}
}
}
}

0 comments on commit d98ed07

Please sign in to comment.