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