Skip to content

Commit

Permalink
feat: support to render demo with previewer
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed Sep 16, 2022
1 parent b58b379 commit d1bff34
Show file tree
Hide file tree
Showing 16 changed files with 778 additions and 127 deletions.
6 changes: 6 additions & 0 deletions .fatherrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@ export default defineConfig({
esm: {
input: 'src/client',
output: 'dist/client',
ignores: ['src/client/theme-default'],
overrides: {
'src/client/theme-default': {
output: 'theme-default',
},
},
},
});
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/node_modules
/examples/*/node_modules
/dist
/theme-default
.DS_Store
.umi
.umi-production
Expand Down
7 changes: 4 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist
compiled
*.yaml
/dist
/compiled
/theme-default
*.yaml
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"bin",
"dist",
"compiled",
"theme-default",
"theme.d.ts"
],
"scripts": {
Expand Down Expand Up @@ -86,7 +87,7 @@
"@umijs/test": "^4.0.9",
"cross-env": "^7.0.3",
"eslint": "^8.20.0",
"father": "^4.0.0-rc.8",
"father": "^4.0.3",
"husky": "^8.0.1",
"jest": "^27.0.0",
"lint-staged": "^13.0.3",
Expand All @@ -98,6 +99,10 @@
"ts-node": "^10.0.0",
"typescript": "~4.7.4"
},
"peerDependencies": {
"react": ">=16.8",
"react-dom": ">=16.8"
},
"packageManager": "[email protected]",
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit d1bff34

Please sign in to comment.