Skip to content

Commit 4e96340

Browse files
authored
Merge pull request #1 from liuweiGL/dev
v1.0.0
2 parents 509971e + e0d8bc0 commit 4e96340

40 files changed

+7460
-28
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[Makefile]
16+
indent_style = tab

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build
2+
dist
3+
node_modules

.eslintrc

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"extends": [
3+
"plugin:@typescript-eslint/recommended",
4+
"plugin:prettier/recommended"
5+
],
6+
"plugins": ["@typescript-eslint", "import"],
7+
"rules": {
8+
"import/order": [
9+
"error",
10+
{
11+
"groups": [
12+
"builtin",
13+
"external",
14+
"internal",
15+
"parent",
16+
"sibling",
17+
"index"
18+
],
19+
"pathGroupsExcludedImportTypes": [],
20+
"newlines-between": "always",
21+
"alphabetize": {
22+
"order": "asc",
23+
"caseInsensitive": true
24+
}
25+
}
26+
],
27+
"import/newline-after-import": ["error", { "count": 1 }],
28+
"no-unused-vars": "off",
29+
"@typescript-eslint/no-unused-vars": ["error"],
30+
"@typescript-eslint/no-explicit-any": "off",
31+
"@typescript-eslint/explicit-module-boundary-types": "off",
32+
"@typescript-eslint/explicit-function-return-type": "off",
33+
"@typescript-eslint/no-empty-interface": [
34+
"error",
35+
{
36+
"allowSingleExtends": true
37+
}
38+
],
39+
"no-empty-function": "off",
40+
"@typescript-eslint/no-empty-function": [
41+
"error",
42+
{
43+
"allow": ["constructors"]
44+
}
45+
]
46+
}
47+
}

.github/CONTRIBUTING.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Contributing Guide
2+
3+
Hi! I’m really excited that you are interested in contributing to vite-plugin-certificate. Before submitting your contribution though, please make sure to take a moment and read through the following guidelines.
4+
5+
Hi! We are really excited that you are interested in contributing to Vite. Before submitting your contribution, please make sure to take a moment and read through the following guide:
6+
7+
## Repo Setup
8+
9+
The vite-plugin-certificate repo is a monorepo using Yarn workspaces. The package manager used to install and link dependencies must be [Yarn v1](https://classic.yarnpkg.com/).
10+
11+
To development the plugin:
12+
13+
1. Use `yarn dev` to start tsc server.
14+
15+
2. Use `yarn playground` to test the plguin.

.github/GIT_COMMIT_SPECIFIC.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# GIT COMMIT MESSAGE CHEAT SHEET
2+
3+
**Proposed format of the commit message**
4+
5+
```
6+
<type>(<scope>): <subject>
7+
8+
<body>
9+
```
10+
11+
All lines are wrapped at 100 characters !
12+
13+
**Allowed `<type>`**
14+
15+
- feat (A new feature)
16+
- fix (A bug fix)
17+
- docs (Documentation only changes)
18+
- style (Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc))
19+
- perf (A code change that improves performance)
20+
- refactor (A code change that neither fixes a bug nor adds a feature)
21+
- build (Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm))
22+
- ci (Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs))
23+
- chore (Other changes that don't modify src or test files)
24+
- revert (Reverts a previous commit)
25+
26+
**Allowed `<scope>`**
27+
Scope could be anything specifying place of the commit change.
28+
29+
For example $location, $browser, compiler, scope, ng:href, etc...
30+
31+
32+
**Breaking changes**
33+
All breaking changes have to be mentioned in message body, on separated line:
34+
_Breaks removed $browser.setUrl() method (use $browser.url(newUrl))_
35+
_Breaks ng: repeat option is no longer supported on selects (use ng:options)_
36+
37+
38+
**Message body**
39+
40+
- uses the imperative, present tense: “change” not “changed” nor “changes”
41+
- includes motivation for the change and contrasts with previous behavior
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
name: "\U0001F41E Bug report"
3+
about: Report an issue with Vite
4+
title: ''
5+
labels: 'bug: pending triage'
6+
assignees: ''
7+
---
8+
9+
### Describe the bug
10+
11+
<!-- A clear and concise description of what the bug is. -->
12+
13+
<!-- If you intend to submit a PR for this issue, tell us in the description. Thanks! -->
14+
15+
### Reproduction
16+
17+
<!--
18+
Please provide a link to a repo that can reproduce the problem you ran into.
19+
20+
A reproduction is required unless you are absolutely sure that the issue is obvious and the provided information is enough to understand the problem. If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "need reproduction" label. If no reproduction is provided after 3 days, it will be auto-closed.
21+
-->
22+
23+
### System Info
24+
25+
Output of `npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers`:
26+
27+
```node
28+
29+
```
30+
31+
Used package manager: <!-- npm | yarn | pnpm -->
32+
33+
### Logs <!-- (Optional if provided reproduction) -->
34+
35+
<!--
36+
Please try not to insert an image but copy paste the log text.
37+
38+
1. Run `vite` or `vite build` with the `--debug` flag.
39+
2. Provide the error log here.
40+
`node` is used as highlight to improve some colors in stack-traces.
41+
If it doesn't work quite well, try `console`.
42+
-->
43+
44+
```node
45+
46+
```
47+
48+
---
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: "\U0001F680 New feature proposal"
3+
about: Propose a new feature to be added to Vite
4+
title: ''
5+
labels: 'enhancement: pending triage'
6+
assignees: ''
7+
---
8+
9+
### Clear and concise description of the problem
10+
11+
<!-- As a developer using Vite I want [goal / wish] so that [benefit]. -->
12+
13+
<!-- If you intend to submit a PR for this issue, tell us in the description. Thanks! -->
14+
15+
### Suggested solution
16+
17+
<!-- In module [xy] we could provide following implementation... -->
18+
19+
### Alternative
20+
21+
<!-- Clear and concise description of any alternative solutions or features you've considered. -->
22+
23+
### Additional context
24+
25+
<!-- Any other context or screenshots about the feature request here. -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!-- Thank you for contributing! -->
2+
3+
### Description
4+
5+
<!-- Please insert your description here and provide especially info about the "what" this PR is solving -->
6+
7+
### Additional context
8+
9+
<!-- e.g. is there anything you'd like reviewers to focus on? -->
10+
11+
---
12+
13+
### What is the purpose of this pull request? <!-- (put an "X" next to an item) -->
14+
15+
- [ ] Bug fix
16+
- [ ] New Feature
17+
- [ ] Documentation update
18+
- [ ] Other
19+

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ lerna-debug.log*
99
# Diagnostic reports (https://nodejs.org/api/report.html)
1010
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
1111

12-
# Runtime data
13-
pids
14-
*.pid
15-
*.seed
16-
*.pid.lock
1712

1813
# Directory for instrumented libs generated by jscoverage/JSCover
1914
lib-cov
@@ -81,6 +76,7 @@ typings/
8176
# Nuxt.js build / generate output
8277
.nuxt
8378
dist
79+
build
8480

8581
# Gatsby files
8682
.cache/

.prettierrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": false,
6+
"singleQuote": true,
7+
"quoteProps": "as-needed",
8+
"trailingComma": "none",
9+
"bracketSpacing": true,
10+
"arrowParens": "avoid",
11+
"requirePragma": false,
12+
"insertPragma": false,
13+
"proseWrap": "preserve",
14+
"htmlWhitespaceSensitivity": "ignore",
15+
"endOfLine": "auto",
16+
"jsxSingleQuote": true,
17+
"jsxBracketSameLine": true
18+
19+
}

0 commit comments

Comments
 (0)