Skip to content

Commit e11a595

Browse files
committed
Merge branch 'v2.0'
# Conflicts: # .gitignore # README.md # package.json
2 parents 053d150 + e94396f commit e11a595

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+15368
-104
lines changed

.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "next/core-web-vitals",
3+
"rules": {
4+
"react/display-name": "off"
5+
}
6+
}

.gitignore

Lines changed: 26 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,35 @@
1-
# Created by .ignore support plugin (hsz.mobi)
2-
### Node template
3-
# Logs
4-
/logs
5-
*.log
6-
npm-debug.log*
7-
yarn-debug.log*
8-
yarn-error.log*
9-
10-
# Runtime data
11-
pids
12-
*.pid
13-
*.seed
14-
*.pid.lock
15-
16-
# Directory for instrumented libs generated by jscoverage/JSCover
17-
lib-cov
18-
19-
# Coverage directory used by tools like istanbul
20-
coverage
21-
22-
# nyc test coverage
23-
.nyc_output
24-
25-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26-
.grunt
27-
28-
# Bower dependency directory (https://bower.io/)
29-
bower_components
30-
31-
# node-waf configuration
32-
.lock-wscript
33-
34-
# Compiled binary addons (https://nodejs.org/api/addons.html)
35-
build/Release
36-
37-
# Dependency directories
38-
node_modules/
39-
jspm_packages/
40-
41-
# TypeScript v1 declaration files
42-
typings/
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
432

44-
# Optional npm cache directory
45-
.npm
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
467

47-
# Optional eslint cache
48-
.eslintcache
8+
# testing
9+
/coverage
4910

50-
# Optional REPL history
51-
.node_repl_history
11+
# next.js
12+
/.next/
13+
/out/
5214

53-
# Output of 'npm pack'
54-
*.tgz
15+
# production
16+
/build
5517

56-
# Yarn Integrity file
57-
.yarn-integrity
58-
59-
# dotenv environment variables file
60-
.env
61-
62-
# parcel-bundler cache (https://parceljs.org/)
63-
.cache
64-
65-
# next.js build output
66-
.next
67-
68-
# nuxt.js build output
69-
.nuxt
70-
71-
# Nuxt generate
72-
dist
73-
74-
# vuepress build output
75-
.vuepress/dist
76-
77-
# Serverless directories
78-
.serverless
18+
# misc
19+
.DS_Store
20+
*.pem
7921

80-
# IDE / Editor
81-
.idea
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
.pnpm-debug.log*
8227

83-
# Service worker
84-
sw.*
28+
# local env files
29+
.env*.local
8530

86-
# macOS
87-
.DS_Store
31+
# vercel
32+
.vercel
8833

89-
# Vim swap files
90-
*.swp
34+
# typescript
35+
*.tsbuildinfo

.idea/.gitignore

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/my-app.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,16 @@
99
## 如何构建?
1010

1111
```bash
12-
# install dependencies
13-
$ yarn install
14-
15-
# serve with hot reload at localhost:3000
16-
$ yarn dev
12+
```
13+
npm install
14+
npm run dev
15+
```
1716
18-
# build for production and launch server
19-
$ yarn build
20-
$ yarn start
17+
## 项目调试
2118
22-
# generate static project
23-
$ yarn generate
19+
```
20+
npm run debugger
21+
```
2422
```
2523

2624
## 感谢

commitlint.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
extends: ["@commitlint/config-conventional"],
3+
rules: {
4+
"type-enum": [2, "always", ["feat", "fix", "revert"]],
5+
"subject-max-length": [1, "always", 30],
6+
},
7+
};

0 commit comments

Comments
 (0)