use umi-request (#3883)
* use umi-request * use data repalce to body
Showing
{ | { | ||
"name": "ant-design-pro", | "name": "ant-design-pro", | ||
"version": "2.3.0", | "version": "2.3.0", | ||
"description": "An out-of-box UI solution for enterprise applications", | |||
"private": true, | "private": true, | ||
"description": "An out-of-box UI solution for enterprise applications", | |||
"scripts": { | "scripts": { | ||
"presite": "cd functions && npm install", | |||
"start": "cross-env APP_TYPE=site umi dev", | |||
"start:no-mock": "cross-env MOCK=none umi dev", | |||
"build": "umi build", | |||
"site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy && npm run docker:push", | |||
"analyze": "cross-env ANALYZE=1 umi build", | "analyze": "cross-env ANALYZE=1 umi build", | ||
"lint:style": "stylelint 'src/**/*.less' --syntax less", | "build": "umi build", | ||
"lint:prettier": "check-prettier lint", | "docker-hub:build": "docker build -f Dockerfile.hub -t ant-design-pro ./", | ||
"docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build", | |||
"docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up", | |||
"docker:build": "docker-compose -f ./docker/docker-compose.dev.yml build", | |||
"docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up", | |||
"docker:push": "npm run docker-hub:build && npm run docker:tag && docker push antdesign/ant-design-pro", | |||
"docker:tag": "docker tag ant-design-pro antdesign/ant-design-pro", | |||
"lint": "eslint --ext .js src mock tests && npm run lint:style && npm run lint:prettier", | "lint": "eslint --ext .js src mock tests && npm run lint:style && npm run lint:prettier", | ||
"lint:fix": "eslint --fix --ext .js src mock tests && stylelint --fix 'src/**/*.less' --syntax less", | |||
"lint-staged": "lint-staged", | "lint-staged": "lint-staged", | ||
"lint-staged:js": "eslint --ext .js", | "lint-staged:js": "eslint --ext .js", | ||
"tslint": "npm run tslint:fix", | "lint:fix": "eslint --fix --ext .js src mock tests && stylelint --fix 'src/**/*.less' --syntax less", | ||
"tslint:fix": "tslint --fix 'src/**/*.ts*'", | "lint:prettier": "check-prettier lint", | ||
"lint:style": "stylelint 'src/**/*.less' --syntax less", | |||
"prettier": "node ./scripts/prettier.js", | |||
"presite": "cd functions && npm install", | |||
"site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy && npm run docker:push", | |||
"start": "cross-env APP_TYPE=site umi dev", | |||
"start:no-mock": "cross-env MOCK=none umi dev", | |||
"test": "umi test", | "test": "umi test", | ||
"test:component": "umi test ./src/components", | |||
"test:all": "node ./tests/run-tests.js", | "test:all": "node ./tests/run-tests.js", | ||
"prettier": "node ./scripts/prettier.js", | "test:component": "umi test ./src/components", | ||
"docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up", | "tslint": "npm run tslint:fix", | ||
"docker:build": "docker-compose -f ./docker/docker-compose.dev.yml build", | "tslint:fix": "tslint --fix 'src/**/*.ts*'" | ||
"docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up", | |||
"docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build", | |||
"docker-hub:build": "docker build -f Dockerfile.hub -t ant-design-pro ./", | |||
"docker:tag": "docker tag ant-design-pro antdesign/ant-design-pro", | |||
"docker:push": "npm run docker-hub:build && npm run docker:tag && docker push antdesign/ant-design-pro" | |||
}, | }, | ||
"dependencies": { | "dependencies": { | ||
"@antv/data-set": "^0.10.1", | "@antv/data-set": "^0.10.1", | ||
... | @@ -40,7 +40,6 @@ | ... | @@ -40,7 +40,6 @@ |
"dva": "^2.4.1", | "dva": "^2.4.1", | ||
"enquire-js": "^0.2.1", | "enquire-js": "^0.2.1", | ||
"gg-editor": "^2.0.2", | "gg-editor": "^2.0.2", | ||
"hash.js": "^1.1.7", | |||
"lodash": "^4.17.11", | "lodash": "^4.17.11", | ||
"lodash-decorators": "^6.0.1", | "lodash-decorators": "^6.0.1", | ||
"memoize-one": "^5.0.0", | "memoize-one": "^5.0.0", | ||
... | @@ -60,7 +59,8 @@ | ... | @@ -60,7 +59,8 @@ |
"react-fittext": "^1.0.0", | "react-fittext": "^1.0.0", | ||
"react-media": "^1.9.2", | "react-media": "^1.9.2", | ||
"umi": "^2.4.4", | "umi": "^2.4.4", | ||
"umi-plugin-react": "^1.7.2" | "umi-plugin-react": "^1.7.2", | ||
"umi-request": "^1.0.5" | |||
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"@types/history": "^4.7.2", | "@types/history": "^4.7.2", | ||
... | @@ -107,16 +107,21 @@ | ... | @@ -107,16 +107,21 @@ |
"optionalDependencies": { | "optionalDependencies": { | ||
"puppeteer": "^1.12.1" | "puppeteer": "^1.12.1" | ||
}, | }, | ||
"engines": { | |||
"node": ">=8.0.0" | |||
}, | |||
"husky": { | |||
"hooks": { | |||
"pre-commit": "npm run lint-staged" | |||
} | |||
}, | |||
"lint-staged": { | "lint-staged": { | ||
"**/*.less": "stylelint --syntax less", | |||
"**/*.{js,jsx}": "npm run lint-staged:js", | |||
"**/*.{js,ts,tsx,json,jsx,less}": [ | "**/*.{js,ts,tsx,json,jsx,less}": [ | ||
"node ./scripts/lint-prettier.js", | "node ./scripts/lint-prettier.js", | ||
"git add" | "git add" | ||
], | ] | ||
"**/*.{js,jsx}": "npm run lint-staged:js", | |||
"**/*.less": "stylelint --syntax less" | |||
}, | |||
"engines": { | |||
"node": ">=8.0.0" | |||
}, | }, | ||
"browserslist": [ | "browserslist": [ | ||
"> 1%", | "> 1%", | ||
... | @@ -129,10 +134,5 @@ | ... | @@ -129,10 +134,5 @@ |
"src/**/*.less", | "src/**/*.less", | ||
"config/**/*.js*", | "config/**/*.js*", | ||
"scripts/**/*.js" | "scripts/**/*.js" | ||
], | ] | ||
"husky": { | |||
"hooks": { | |||
"pre-commit": "npm run lint-staged" | |||
} | |||
} | |||
} | } |
Please register or sign in to comment