Skip to content

Commit

Permalink
chore: mv deps to optional (#530)
Browse files Browse the repository at this point in the history
* chore: mv deps to optional

* chore: adjust adaptaer

* test: part test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* chore: clean up
  • Loading branch information
zombieJ authored Nov 20, 2022
1 parent 4958587 commit 7aadc82
Show file tree
Hide file tree
Showing 13 changed files with 3,480 additions and 3,340 deletions.
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module.exports = {
setupFiles: ['./tests/setup.js'],
snapshotSerializers: [require.resolve('enzyme-to-json/serializer')],
coveragePathIgnorePatterns: ['src/locale/'],
};
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@
"coverage": "father test --coverage",
"now-build": "npm run build"
},
"optionalDependencies": {
"date-fns": "2.x",
"dayjs": "1.x",
"moment": "^2.24.0"
},
"dependencies": {
"@babel/runtime": "^7.10.1",
"classnames": "^2.2.1",
"date-fns": "2.x",
"dayjs": "1.x",
"moment": "^2.24.0",
"rc-trigger": "^5.0.4",
"rc-util": "^5.4.0",
"shallowequal": "^1.1.0"
Expand All @@ -54,17 +56,13 @@
"@rc-component/father-plugin": "^1.0.0",
"@testing-library/react": "^12",
"@types/classnames": "^2.2.9",
"@types/enzyme": "^3.10.3",
"@types/jest": "^26.0.0",
"@types/react": "^17.0.11",
"@types/react-dom": "^17.0.8",
"@types/shallowequal": "^1.1.1",
"coveralls": "^3.0.6",
"cross-env": "^7.0.2",
"dumi": "^1.1.37",
"enzyme": "^3.0.0",
"enzyme-adapter-react-16": "^1.0.1",
"enzyme-to-json": "^3.4.0",
"eslint": "~7.32.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-jest": "^26.8.2",
Expand All @@ -79,7 +77,10 @@
"rc-test": "^7.0.9",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"typescript": "^4.0.3"
"typescript": "^4.0.3",
"date-fns": "2.x",
"dayjs": "1.x",
"moment": "^2.24.0"
},
"peerDependencies": {
"react": ">=16.9.0",
Expand Down
Loading

0 comments on commit 7aadc82

Please sign in to comment.