generated from react-component/switch
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
63 additions
and
21,218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
// more config: https://d.umijs.org/config | ||
import { defineConfig } from 'dumi'; | ||
|
||
const basePath = process.env.GH_PAGES ? '/footer/' : '/'; | ||
const publicPath = process.env.GH_PAGES ? '/footer/' : '/'; | ||
|
||
export default defineConfig({ | ||
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'], | ||
favicons: [ | ||
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4', | ||
], | ||
themeConfig: { | ||
name: 'rc-footer', | ||
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4', | ||
name: 'Footer', | ||
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4' | ||
}, | ||
outputPath: '.doc', | ||
exportStatic: {}, | ||
base: '/footer/', | ||
publicPath: '/footer/', | ||
hash: true, | ||
styles: [ | ||
` | ||
.markdown table { | ||
width: auto !important; | ||
} | ||
`, | ||
], | ||
base: basePath, | ||
publicPath, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx pretty-quick --staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
module.exports = { | ||
snapshotSerializers: [require.resolve('enzyme-to-json/serializer')], | ||
}; | ||
import { createConfig, type Config } from '@umijs/test'; | ||
|
||
const defaultConfig = createConfig({ | ||
target: 'browser', | ||
}); | ||
|
||
const config: Config.InitialOptions = { | ||
...defaultConfig, | ||
setupFilesAfterEnv: [ | ||
...(defaultConfig.setupFilesAfterEnv || []), | ||
'./tests/setupFilesAfterEnv.ts' | ||
], | ||
} | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.