Commit 8e43737e authored by huanglu's avatar huanglu

feat: 添加git提交校验,并完善

parent 9233dbcd
{
"types": ["feat", "fix", "docs", "style", "refactor", "perf", "test", "build", "ci", "chore", "revert"],
"scope": {
"required": false,
"allowed": ["*"],
"validate": false,
"multiple": false
},
"warnOnFail": false,
"maxSubjectLength": 100,
"subjectPattern": ".+",
"subjectPatternErrorMsg": "subject does not match subject pattern!",
"helpMessage": "",
"autoFix": false
}
\ No newline at end of file
...@@ -91,3 +91,21 @@ export default <DvaModel<CommonModels>> { ...@@ -91,3 +91,21 @@ export default <DvaModel<CommonModels>> {
- src/pages 目录下放置小程序的页面文件 - src/pages 目录下放置小程序的页面文件
- src/subpages 目录下放置小程序的分包的目录 - src/subpages 目录下放置小程序的分包的目录
- package.json 文件下 的 fastgeek 字段的值 不要删除,很重要,在 使用 fastgeek 进行编译和部署时,会使用到 - package.json 文件下 的 fastgeek 字段的值 不要删除,很重要,在 使用 fastgeek 进行编译和部署时,会使用到
```
"build:weapp": "taro build --type weapp",
"build:swan": "taro build --type swan",
"build:alipay": "taro build --type alipay",
"build:tt": "taro build --type tt",
"build:h5": "taro build --type h5",
"build:rn": "taro build --type rn",
"build:qq": "taro build --type qq",
"build:quickapp": "taro build --type quickapp",
"dev:weapp": "npm run build:weapp -- --watch",
"dev:swan": "npm run build:swan -- --watch",
"dev:alipay": "npm run build:alipay -- --watch",
"dev:tt": "npm run build:tt -- --watch",
"dev:h5": "npm run build:h5 -- --watch",
"dev:rn": "npm run build:rn -- --watch",
"dev:qq": "npm run build:qq -- --watch",
```
\ No newline at end of file
...@@ -80,13 +80,6 @@ const config = { ...@@ -80,13 +80,6 @@ const config = {
} }
} }
}, },
geekProxy: {
"/service-profile": {
target: "http://192.168.32.35:3000/",
logLevel: "debug",
changeOrigoin: true,
},
},
proType: 'taro' proType: 'taro'
} }
......
module.exports = { module.exports = {
'/addCart': (req, res, next) => { '/addCart': (req, res, next) => {
res.json({ return {
code: 0, code: 0,
message: 'sssfsff' message: 'sssfsff'
}) }
} }
} }
\ No newline at end of file
...@@ -17,5 +17,6 @@ module.exports = { ...@@ -17,5 +17,6 @@ module.exports = {
'GET /config': { 'GET /config': {
version: '1.1.10' version: '1.1.10'
} }
} },
"carss": cart
} }
\ No newline at end of file
...@@ -10,16 +10,21 @@ ...@@ -10,16 +10,21 @@
}, },
"fastgeek": "taro", "fastgeek": "taro",
"scripts": { "scripts": {
"build:weapp": "fastgeek taro build --platform weapp", "build:weapp": "taro build --type weapp",
"build:swan": "fastgeek taro build --platform swan", "build:swan": "taro build --type swan",
"build:alipay": "fastgeek taro build --platform alipay", "build:alipay": "taro build --type alipay",
"build:tt": "fastgeek taro build --platform tt", "build:tt": "taro build --type tt",
"build:h5": "fastgeek taro build --platform h5", "build:h5": "taro build --type h5",
"dev:swan": "fastgeek taro --platform swan", "build:rn": "taro build --type rn",
"dev:alipay": "fastgeek taro --platform alipay", "build:qq": "taro build --type qq",
"dev:tt": "fastgeek taro --platform tt", "build:quickapp": "taro build --type quickapp",
"dev:h5": "fastgeek taro --platform h5", "dev:weapp": "npm run build:weapp -- --watch",
"build": "npm run build:weapp", "dev:swan": "npm run build:swan -- --watch",
"dev:alipay": "npm run build:alipay -- --watch",
"dev:tt": "npm run build:tt -- --watch",
"dev:h5": "npm run build:h5 -- --watch",
"dev:rn": "npm run build:rn -- --watch",
"dev:qq": "npm run build:qq -- --watch",
"dev": "fastgeek taro --platform weapp" "dev": "fastgeek taro --platform weapp"
}, },
"author": "", "author": "",
...@@ -48,6 +53,7 @@ ...@@ -48,6 +53,7 @@
"regenerator-runtime": "0.11.1" "regenerator-runtime": "0.11.1"
}, },
"devDependencies": { "devDependencies": {
"ghooks": "^2.0.4",
"@tarojs/mini-runner": "2.2.3", "@tarojs/mini-runner": "2.2.3",
"@tarojs/webpack-runner": "2.2.3", "@tarojs/webpack-runner": "2.2.3",
"@types/dva": "^1.1.0", "@types/dva": "^1.1.0",
...@@ -75,6 +81,12 @@ ...@@ -75,6 +81,12 @@
"stylelint": "9.3.0", "stylelint": "9.3.0",
"stylelint-config-taro-rn": "2.2.3", "stylelint-config-taro-rn": "2.2.3",
"stylelint-taro-rn": "2.2.3", "stylelint-taro-rn": "2.2.3",
"typescript": "^3.0.1" "typescript": "^3.0.1",
"validate-commit-msg": "^2.14.0"
},
"config": {
"ghooks": {
"commit-msg": "validate-commit-msg"
}
} }
} }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"miniprogramRoot": "./dist", "miniprogramRoot": "./dist",
"projectname": "GeekMiniApp", "projectname": "GeekMiniApp",
"description": "极客数学Taro小程序模板项目", "description": "极客数学Taro小程序模板项目",
"appid": "touristappid", "appid": "",
"setting": { "setting": {
"urlCheck": true, "urlCheck": true,
"es6": false, "es6": false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment