ant-design-blazor/scripts/migrator
zhaowenkai 9446064dfd gen theme tokens 2024-07-18 18:00:09 +08:00
..
Components.ts migrate ModalConfirm component 2024-07-17 15:08:09 +08:00
CsBuilder.ts gen component styles 2023-12-15 18:12:21 +08:00
README.md ## Migration 2024-07-07 21:11:11 +08:00
StyleTests.ts gen component style unit tests 2024-07-12 17:02:13 +08:00
Token.ts gen theme tokens 2024-07-18 18:00:09 +08:00
TsConverter.ts gen component styles 2023-12-15 18:12:21 +08:00
Util.ts gen component style unit tests 2024-07-12 17:02:13 +08:00
index.ts Fix styles that unit tests can't pass 2024-07-15 18:12:54 +08:00
token_compact.json gen theme tokens 2024-07-18 18:00:09 +08:00
token_dark.json gen theme tokens 2024-07-18 18:00:09 +08:00
token_default.json gen theme tokens 2024-07-18 18:00:09 +08:00

README.md

Css Migrator

Migrator can migrate antd style to v5.

Usage

In the root dir, exec migrate command.

npm run migrate:v5

Config

const config = {
    version: '5.11.4',
    gitHash: '3fbed04e4b03ef1754a78a9245a2bb59f8b72fd1',
    remotePath: 'https://github.com/ant-design/ant-design.git',
    localPath: '../ant-design'
}
Property Description
version release version of antd, for display purposes only.
gitHash git hash of specified version.
remotePath antd git url.
localPath local path to save antd code.

If you want to specify the version, change the githash. Migrator will check out the code specified githash in the configuration.

Cssincs Converter

Converter use ast to parse ts code, and convert it to csharp. You can check the ast with ast viewer.