Commit Graph

110 Commits

Author SHA1 Message Date
vagusX
acdd164a09
ci: use jest shard (#35622) 2022-05-27 21:49:16 +08:00
Karott
338ec7dad7
perf: refactor devWarning for production code size (#35411)
* pref: better code style for production

* refactor `devWarning`

* don't use `useEffect` only wrap `devWarning`

* chore: add 'noop' to coverage

* chore: add test cases for devWarning

* chore: add test case

* chore: update test cases for devWarning

* chore: restore test script command

* fix: remove 'throw new Error'

* should not use `throw` for browser

* chore: update test case for AutoComplete

* perf: add prefix for `devWarning`

* update RegExp for UMD

* add prefix for ES and CJS

* chore: better code style

* perf:

* upgrade antd-tools

* remove `injectWarningCondition`

* rename `devWarning` to `warning`

* chore: better code style

* chore: better code style

* chore: restore hasValidName
2022-05-10 15:43:29 +08:00
afc163
bcb5002f08 chore: fix ci in npm 8 2021-12-04 00:01:20 +08:00
afc163
6d3973fb95
chore(deps-dev): bump eslint-plugin-jest from 24.7.0 to 25.0.1 (#32444)
* chore(deps-dev): bump eslint-plugin-jest from 24.7.0 to 25.0.1

Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 24.7.0 to 25.0.1.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v24.7.0...v25.0.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: fix eslint errors and warnings

* fix rc-slider version

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-12 13:14:26 +08:00
二货机器人
272ff9885a
fix: Cascader missing props (#32143)
* fix: Cascader deps

* docs: Update using new API

* test: Test case cover

* chore: compressed skip dup check
2021-09-13 15:59:57 +08:00
二货机器人
36bcaaef85
Add variable.less to support css variable (#31496)
* chore: use varaible.less

* chore: basic primary varaible

* chore: Move to variable

* chore: align active color

* chore: global fix of css variable

* chore: primary colors

* chore: button danger

* chore: btn default error color

* chore: button series

* chore: More examples

* chore: More components

* chore: Form demo

* chore: form style

* fix: Tag & Alert variable

* chore: update footer

* chore: rm tmp code

* chore: transfer

* fix: picker column active color

* chore: Adjust active bg color

* chore: table hover color

* chore: all css variables

* chore: Global using variables

* chore: Test case

* chore: Update test logic

* chore: back of default less

* chore: entry of site use proxy style

* chore: update entry

* chore: split of variables

* refactor: quick dist speed

* fix: site use variable version

* chore: Update less config

* chore: add mv script

* chore: Update repalcement script

* chore: Add inject variables

* chore: Update script

* fix: script path

* chore: Move to component instead

* chore: fix condition

* chore: update config

* chore: Update in less transform

* chore: Modify logic

* chore: change to variables

* chore: Update name

* fix: script name

* chore: do inject

* revert: back of path

* chore: 2 way of generate

* bump tools

* chore: Add auto replacement script

* chore: auto genrate less file

* chore: fix test

* test: More test case

* chore: Update limit config

* test: coverage

* docs: Update doc
2021-09-01 10:56:50 +08:00
afc163
70699fc711
chore: add duplicate-package-checker-webpack-plugin (#31662)
* chore: fix deps

* test: add duplicate-package-checker-webpack-plugin

* test: should be broken

* try webpack --bail

* bail when emit error

* revert rc-image
2021-08-05 15:30:03 +08:00
afc163
9f0dbf2b4d
chore: upgrade to jest 27 (#30783)
* chore: upgrade devDeps

* upgrade @ant-design/tools

* support  CSS Minification

* test: jsdom as testEnvironment

* fix setImmediate

* update snapshot

* fix test

* fix test

* fix test

* fix test
2021-06-01 10:11:24 +08:00
afc163
8e76c1c5ae
chore: fix debug demo of site (#30427)
* chore: fix debug demo of site

* upgrade bisheng

* upgrade bisheng
2021-05-07 15:29:08 +08:00
偏右
e3214c896f
chore: use esbuild-loader (#28859)
* chore: use esbuild-loader

* fix config
2021-01-14 15:32:16 +08:00
信鑫-King
9b6db94fdf
chore: esbuild target (#26357)
* chore: esbuild target

* Update bisheng.config.js

* fix lint

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2020-08-24 11:46:21 +08:00
偏右
3d58b5a6b4
test: 📦 add compressed-size-action (#25902) 2020-07-30 17:47:27 +08:00
Viorel Cojocaru
f507a21c37
Fix relative-ci setup (#25523)
* build: Send stats to relative-ci only on minified compilation

Prevent duplicate job for every push

* build: Remove unnecessary bundle-stats option
2020-07-09 10:27:32 +08:00
偏右
71447da264
perf: 🆙 upgrade to omit.js@2.0.2 (#25507)
* 🆙 upgrade to omit.js@2.0.2

* remove unused dep

* fix ci

* 🆙 upgrade rc-mentions
2020-07-08 23:14:22 +08:00
偏右
17dd94fd07
chore: 📦 Add bundle-stats and relative-ci (#25501)
* 📦 Add bundle-stats and relative-ci

* bundle-stats-webpack-plugin
2020-07-08 18:12:02 +08:00
偏右
637aa09bc5
chore: fix some eslint problems (#24836)
* 💄 fix lint

* 💄 fix lint
2020-06-08 18:01:50 +08:00
偏右
6529d9048f
📦 use ESBUILD in codesandbox ci (#24685) 2020-06-02 14:57:29 +08:00
afc163
688f8a3ab0 fix .bundle-analyzerrc.json 2020-05-22 19:09:59 +08:00
偏右
1e11c83e74
test: add @bundle-analyzer/webpack-plugin (#24399)
* add @bundle-analyzer/webpack-plugin

* add .bundle-analyzerrc

* use process.env.BUNDLE_ANALYZER_TOKEN

* more dist files

* fix ci fail
2020-05-22 18:46:03 +08:00
二货机器人
2afab58ac8
chore: small bundle size follow up (#24164)
* update config

* replace react function

* fix alert
2020-05-14 20:54:49 +08:00
二货机器人
2e284aa017
chore: small bundle size (#24135)
* update warning

* rm warning

* replace with dev warning

* fix test

* fix site

* Update webpack.config.js

Co-authored-by: 偏右 <afc163@gmail.com>

* Update webpack.config.js

* fix sytax

* adjust

* move into function

Co-authored-by: 偏右 <afc163@gmail.com>
2020-05-14 15:57:04 +08:00
afc163
6093f11cf0 chore: wrong env variable in build 2020-05-13 17:14:49 +08:00
偏右
612bcdf4a6
refactor: 📦 use webpack-plugin-esbuild (#23930)
* 📦 use webpack-plugin-esbuild

* rename esbuild-webpack-plugin

* fix npm run dist error

* fix npm run dist error

* code style improve

* remove extra finalizeDist

* Add process.env.ESBUILD
2020-05-08 15:48:21 +08:00
偏右
c27a3a40a7
chore: 📦 Optimize npm package size (#23698)
* improve custom theme import path

* reduce npm package size
2020-04-28 14:11:43 +08:00
偏右
2f091e7dfb
chore: fix packtracker token (#22942)
* chore: fix packtracker token

* change prior_commit

* 🗑️ remove packtracker webpack plugin
2020-04-05 21:44:41 +08:00
zefeng
dda45e4796
feat: support compact theme (#22126)
* feat: support narrow theme mode

* chore: rename narrow to compact

* chore: height part

* chore: preview compact mode

* chore: to make site corrected

* chore: preview site

* docs: 📖 document compact theme usage

* docs: tweak theme doc

* docs: 📖 Add description about double css bundle size

* chore: preview

* chore: for preview

* chore: adjust pagination

* chore: compact mode done!

* chore: remove useless todo

* chore: fix review bug

* chore: fix review bug

* chore: fix card margin

* chore: fix review bug

* chore: fix review bug

* chore: improve i18n and transition

* Update site/theme/static/common.less

Co-Authored-By: 偏右 <afc163@gmail.com>

* chore: fix button size and description padding

* chore: update snapshots

* chore: add compact css bundlesize limit

* chore: compact dist support

Co-authored-by: afc163 <afc163@gmail.com>
2020-03-29 10:39:46 +08:00
二货机器人
18969f5089
Update webpack.config.js 2020-03-27 12:57:37 +08:00
afc163
30a3c327ae 🔧 do not fail build in PacktrackerPlugin 2020-03-03 15:36:09 +08:00
偏右
3eb5e9f908
test: fix packtracker token (#21805) 2020-03-03 13:20:29 +08:00
ycjcl868
7ff2c7c079 fix: lint 2019-12-26 15:25:46 +08:00
ycjcl868
4dc860decf Merge origin/4.0-prepare into feat-dark-palette 2019-12-25 19:32:38 +08:00
偏右
2464de1888
perf: optimize bundlesize (#20436)
* 📦 react-slick => @ant-design/react-slick

* 📦 Reduce non-minified dist files size

* 🆙 @ant-design/react-slick
2019-12-25 17:15:35 +08:00
二货机器人
193bf0f6b4
add analysis (#20434) 2019-12-25 15:18:31 +08:00
ycjcl868
d80d65f3a4 fix: lint 2019-12-18 23:05:37 +08:00
ycjcl868
2aa9ab6791 chore: use dark-vars.js 2019-12-18 22:42:09 +08:00
PeachScript
9fc3afe205 fix: dark css dist error caused by variables 2019-12-18 21:07:14 +08:00
PeachScript
88ca556fe5 build: rename css dist file for dark theme 2019-12-06 15:02:12 +08:00
PeachScript
c7c5e43e6d build: add entry to dist css files for the dark theme 2019-12-06 11:22:47 +08:00
Wei Zhu
4cae32842f chore: add packtracker back 2019-11-18 13:00:46 +08:00
Wei Zhu
26b9e1f887 test: introduce codesandbox ci (#19721)
* introduce codesandbox ci

* set skipLibCheck temporarilly

* remove packtracker temporarilly

* debug env
2019-11-16 11:39:13 +08:00
afc163
60e66dbafe 🐛 fix error antd-tools => @ant-design/tools 2019-08-01 15:28:16 +08:00
afc163
014d32001c
fix packtracker exclude_assets 2019-06-05 22:18:45 +08:00
afc163
6e80b275a5
Fix ci 2019-06-05 21:50:51 +08:00
afc163
2db4081f67
🔧 ignore other files for packtracker 2019-06-05 15:47:24 +08:00
afc163
ce4b71c71f
🔧 Add packtracker 2019-06-02 20:09:27 +08:00
zombiej
e2ec0c2b48 update antd-tools & bisheng version 2018-12-11 17:43:05 +08:00
陈帅
dca9715186 support prettier 2018-12-07 18:27:30 +08:00
afc163
83c192ea3e
💄 fix eslint problems 2018-11-28 15:11:02 +08:00
afc163
86e801ce37
️ Upgrade some details of docs and code style 2018-11-28 12:33:09 +08:00
afc163
4647d46c22
🔧 Use webpackbar in antd-tools and bisheng 2018-11-10 12:42:11 +08:00