-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
3af9a0d
commit fca4bc3
Showing
20 changed files
with
9,078 additions
and
171 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,23 +1,9 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/npm-debug.log* | ||
/yarn-error.log | ||
/yarn.lock | ||
/package-lock.json | ||
|
||
# production | ||
/dist | ||
|
||
# misc | ||
.DS_Store | ||
|
||
# umi | ||
/.env.local | ||
/.umirc.local.ts | ||
/config/config.local.ts | ||
/src/.umi | ||
/src/.umi-production | ||
/src/.umi-test | ||
/.env.local | ||
|
||
*.exe | ||
assets.go | ||
/dist | ||
.swc |
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,2 @@ | ||
registry=https://registry.npmmirror.com/ | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,14 +1,10 @@ | ||
import { defineConfig } from 'umi'; | ||
import { defineConfig } from "umi"; | ||
|
||
export default defineConfig({ | ||
nodeModulesTransform: { | ||
type: 'none', | ||
}, | ||
history: { type: 'hash' }, //单页路由问题 | ||
routes: [ | ||
{ path: '/', component: '@/pages/index' }, | ||
{ path: '/about', component: '@/pages/about' }, | ||
{ path: "/", component: "index" }, | ||
{ path: "/docs", component: "docs" }, | ||
{ path: "/about", component: "about" }, | ||
], | ||
title: 'Demo', | ||
fastRefresh: {}, | ||
npmClient: 'pnpm', | ||
}); |
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 |
---|---|---|
@@ -1,39 +1,20 @@ | ||
{ | ||
"private": true, | ||
"author": "", | ||
"scripts": { | ||
"start": "umi dev", | ||
"dev": "umi dev", | ||
"build": "umi build", | ||
"postinstall": "umi generate tmp", | ||
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'", | ||
"test": "umi-test", | ||
"test:coverage": "umi-test --coverage", | ||
"go:build:win":"go generate && go build --tags withsource -ldflags \"-H windowsgui\"" | ||
}, | ||
"gitHooks": { | ||
"pre-commit": "lint-staged" | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx,less,md,json}": [ | ||
"prettier --write" | ||
], | ||
"*.ts?(x)": [ | ||
"prettier --parser=typescript --write" | ||
] | ||
"postinstall": "umi setup", | ||
"setup": "umi setup", | ||
"start": "npm run dev", | ||
"go:build:win": "go env -u GOOS && go run gen.go && go env -w GOOS=windows && go build --tags withsource -ldflags \"-H windowsgui\"" | ||
}, | ||
"dependencies": { | ||
"@ant-design/pro-layout": "^6.5.0", | ||
"react": "17.x", | ||
"react-dom": "17.x", | ||
"umi": "^3.5.26" | ||
"umi": "^4.0.81" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^17.0.0", | ||
"@types/react-dom": "^17.0.0", | ||
"@umijs/preset-react": "1.x", | ||
"@umijs/test": "^3.5.26", | ||
"lint-staged": "^10.0.7", | ||
"prettier": "^2.2.0", | ||
"typescript": "^4.1.2", | ||
"yorkie": "^2.0.0" | ||
"@types/react": "^18.2.22", | ||
"@types/react-dom": "^18.2.7", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
Oops, something went wrong.