Skip to content

Commit

Permalink
release: v3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
lzm0x219 committed Mar 20, 2022
1 parent 8bc2b7f commit dfccd31
Show file tree
Hide file tree
Showing 12 changed files with 497 additions and 299 deletions.
13 changes: 8 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@
"project": "./tsconfig.json"
},
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:prettier/recommended",
"prettier"
],
"plugins": ["@typescript-eslint", "react", "jsx-a11y", "prettier"],
"plugins": ["@typescript-eslint", "react", "prettier"],
"env": {
"browser": true,
"node": true
},
"ignorePatterns": "*.config.ts"
"settings": {
"react": {
"version": "17.0.2"
}
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto eol=lf
*.json linguist-language=JSON-with-Comments
99 changes: 81 additions & 18 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,98 @@
name-template: "v$RESOLVED_VERSION 🌈"
name-template: "v$RESOLVED_VERSION"
category-template: "### $TITLE"
tag-template: "v$RESOLVED_VERSION"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
no-changes-template: "* No Change"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
categories:
- title: "🚀 Features"
- title: "✨ Feature"
labels:
- "feature"
- "enhancement"
- title: "🐛 Bug Fixes"

- title: "💎 Optimize"
labels:
- "optimize"

- title: "🧱 Refactor"
labels:
- "refactor"
- title: "🐞 Bug Fixed"
labels:
- "fix"
- "bugfix"
- "bug"
- title: "🧰 Maintenance"
label: "chore"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&'

- title: "💥 Breaking"
labels:
- "breaking"

- title: "🚧 Maintenance"
labels:
- "maintenance"

- title: "📦 Dependencies"
labels:
- "dependencies"

- title: "🚀 Performance"
labels:
- "performance"

- title: "📝 Documentation"
labels:
- "documentation"
version-resolver:
major:
labels:
- "type: breaking"
- "major"
minor:
labels:
- "type: feature"
- "minor"
patch:
labels:
- "type: bug"
- "type: maintenance"
- "type: docs"
- "type: dependencies"
- "type: security"

- "patch"
default: patch
template: |
## Changes
## Release Notes
$CHANGES
exclude-contributors:
- "renovate"
- "renovate-bot"

exclude-labels:
- "skip-changelog"

autolabeler:
- label: "documentation"
files:
- "*.md"
branch:
- '/docs{0,1}\/.+/'
- label: "bugfix"
branch:
- '/fix\/.+/'
- '/bugfix\/.+/'
title:
- "/Fix/i"
- label: "feature"
branch:
- '/feature\/.+/'
- label: "optimize"
branch:
- '/optimize\/.+/'
- label: "refactor"
branch:
- '/refactor\/.+/'
- label: "breaking"
branch:
- '/breaking\/.+/'
- label: "maintenance"
branch:
- '/maintenance\/.+/'
- label: "perf"
branch:
- '/perf\/.+/'

replacers:
- search: '/(feat|fix|docs|chore|build|style|refactor|perf|test|break|ci|revert|wip)(\(\w+\))?: /g'
replace: ""
8 changes: 4 additions & 4 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": [
"config:base",
":dependencyDashboard"
]
"extends": ["config:base"],
"labels": ["dependencies"],
"assignees": [],
"reviewers": []
}
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
- 😎 Reliable - Integrated eslint and commitlint.
- 🤖 Intelligent - Integrated renovate to help you maintain the dependent version.

## Getting Started
## Preview

[![qekup8.png](https://s1.ax1x.com/2022/03/20/qekup8.png)](https://imgtu.com/i/qekup8)

## Getting Started

```bash
npx degit UmaruLab/vite-template-react-plus myapp
Expand All @@ -27,7 +30,6 @@ cd myapp

### Available scripts


#### `pnpm dev`

Runs the app in development mode.
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
28 changes: 11 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
{
"name": "template",
"version": "0.0.0",
"license": "ISC",
"private": "true",
"scripts": {
"build": "vite build",
"dev": "vite",
"prepare": "husky install",
"preview": "vite preview"
"preinstall": "is-ci || npx only-allow pnpm",
"prepare": "is-ci || husky install",
"preview": "serve dist"
},
"commitlint": {
"extends": [
"@0x219"
]
},
"lint-staged": {
"*.{css,md,json}": [
"prettier --write"
],
"*.ts?(x)": [
"eslint",
"prettier --write"
],
"package.json": "npx sort-package-json"
"*.{ts,tsx}": "eslint",
"*.{js,ts,tsx,md,html,css,json}": "prettier --write",
"!(*pnpm-lock).yaml": "prettier --write"
},
"dependencies": {
"react": "17.0.2",
Expand All @@ -37,18 +33,16 @@
"@vitejs/plugin-legacy": "1.7.1",
"@vitejs/plugin-react": "1.2.0",
"eslint": "8.11.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-airbnb-typescript": "16.1.4",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-import": "2.25.4",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.29.4",
"eslint-plugin-react-hooks": "4.3.0",
"husky": "7.0.4",
"is-ci": "3.0.1",
"lint-staged": "12.3.7",
"prettier": "2.6.0",
"sort-package-json": "1.54.0",
"prettier-plugin-packagejson": "2.2.16",
"prettier-plugin-tailwindcss": "0.1.8",
"serve": "13.0.2",
"typescript": "4.6.2",
"vite": "2.8.6",
"vite-plugin-mkcert": "1.6.0",
Expand Down
Loading

0 comments on commit dfccd31

Please sign in to comment.