Skip to content

Commit 954e8f0

Browse files
committed
feat: initial version
0 parents  commit 954e8f0

19 files changed

Lines changed: 12556 additions & 0 deletions

.commitlintrc.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+
// See: https://commitlint.js.org/#/reference-rules
4+
rules: {
5+
"body-max-line-length": [0, "always", Infinity], // Disabled rule, since the release notes via semantic-release in the commit body message can be appropriately long.
6+
},
7+
};

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# GITHUB_TOKEN=""
2+
# NPM_TOKEN=""

.gitattributes

Lines changed: 208 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
## GITATTRIBUTES FOR WEB PROJECTS
2+
#
3+
# These settings are for any web project.
4+
#
5+
# Details per file setting:
6+
# text These files should be normalized (i.e. convert CRLF to LF).
7+
# binary These files are binary and should be left untouched.
8+
#
9+
# Note that binary is a macro for -text -diff.
10+
#
11+
# Source: https://github.com/Danimoth/gitattributes/blob/master/Web.gitattributes
12+
######################################################################
13+
14+
# Auto detect
15+
## Handle line endings automatically for files detected as
16+
## text and leave all files detected as binary untouched.
17+
## This will handle all files NOT defined below.
18+
* text=auto
19+
20+
# Source code
21+
*.bash text eol=lf
22+
*.bat text eol=crlf
23+
*.cmd text eol=crlf
24+
*.coffee text
25+
*.css text diff=css
26+
*.htm text diff=html
27+
*.html text diff=html
28+
*.inc text
29+
*.ini text
30+
*.js text
31+
*.json text
32+
*.jsx text
33+
*.less text
34+
*.ls text
35+
*.map text -diff
36+
*.od text
37+
*.onlydata text
38+
*.php text diff=php
39+
*.pl text
40+
*.ps1 text eol=crlf
41+
*.py text diff=python
42+
*.rb text diff=ruby
43+
*.sass text
44+
*.scm text
45+
*.scss text diff=css
46+
*.sh text eol=lf
47+
*.sql text
48+
*.styl text
49+
*.tag text
50+
*.ts text
51+
*.tsx text
52+
*.xml text
53+
*.xhtml text diff=html
54+
55+
# Docker
56+
Dockerfile text
57+
58+
# Documentation
59+
*.ipynb text
60+
*.markdown text diff=markdown
61+
*.md text diff=markdown
62+
*.mdwn text diff=markdown
63+
*.mdown text diff=markdown
64+
*.mkd text diff=markdown
65+
*.mkdn text diff=markdown
66+
*.mdtxt text
67+
*.mdtext text
68+
*.txt text
69+
AUTHORS text
70+
CHANGELOG text
71+
CHANGES text
72+
CONTRIBUTING text
73+
COPYING text
74+
copyright text
75+
*COPYRIGHT* text
76+
INSTALL text
77+
license text
78+
LICENSE text
79+
NEWS text
80+
readme text
81+
*README* text
82+
TODO text
83+
84+
# Templates
85+
*.dot text
86+
*.ejs text
87+
*.erb text
88+
*.haml text
89+
*.handlebars text
90+
*.hbs text
91+
*.hbt text
92+
*.jade text
93+
*.latte text
94+
*.mustache text
95+
*.njk text
96+
*.phtml text
97+
*.svelte text
98+
*.tmpl text
99+
*.tpl text
100+
*.twig text
101+
*.vue text
102+
103+
# Configs
104+
*.cnf text
105+
*.conf text
106+
*.config text
107+
.editorconfig text
108+
.env text
109+
.gitattributes text
110+
.gitconfig text
111+
.htaccess text
112+
*.lock text -diff
113+
package.json text eol=lf
114+
package-lock.json text -diff
115+
pnpm-lock.yaml text eol=lf -diff
116+
.prettierrc text
117+
yarn.lock text -diff
118+
*.toml text
119+
*.yaml text
120+
*.yml text
121+
browserslist text
122+
Makefile text
123+
makefile text
124+
125+
# Heroku
126+
Procfile text
127+
128+
# Graphics
129+
*.ai binary
130+
*.bmp binary
131+
*.eps binary
132+
*.gif binary
133+
*.gifv binary
134+
*.ico binary
135+
*.jng binary
136+
*.jp2 binary
137+
*.jpg binary
138+
*.jpeg binary
139+
*.jpx binary
140+
*.jxr binary
141+
*.pdf binary
142+
*.png binary
143+
*.psb binary
144+
*.psd binary
145+
# SVG treated as an asset (binary) by default.
146+
*.svg text
147+
# If you want to treat it as binary,
148+
# use the following line instead.
149+
# *.svg binary
150+
*.svgz binary
151+
*.tif binary
152+
*.tiff binary
153+
*.wbmp binary
154+
*.webp binary
155+
156+
# Audio
157+
*.kar binary
158+
*.m4a binary
159+
*.mid binary
160+
*.midi binary
161+
*.mp3 binary
162+
*.ogg binary
163+
*.ra binary
164+
165+
# Video
166+
*.3gpp binary
167+
*.3gp binary
168+
*.as binary
169+
*.asf binary
170+
*.asx binary
171+
*.avi binary
172+
*.fla binary
173+
*.flv binary
174+
*.m4v binary
175+
*.mng binary
176+
*.mov binary
177+
*.mp4 binary
178+
*.mpeg binary
179+
*.mpg binary
180+
*.ogv binary
181+
*.swc binary
182+
*.swf binary
183+
*.webm binary
184+
185+
# Archives
186+
*.7z binary
187+
*.gz binary
188+
*.jar binary
189+
*.rar binary
190+
*.tar binary
191+
*.zip binary
192+
193+
# Fonts
194+
*.ttf binary
195+
*.eot binary
196+
*.otf binary
197+
*.woff binary
198+
*.woff2 binary
199+
200+
# Executables
201+
*.exe binary
202+
*.pyc binary
203+
204+
# RC files (like .babelrc or .eslintrc)
205+
*.*rc text
206+
207+
# Ignore files (like .npmignore or .gitignore)
208+
*.*ignore text
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 🐛 Bug Report
2+
description: Create a report to help to improve the prettier configuration
3+
title: "bug: "
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: Prerequisites
8+
description: Please ensure you have completed all of the following.
9+
options:
10+
- label: I have searched for [existing issues](https://github.com/boehringer-ingelheim/prettier-config/issues) that already report this problem, without success.
11+
required: true
12+
- type: textarea
13+
attributes:
14+
label: Current Behavior
15+
description: A clear description of what the bug is and how it manifests.
16+
validations:
17+
required: true
18+
- type: textarea
19+
attributes:
20+
label: Expected Behavior
21+
description: A clear description of what you expected to happen.
22+
validations:
23+
required: true
24+
- type: textarea
25+
attributes:
26+
label: Steps to Reproduce
27+
description: Please explain the steps required to duplicate this issue.
28+
validations:
29+
required: true
30+
- type: input
31+
attributes:
32+
label: Code Reproduction URL
33+
description: Please reproduce this issue and provide a link to the repo. This is the best way to ensure this issue is triaged quickly. Issues without a code reproduction may be closed if the issue cannot be reproduced you are reporting.
34+
placeholder: https://github.com/...
35+
- type: textarea
36+
attributes:
37+
label: Additional Information
38+
description: List any other information that is relevant to you
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: 💡 Feature Request
2+
description: Suggest an idea for the prettier configuration
3+
title: "feat: "
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: Prerequisites
8+
description: Please ensure you have completed all of the following.
9+
options:
10+
- label: I have searched for [existing issues](https://github.com/boehringer-ingelheim/prettier-config/issues) that already include this feature request, without success.
11+
required: true
12+
- type: textarea
13+
attributes:
14+
label: Describe the Feature Request
15+
description: A clear and concise description of what the feature does.
16+
validations:
17+
required: true
18+
- type: textarea
19+
attributes:
20+
label: Describe the Use Case
21+
description: A clear and concise use case for what problem this feature would solve.
22+
validations:
23+
required: true
24+
- type: textarea
25+
attributes:
26+
label: Describe Preferred Solution
27+
description: A clear and concise description of what you how you want this feature to be added.
28+
- type: textarea
29+
attributes:
30+
label: Describe Alternatives
31+
description: A clear and concise description of any alternative solutions or features you have considered.
32+
- type: textarea
33+
attributes:
34+
label: Related Code
35+
description: If you are able to illustrate the feature request with an example, please provide a sample Ionic Framework application. Try out [Getting Started Wizard](https://ionicframework.com/start#basics) to quickly spin up an Ionic Framework starter app.
36+
- type: textarea
37+
attributes:
38+
label: Additional Information
39+
description: List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to implement, Stack Overflow links, forum links, etc.

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
release:
9+
env:
10+
# Disable husky (git hooks) in CI, see: https://typicode.github.io/husky/#/?id=disable-husky-in-cidocker
11+
HUSKY: 0
12+
name: Release
13+
runs-on: ubuntu-20.04
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version-file: '.nvmrc'
19+
registry-url: https://registry.npmjs.org/
20+
cache: npm
21+
- name: Install Dependencies
22+
run: npm ci
23+
- name: Run Tests
24+
run: npm test
25+
- name: Release package to npm and GitHub
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
run: npm run release:ci

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# misc
7+
.DS_Store
8+
.env
9+
.env.local
10+
.env.development.local
11+
.env.test.local
12+
.env.production.local
13+
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit "$1" || { echo "Try \033[1;32mnpx git-cz --disable-emoji\033[0;37m to commit and be align with the conventions or use \033[1;33mgit commit -m \"yolo!\" --no-verify\033[0;37m to bypass the commit-msg hook."; exit 1; }

.husky/post-merge

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
# Install any missing dependencies since package.json changed
5+
git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD | grep --quiet package.json && npm install

.husky/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm test

0 commit comments

Comments
 (0)