Skip to content

Commit 476604d

Browse files
authored
chore: update to use rc-test & father@4 (#611)
* chore: update rc-test * chore: update father * chore: update ci * test: part * test: part * test: part * test: part * test: part * chore: tmp * test: more * test: more * test: more * test: more * test: more * chore: tmp * chore: tmp * chore: clean up * test: more * chore: clean up * test: part * test: part * chore: clean up * chore: bump ci * chore: bump ci * chore: bump ci * docs: use dumi2 * chore: tmp file * chore: bump ci * chore: fix now * chore: bump co * chore: rm npm ci * test: rm umi test * chore: back of ci
1 parent 188e23c commit 476604d

Some content is hidden

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

46 files changed

+662
-634
lines changed

.dumirc.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { defineConfig } from 'dumi';
2+
import path from 'path';
3+
4+
const isProdSite =
5+
// 不是预览模式 同时是生产环境
6+
process.env.PREVIEW !== 'true' && process.env.NODE_ENV === 'production';
7+
8+
const name = 'field-form';
9+
10+
export default defineConfig({
11+
alias: {
12+
'rc-field-form$': path.resolve('src'),
13+
'rc-field-form/es': path.resolve('src'),
14+
},
15+
mfsu: false,
16+
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
17+
themeConfig: {
18+
name: 'FieldForm',
19+
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
20+
},
21+
base: isProdSite ? `/${name}/` : '/',
22+
publicPath: isProdSite ? `/${name}/` : '/',
23+
});

.fatherrc.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
export default {
2-
cjs: 'babel',
3-
esm: { type: 'babel', importLibToEs: true },
4-
runtimeHelpers: true,
5-
preCommit: {
6-
eslint: true,
7-
prettier: true,
8-
},
9-
};
1+
import { defineConfig } from 'father';
2+
3+
export default defineConfig({
4+
plugins: ['@rc-component/father-plugin'],
5+
});

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- uses: actions/setup-node@v1
1717
with:
18-
node-version: '12'
18+
node-version: '16'
1919

2020
- name: cache package-lock.json
2121
uses: actions/cache@v2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@
2525
.umi-production
2626
.umi-test
2727
.env.local
28+
.dumi/

.umirc.ts

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

docs/demo/basic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
## basic
22

33

4-
<code src="../examples/basic.tsx" />
4+
<code src="../examples/basic.tsx"></code>

docs/demo/component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## component
22

3-
<code src="../examples/component.tsx" />
3+
<code src="../examples/component.tsx"></code>

docs/demo/context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## context
22

3-
<code src="../examples/context.tsx" />
3+
<code src="../examples/context.tsx"></code>

docs/demo/deps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
## deps
22

33

4-
<code src="../examples/deps.tsx" />
4+
<code src="../examples/deps.tsx"></code>

docs/demo/initialValues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
## initialValues
22

33

4-
<code src="../examples/initialValues.tsx" />
4+
<code src="../examples/initialValues.tsx"></code>

0 commit comments

Comments
 (0)