Skip to content

Commit

Permalink
chore(deps): add soybeanjs/cli and remove husky czg
Browse files Browse the repository at this point in the history
  • Loading branch information
yanbowe committed Aug 25, 2023
1 parent b5bdccc commit 45af248
Show file tree
Hide file tree
Showing 7 changed files with 169 additions and 22 deletions.
90 changes: 90 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Bug提交
description: 在使用软件或功能的过程中遇到了错误
title: '[Bug]: '
labels: [ "bug?" ]

body:
- type: markdown
attributes:
value: |
## 请按照以下要求进行提交
### 1. 提交后需要指定标签和截止时间。
---
- type: markdown
attributes:
value: |
## 环境信息
请根据实际使用环境修改以下信息。
- type: input
id: env-program-ver
attributes:
label: 软件版本
validations:
required: true

- type: dropdown
id: env-vm-ver
attributes:
label: 运行环境
description: 选择运行软件的系统版本
options:
- Windows (64)
- Windows (32/x84)
- MacOS
- Linux
- Ubuntu
- CentOS
- ArchLinux
- UNIX (Android)
- 其它(请在下方说明)
validations:
required: true

- type: dropdown
id: env-vm-arch
attributes:
label: 运行架构
description: (可选) 选择运行软件的系统架构
options:
- AMD64
- x86
- ARM [32] (别名:AArch32 / ARMv7)
- ARM [64] (别名:AArch64 / ARMv8)
- 其它

- type: textarea
id: reproduce-steps
attributes:
label: 重现步骤
description: |
我们需要执行哪些操作才能让 bug 出现?
简洁清晰的重现步骤能够帮助我们更迅速地定位问题所在。
validations:
required: true

- type: textarea
id: expected
attributes:
label: 期望的结果是什么?
validations:
required: true

- type: textarea
id: actual
attributes:
label: 实际的结果是什么?
validations:
required: true

- type: textarea
id: logging
attributes:
label: 日志记录(可选)
render: golang

- type: textarea
id: extra-desc
attributes:
label: 补充说明(可选)
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Pull Request 详情

请根据实际使用情况修改以下信息。

## 版本信息

## 解决了哪些问题

## 是否关闭了某个 Issue

Closes #
30 changes: 30 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Lint Code

permissions:
contents: write

on:
pull_request:
branches: [main]

jobs:
lint:
name: Lint All Code
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
# To change branch master or main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FILTER_REGEX_EXCLUDE: (docs|.github)
VALIDATE_MARKDOWN: false
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

permissions:
contents: write

on:
push:
tags:
- "v*"

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 16.x

- run: npx githublogen
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

27 changes: 13 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
"dev:quickapp": "npm run build:quickapp -- --watch",
"typecheck": "vue-tsc --noEmit --skipLibCheck",
"lint": "eslint . --fix",
"format": "prettier . --write !**/*.{js,jsx,mjs,cjs,json,ts,tsx,mts,cts,vue,svelte,astro} !*.min.* !CHANGELOG.md !dist !LICENSE* !output !coverage !public !temp !package-lock.json !pnpm-lock.yaml !yarn.lock !__snapshots__",
"commit": "git pull && pnpm format && pnpm lint && git add -A && pnpm cz && git push",
"pre-commit": "git pull && pnpm lint-staged && pnpm cz && git push",
"cz": "czg",
"prepare": "husky install",
"release": "bumpp -r"
"format": "soy prettier-write",
"commit": "git pull && pnpm format && pnpm lint && git add -A && soy git-commit && git push",
"cleanup": "soy cleanup",
"update-pkg": "soy ncu",
"release": "soy release",
"tsx": "tsx",
"prepare": "soy init-simple-git-hooks"
},
"dependencies": {
"@babel/runtime": "^7.22.10",
Expand Down Expand Up @@ -58,6 +59,7 @@
"@babel/core": "^7.22.10",
"@iconify/json": "^2.2.105",
"@iconify/utils": "^2.1.9",
"@soybeanjs/cli": "^0.7.1",
"@tarojs/plugin-framework-vue3": "3.6.13",
"@types/lodash-es": "^4.17.8",
"@types/node": "^20.5.4",
Expand All @@ -66,14 +68,11 @@
"@unocss/webpack": "^0.55.2",
"@vue/babel-plugin-jsx": "^1.1.5",
"babel-preset-taro": "3.6.13",
"bumpp": "^9.2.0",
"commitlint": "^17.7.1",
"czg": "^1.7.1",
"eslint": "^8.47.0",
"eslint-config-soybeanjs": "^0.5.6",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"simple-git-hooks": "^2.9.0",
"taro-plugin-pinia": "^1.0.0",
"tsx": "^3.12.7",
"typescript": "5.1.6",
"unocss": "^0.55.2",
"unocss-preset-weapp": "^0.55.0",
Expand All @@ -82,8 +81,8 @@
"vue-tsc": "^1.8.8",
"webpack": "^5.88.2"
},
"lint-staged": {
"*.{js,mjs,jsx,ts,mts,tsx,json,vue,svelte,astro}": "eslint . --fix",
"*.!{js,mjs,jsx,ts,mts,tsx,json,vue,svelte,astro}": "format"
"simple-git-hooks": {
"commit-msg": "pnpm soy git-commit-verify",
"pre-commit": "pnpm typecheck && pnpm soy lint-staged"
}
}

0 comments on commit 45af248

Please sign in to comment.