use netlify functions (#3882)
* use netlify functions * rm .gitignore key * fix build error * use new folder * change config * add redirects * add redirects * add router * remobe "/" * remove code * add tag * remove babel loader * rm firebase config * remove babel
Showing
.firebaserc
deleted
100644 → 0
firebase.json
deleted
100644 → 0
| { | ||
| "name": "ant-design-pro", | ||
| "version": "2.3.0", | ||
| "version": "2.3.1", | ||
| "private": true, | ||
| "description": "An out-of-box UI solution for enterprise applications", | ||
| "scripts": { | ||
| ... | ... | @@ -13,6 +13,9 @@ |
| "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", | ||
| "functions:build": "npm run generateMock && netlify-lambda build ./lambda", | ||
| "functions:run": "npm run generateMock && cross-env NODE_ENV=dev netlify-lambda serve ./lambda", | ||
| "generateMock": "node ./scripts/generateMock", | ||
| "lint": "eslint --ext .js src mock tests && npm run lint:style && npm run lint:prettier", | ||
| "lint-staged": "lint-staged", | ||
| "lint-staged:js": "eslint --ext .js", | ||
| ... | ... | @@ -20,8 +23,6 @@ |
| "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", | ||
| ... | ... | @@ -30,20 +31,39 @@ |
| "tslint": "npm run tslint:fix", | ||
| "tslint:fix": "tslint --fix 'src/**/*.ts*'" | ||
| }, | ||
| "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" | ||
| ] | ||
| }, | ||
| "browserslist": [ | ||
| "> 1%", | ||
| "last 2 versions", | ||
| "not ie <= 10" | ||
| ], | ||
| "dependencies": { | ||
| "@antv/data-set": "^0.10.1", | ||
| "@babel/runtime": "^7.3.1", | ||
| "antd": "^3.13.0", | ||
| "bizcharts": "^3.4.3", | ||
| "bizcharts-plugin-slider": "^2.1.1-beta.1", | ||
| "classnames": "^2.2.6", | ||
| "dva": "^2.4.1", | ||
| "enquire-js": "^0.2.1", | ||
| "express": "^4.16.4", | ||
| "gg-editor": "^2.0.2", | ||
| "lodash": "^4.17.11", | ||
| "lodash-decorators": "^6.0.1", | ||
| "memoize-one": "^5.0.0", | ||
| "moment": "^2.24.0", | ||
| "netlify-lambda": "^1.4.3", | ||
| "numeral": "^2.0.6", | ||
| "nzh": "^1.0.4", | ||
| "omit.js": "^1.0.0", | ||
| ... | ... | @@ -58,6 +78,7 @@ |
| "react-dom": "^16.7.0", | ||
| "react-fittext": "^1.0.0", | ||
| "react-media": "^1.9.2", | ||
| "serverless-http": "^1.9.1", | ||
| "umi": "^2.4.4", | ||
| "umi-plugin-react": "^1.7.2", | ||
| "umi-request": "^1.0.5" | ||
| ... | ... | @@ -110,24 +131,6 @@ |
| "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" | ||
| ] | ||
| }, | ||
| "browserslist": [ | ||
| "> 1%", | ||
| "last 2 versions", | ||
| "not ie <= 10" | ||
| ], | ||
| "checkFiles": [ | ||
| "src/**/*.js*", | ||
| "src/**/*.ts*", | ||
| ... | ... |
Please register or sign in to comment