Skip to content
This repository was archived by the owner on Aug 4, 2025. It is now read-only.

Commit 54f2ab8

Browse files
feat: windows and maintainability improvements (#1)
1 parent 8d0affa commit 54f2ab8

16 files changed

Lines changed: 4601 additions & 24 deletions

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
* text=auto eol=lf
2+
3+
# Source code
4+
*.bash text eol=lf
5+
*.bat text eol=crlf
6+
*.cmd text eol=crlf
7+
*.coffee text
8+
*.css text diff=css
9+
*.htm text diff=html
10+
*.html text diff=html
11+
*.inc text
12+
*.ini text
13+
*.js text
14+
*.json text
15+
*.jsx text
16+
*.less text
17+
*.ls text
18+
*.map text -diff
19+
*.od text
20+
*.onlydata text
21+
*.php text diff=php
22+
*.pl text
23+
*.ps1 text eol=crlf
24+
*.py text diff=python
25+
*.rb text diff=ruby
26+
*.sass text
27+
*.scm text
28+
*.scss text diff=css
29+
*.sh text eol=lf
30+
*.sql text
31+
*.styl text
32+
*.tag text
33+
*.ts text
34+
*.tsx text
35+
*.xml text
36+
*.xhtml text diff=html
37+
38+
# Docker
39+
Dockerfile text
40+
41+
# Documentation
42+
*.ipynb text
43+
*.markdown text diff=markdown
44+
*.md text diff=markdown
45+
*.mdwn text diff=markdown
46+
*.mdown text diff=markdown
47+
*.mkd text diff=markdown
48+
*.mkdn text diff=markdown
49+
*.mdtxt text
50+
*.mdtext text
51+
*.txt text
52+
AUTHORS text
53+
CHANGELOG text
54+
CHANGES text
55+
CONTRIBUTING text
56+
COPYING text
57+
copyright text
58+
*COPYRIGHT* text
59+
INSTALL text
60+
license text
61+
LICENSE text
62+
NEWS text
63+
readme text
64+
*README* text
65+
TODO text
66+
67+
# Templates
68+
*.dot text
69+
*.ejs text
70+
*.erb text
71+
*.haml text
72+
*.handlebars text
73+
*.hbs text
74+
*.hbt text
75+
*.jade text
76+
*.latte text
77+
*.mustache text
78+
*.njk text
79+
*.phtml text
80+
*.svelte text
81+
*.tmpl text
82+
*.tpl text
83+
*.twig text
84+
*.vue text
85+
86+
# Configs
87+
*.cnf text
88+
*.conf text
89+
*.config text
90+
.editorconfig text
91+
.env text
92+
.gitattributes text
93+
.gitconfig text
94+
.htaccess text
95+
*.lock text -diff
96+
package.json text eol=lf
97+
package-lock.json text -diff
98+
pnpm-lock.yaml text eol=lf -diff
99+
.prettierrc text
100+
yarn.lock text -diff
101+
*.toml text
102+
*.yaml text
103+
*.yml text
104+
browserslist text
105+
Makefile text
106+
makefile text
107+
108+
# Heroku
109+
Procfile text
110+
111+
# Graphics
112+
*.ai binary
113+
*.bmp binary
114+
*.eps binary
115+
*.gif binary
116+
*.gifv binary
117+
*.ico binary
118+
*.jng binary
119+
*.jp2 binary
120+
*.jpg binary
121+
*.jpeg binary
122+
*.jpx binary
123+
*.jxr binary
124+
*.pdf binary
125+
*.png binary
126+
*.psb binary
127+
*.psd binary
128+
*.svg text
129+
*.svgz binary
130+
*.tif binary
131+
*.tiff binary
132+
*.wbmp binary
133+
*.webp binary
134+
135+
# Audio
136+
*.kar binary
137+
*.m4a binary
138+
*.mid binary
139+
*.midi binary
140+
*.mp3 binary
141+
*.ogg binary
142+
*.ra binary
143+
144+
# Video
145+
*.3gpp binary
146+
*.3gp binary
147+
*.as binary
148+
*.asf binary
149+
*.asx binary
150+
*.avi binary
151+
*.fla binary
152+
*.flv binary
153+
*.m4v binary
154+
*.mng binary
155+
*.mov binary
156+
*.mp4 binary
157+
*.mpeg binary
158+
*.mpg binary
159+
*.ogv binary
160+
*.swc binary
161+
*.swf binary
162+
*.webm binary
163+
164+
# Archives
165+
*.7z binary
166+
*.gz binary
167+
*.jar binary
168+
*.rar binary
169+
*.tar binary
170+
*.zip binary
171+
172+
# Fonts
173+
*.ttf binary
174+
*.eot binary
175+
*.otf binary
176+
*.woff binary
177+
*.woff2 binary
178+
179+
# Executables
180+
*.exe binary
181+
*.pyc binary
182+
183+
# RC files
184+
*.*rc text
185+
186+
# Ignore files
187+
*.*ignore text

.github/workflows/ci.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,30 @@ name: ci
22

33
on:
44
push:
5-
tags:
6-
- "v*"
5+
tags: ['v*.*.*']
76

87
jobs:
8+
check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3
17+
- name: Check
18+
run: npm run check
19+
- name: ShellCheck
20+
uses: ludeeus/action-shellcheck@master
21+
with:
22+
severity: error
23+
ignore_paths: ./node_modules
24+
925
release:
1026
runs-on: ubuntu-latest
27+
needs: check
28+
if: needs.check.result == 'success'
1129
steps:
1230
- name: Checkout
1331
uses: actions/checkout@v3

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
tmp/
21
dist/
2+
tmp/
3+
node_modules/
34
manifest.json

.husky/pre-commit

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env sh
2+
3+
# shellcheck source=./_/husky.sh
4+
. "$(dirname -- "$0")/_/husky.sh"
5+
6+
npx --no -- lint-staged

.lintstagedrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.{sh}": "prettier --write"
3+
}

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
dist/
2+
tmp/
3+
node_modules/
4+
.husky/_/
5+
package-lock.json
6+
manifest.json
7+
.gitattributes

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"endOfLine": "lf",
3+
"printWidth": 80,
4+
"semi": true,
5+
"singleQuote": true,
6+
"trailingComma": "none"
7+
}

.shellcheckrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
external-sources=true

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"esbenp.prettier-vscode",
4+
"mads-hartmann.bash-ide-vscode",
5+
"timonwong.shellcheck",
6+
"usernamehw.errorlens"
7+
]
8+
}

0 commit comments

Comments
 (0)