Skip to content

Commit 934447f

Browse files
committed
Initial commit
0 parents  commit 934447f

Some content is hidden

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

55 files changed

+7811
-0
lines changed

.commitlintrc.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
rules:
2+
header-max-length: [2, always, 100]
3+
4+
type-empty: [2, never]
5+
type-enum: [2, always, [
6+
feat,
7+
fix,
8+
refactor,
9+
docs,
10+
test,
11+
chore,
12+
revert,
13+
release,
14+
nvm
15+
]]
16+
17+
scope-empty: [0, never]
18+
scope-case: [2, always, lower-case]
19+
20+
subject-empty: [2, never]
21+
subject-case: [2, always, sentence-case]
22+
subject-full-stop: [2, never, '.']
23+
24+
body-leading-blank: [2, always]
25+
body-max-line-length: [2, always, 100]
26+
body-case: [2, always, sentence-case]
27+
28+
footer-leading-blank: [2, always]
29+
footer-max-line-length: [2, always, 100]

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
end_of_line = lf
3+
insert_final_newline = true
4+
charset = utf-8
5+
indent_style = tab
6+
tab_size = 2
7+
8+
[*.{yml,yaml,md}]
9+
indent_style = space
10+
indent_size = 2

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
!.github
2+
!.vscode
3+
!.*

.eslintrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
root: true,
3+
extends: [
4+
'./languages/js/js-warn-autofixable.js',
5+
'./languages/vue2/vue2-warn-autofixable.js',
6+
'./languages/yaml/yaml-warn-autofixable.js',
7+
'./languages/json/json-warn-autofixable.js',
8+
],
9+
};

.gitattributes

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Fix end-of-lines in Git versions older than 2.10
2+
# https://github.com/git/git/blob/master/Documentation/RelNotes/2.10.0.txt#L248
3+
* text=auto eol=lf
4+
5+
# Binary Files (don't diff, don't fix line endings)
6+
7+
# Images
8+
*.png binary
9+
*.jpg binary
10+
*.jpeg binary
11+
*.gif binary
12+
*.ico binary
13+
*.tiff binary
14+
*.webp binary
15+
16+
# Image sources
17+
*.psd binary
18+
19+
# Fonts
20+
*.oft binary
21+
*.ttf binary
22+
*.eot binary
23+
*.woff binary
24+
*.woff2 binary
25+
26+
# Videos
27+
*.mov binary
28+
*.mp4 binary
29+
*.webm binary
30+
*.ogg binary
31+
*.ogv binary
32+
*.mpg binary
33+
*.3gp binary
34+
*.avi binary
35+
*.wmv binary
36+
*.flv binary
37+
*.asf binary
38+
39+
# Audio
40+
*.mp3 binary
41+
*.wav binary
42+
*.flac binary
43+
44+
# Compressed
45+
*.gz binary
46+
*.zip binary
47+
*.tar binary
48+
*.tgz binary
49+
*.7z binary
50+
*.rar binary
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Bug report
3+
about: If something goes wrong...
4+
5+
---
6+
7+
## Actual behavior
8+
9+
A clear and concise description of what the bug is.
10+
11+
## Expected behavior
12+
13+
A clear and concise description of what you expected to happen.
14+
15+
## Steps to Reproduce
16+
17+
1.
18+
2.
19+
3.
20+
21+
## Environment
22+
23+
* Device: [Desktop, iPhone X, etc.]
24+
* OS: [Windows 10, iOS 11.1, etc.]
25+
* Browser: [Chrome 89, iOS Safari 13.7, etc.]
26+
27+
## Additional context
28+
29+
Any other context about the problem here (optional).
30+
31+
## Possible solution
32+
33+
Any ideas of what could be done to resolve the problem (optional).
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project.
4+
5+
---
6+
7+
## Purpose
8+
9+
Describe what tasks new feature should resolve.
10+
11+
## Solution
12+
13+
A clear and concise description of what you want to happen.
14+
15+
## Alternatives
16+
17+
A clear and concise description of any alternative solutions or features you've considered (optional).
18+
19+
## Additional context
20+
21+
Add any other context or screenshots about the feature request here (optional).

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Type of change
2+
3+
- [ ] Bug fix (non-breaking change which fixes an issue)
4+
- [ ] New feature (non-breaking change which adds functionality)
5+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
6+
- [ ] This change requires a documentation update
7+
8+
## Description
9+
10+
Describe the proposed changes and related issues (if exists). Please also include relevant motivation and context. List any dependencies that are required for this change.
11+
12+
The best way to propose a feature is to open an issue first and discuss your ideas there before implementing them.
13+
14+
## Checklist
15+
16+
- [ ] My code follows the code style of this project
17+
- [ ] I have performed a self-review of my own code
18+
- [ ] I have commented my code, particularly in hard-to-understand areas
19+
- [ ] I have made corresponding changes to the documentation
20+
- [ ] My changes generate no new warnings
21+
- [ ] I have added tests that prove my fix is effective or that my feature works
22+
- [ ] New and existing tests and linters pass locally with my changes

.github/workflows/release.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags: [v*]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout the repository
12+
uses: actions/checkout@v2
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: '16'
18+
cache: yarn
19+
scope: '@morev'
20+
registry-url: 'https://registry.npmjs.org'
21+
22+
- name: Install dependencies
23+
run: yarn install
24+
25+
- name: Linting
26+
run: yarn lint
27+
28+
# - name: Testing
29+
# run: yarn test
30+
31+
- name: Create release
32+
uses: softprops/action-gh-release@v1
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
36+
- name: Publish package
37+
run: yarn publish --access public
38+
env:
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# OS Files
2+
.DS_Store
3+
Thumbs.db
4+
5+
# Dependencies
6+
node_modules
7+
8+
# Log Files
9+
*.log
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
14+
# Misc
15+
todo
16+
17+
# Editors
18+
.vscode/settings.json
19+
20+
# TODO
21+
vue3

0 commit comments

Comments
 (0)