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>> {
- src/pages 目录下放置小程序的页面文件
- src/subpages 目录下放置小程序的分包的目录
- 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 = {
}
}
},
geekProxy: {
"/service-profile": {
target: "http://192.168.32.35:3000/",
logLevel: "debug",
changeOrigoin: true,
},
},
proType: 'taro'
}
......
module.exports = {
'/addCart': (req, res, next) => {
res.json({
return {
code: 0,
message: 'sssfsff'
})
}
}
}
\ No newline at end of file
......@@ -17,5 +17,6 @@ module.exports = {
'GET /config': {
version: '1.1.10'
}
}
},
"carss": cart
}
\ No newline at end of file
......@@ -10,16 +10,21 @@
},
"fastgeek": "taro",
"scripts": {
"build:weapp": "fastgeek taro build --platform weapp",
"build:swan": "fastgeek taro build --platform swan",
"build:alipay": "fastgeek taro build --platform alipay",
"build:tt": "fastgeek taro build --platform tt",
"build:h5": "fastgeek taro build --platform h5",
"dev:swan": "fastgeek taro --platform swan",
"dev:alipay": "fastgeek taro --platform alipay",
"dev:tt": "fastgeek taro --platform tt",
"dev:h5": "fastgeek taro --platform h5",
"build": "npm run build:weapp",
"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",
"dev": "fastgeek taro --platform weapp"
},
"author": "",
......@@ -48,6 +53,7 @@
"regenerator-runtime": "0.11.1"
},
"devDependencies": {
"ghooks": "^2.0.4",
"@tarojs/mini-runner": "2.2.3",
"@tarojs/webpack-runner": "2.2.3",
"@types/dva": "^1.1.0",
......@@ -75,6 +81,12 @@
"stylelint": "9.3.0",
"stylelint-config-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 @@
"miniprogramRoot": "./dist",
"projectname": "GeekMiniApp",
"description": "极客数学Taro小程序模板项目",
"appid": "touristappid",
"appid": "",
"setting": {
"urlCheck": true,
"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