Skip to content

Commit 4bfcb6b

Browse files
committed
chore: migrate build pipeline to tsdown + Vite
Library build: replace tsc + webpack + gulp with tsdown - tsdown.config.ts: ESM (es/) + CJS (lib/) unbundled builds with .d.ts - scripts/build-styles.js: replaces gulpfile.js using sass + postcss APIs - scss-to-css plugin rewrites .scss imports to .css (replaces generate-style.js) - inject-style-imports.js reads from style/index.js instead of style/css.js - Drop UMD bundle (dist/tiny.js) Site: replace webpack with Vite - site/vite.config.ts with @mdx-js/rollup v3, remark-gfm, rehype-mdx-code-props - MDX v3 compat: PascalCase custom tags, escape braces in tables, remove HTML comments - Replace require() asset imports with ESM imports + import.meta.glob - Remove babel.config.js and all webpack/babel devDependencies Delete: tsconfig.cjs.json, tsconfig.esm.json, webpack.config.js, scripts/gulpfile.js, scripts/generate-style.js, babel.config.js, site/config/webpack.{common,dev,prod}.js
1 parent c9b4728 commit 4bfcb6b

490 files changed

Lines changed: 9896 additions & 14284 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

babel.config.js

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

components/alert/demo/basic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<demo>
1+
<Demo>
22

33
### Basic
44

@@ -8,4 +8,4 @@ The simplest usage for short messages.
88
<Alert>Info alert</Alert>;
99
```
1010

11-
</demo>
11+
</Demo>

components/alert/demo/closable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<demo>
1+
<Demo>
22

33
### Closable
44

@@ -13,4 +13,4 @@ Display a close button to allow to close the alert. Also, it is a smooth unmount
1313
</>
1414
```
1515

16-
</demo>
16+
</Demo>

components/alert/demo/close-btn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<demo>
1+
<Demo>
22

33
### Customized Close Text
44

@@ -8,4 +8,4 @@ Replace the default icon with customized text.
88
<Alert closeText="close now">Info alert</Alert>;
99
```
1010

11-
</demo>
11+
</Demo>

components/alert/demo/icon.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<demo>
1+
<Demo>
22

33
### With icon
44

@@ -18,4 +18,4 @@ A relevant icon will make information clearer and more friendly. Use `iconSize`
1818
</>
1919
```
2020

21-
</demo>
21+
</Demo>

components/alert/demo/title.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<demo>
1+
<Demo>
22

33
### Title
44

@@ -10,4 +10,4 @@ Additional title for alert message.
1010
</Alert>
1111
```
1212

13-
</demo>
13+
</Demo>

components/alert/demo/type.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<demo>
1+
<Demo>
22

33
### More types
44

@@ -13,4 +13,4 @@ There are 4 types of Alert: `success`, `info`, `warning`, `error`. The default t
1313
</>
1414
```
1515

16-
</demo>
16+
</Demo>

components/alert/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ import { Alert } from 'tiny-ui';
2222

2323
## Examples
2424

25-
<layout>
26-
<column>
25+
<Layout>
26+
<Column>
2727
<Basic/>
2828
<Closable/>
2929
<Icon/>
30-
</column>
31-
<column>
30+
</Column>
31+
<Column>
3232
<Type/>
3333
<Title/>
3434
<CloseButton/>
35-
</column>
36-
</layout>
35+
</Column>
36+
</Layout>
3737

3838
## API
3939

components/alert/index.zh_CN.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ import { Alert } from 'tiny-ui';
2222

2323
## 代码示例
2424

25-
<layout>
26-
<column>
25+
<Layout>
26+
<Column>
2727
<Basic/>
2828
<Closable/>
2929
<Icon/>
30-
</column>
31-
<column>
30+
</Column>
31+
<Column>
3232
<Type/>
3333
<Title/>
3434
<CloseButton/>
35-
</column>
36-
</layout>
35+
</Column>
36+
</Layout>
3737

3838
## API
3939

components/anchor/demo/affix.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<demo>
1+
<Demo>
22

33
### Affix
44

@@ -42,4 +42,4 @@ Set `affix` to enable sticky positioning.
4242
}
4343
```
4444

45-
</demo>
45+
</Demo>

0 commit comments

Comments
 (0)