Browse Source

no message

master
xpz2018 10 months ago
parent
commit
31cd1ce2aa
7 changed files with 5 additions and 29 deletions
  1. 4
      .env
  2. 6
      .husky/commit-msg
  3. 9
      .husky/common.sh
  4. 8
      .husky/pre-commit
  5. 1
      package.json
  6. 4
      pushOss.js
  7. 2
      src/enums/appEnum.ts

4
.env

@ -2,7 +2,7 @@
VITE_PORT = 3100 VITE_PORT = 3100
# spa-title # spa-title
VITE_GLOB_APP_TITLE = 婚介管理后台
VITE_GLOB_APP_TITLE = 招亲宝管理后台
# spa shortname # spa shortname
VITE_GLOB_APP_SHORT_NAME = dating_agency_opr
VITE_GLOB_APP_SHORT_NAME = dating_operation_opr

6
.husky/commit-msg

@ -1,6 +0,0 @@
#!/bin/sh
# shellcheck source=./_/husky.sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install commitlint --edit "$1"

9
.husky/common.sh

@ -1,9 +0,0 @@
#!/bin/sh
command_exists () {
command -v "$1" >/dev/null 2>&1
}
# Workaround for Windows 10, Git Bash and Yarn
if command_exists winpty && test -t 1; then
exec < /dev/tty
fi

8
.husky/pre-commit

@ -1,8 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"
[ -n "$CI" ] && exit 0
# Format and submit code according to lintstagedrc.js configuration
npm run lint:lint-staged

1
package.json

@ -24,7 +24,6 @@
"test:gzip": "npx http-server dist --cors --gzip -c-1", "test:gzip": "npx http-server dist --cors --gzip -c-1",
"test:br": "npx http-server dist --cors --brotli -c-1", "test:br": "npx http-server dist --cors --brotli -c-1",
"reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", "reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && npm run bootstrap",
"prepare": "husky install",
"gen:icon": "esno ./build/generate/icon/index.ts", "gen:icon": "esno ./build/generate/icon/index.ts",
"postbuild:dev": "yarn oss dev", "postbuild:dev": "yarn oss dev",
"postbuild:test": "yarn oss test", "postbuild:test": "yarn oss test",

4
pushOss.js

@ -6,10 +6,10 @@ new WebpackAliyunOss({
from: ['./dist/**'], from: ['./dist/**'],
dist: '/', dist: '/',
overwrite: true, overwrite: true,
region: 'oss-cn-shenzhen',
region: 'oss-cn-guangzhou',
accessKeyId: ifProd ? 'LTAI5tK6dDnADdj1mgS6X9oa' : 'LTAINmC91NqIGN38', accessKeyId: ifProd ? 'LTAI5tK6dDnADdj1mgS6X9oa' : 'LTAINmC91NqIGN38',
accessKeySecret: ifProd ? 'fxg0tBxHj9gCGikaDXUmWj8pC9IrVu' : 'Hh10dQPjq1jMLLSpbDAR05ZzR3nXsU', accessKeySecret: ifProd ? 'fxg0tBxHj9gCGikaDXUmWj8pC9IrVu' : 'Hh10dQPjq1jMLLSpbDAR05ZzR3nXsU',
bucket: `dating-agency-opr${ifProd ? '-prod' : '-test'}`,
bucket: `dating-clue-opr${ifProd ? '-prod' : '-test'}`,
setOssPath(filePath) { setOssPath(filePath) {
let index = filePath.lastIndexOf('dist') let index = filePath.lastIndexOf('dist')
let Path = filePath.substring(index + 4, filePath.length) let Path = filePath.substring(index + 4, filePath.length)

2
src/enums/appEnum.ts

@ -2,7 +2,7 @@ export const SIDE_BAR_MINI_WIDTH = 48
export const SIDE_BAR_SHOW_TIT_MINI_WIDTH = 80 export const SIDE_BAR_SHOW_TIT_MINI_WIDTH = 80
// 应用id // 应用id
export const APP_ID = '50325897884795881'
export const APP_ID = '50325897884795884'
export enum ContentEnum { export enum ContentEnum {
// auto width // auto width

Loading…
Cancel
Save