-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from AndreaDiazCorreia/main
feat: initials configs
- Loading branch information
Showing
35 changed files
with
10,773 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = false | ||
insert_final_newline = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,218 @@ | ||
# From https://github.com/gitattributes/gitattributes/blob/master/Web.gitattributes | ||
## GITATTRIBUTES FOR WEB PROJECTS | ||
# | ||
# These settings are for any web project. | ||
# | ||
# Details per file setting: | ||
# text These files should be normalized (i.e. convert CRLF to LF). | ||
# binary These files are binary and should be left untouched. | ||
# | ||
# Note that binary is a macro for -text -diff. | ||
###################################################################### | ||
|
||
# Auto detect | ||
## Handle line endings automatically for files detected as | ||
## text and leave all files detected as binary untouched. | ||
## This will handle all files NOT defined below. | ||
* text=auto | ||
|
||
# Source code | ||
*.bash text eol=lf | ||
*.bat text eol=crlf | ||
*.cmd text eol=crlf | ||
*.coffee text | ||
*.css text diff=css | ||
*.htm text diff=html | ||
*.html text diff=html | ||
*.inc text | ||
*.ini text | ||
*.js text | ||
*.mjs text | ||
*.cjs text | ||
*.json text | ||
*.jsx text | ||
*.less text | ||
*.ls text | ||
*.map text -diff | ||
*.od text | ||
*.onlydata text | ||
*.php text diff=php | ||
*.pl text | ||
*.ps1 text eol=crlf | ||
*.py text diff=python | ||
*.rb text diff=ruby | ||
*.sass text | ||
*.scm text | ||
*.scss text diff=css | ||
*.sh text eol=lf | ||
.husky/* text eol=lf | ||
*.sql text | ||
*.styl text | ||
*.tag text | ||
*.ts text | ||
*.tsx text | ||
*.xml text | ||
*.xhtml text diff=html | ||
|
||
# Docker | ||
Dockerfile text | ||
|
||
# Documentation | ||
*.ipynb text eol=lf | ||
*.markdown text diff=markdown | ||
*.md text diff=markdown | ||
*.mdwn text diff=markdown | ||
*.mdown text diff=markdown | ||
*.mkd text diff=markdown | ||
*.mkdn text diff=markdown | ||
*.mdtxt text | ||
*.mdtext text | ||
*.txt text | ||
AUTHORS text | ||
CHANGELOG text | ||
CHANGES text | ||
CONTRIBUTING text | ||
COPYING text | ||
copyright text | ||
*COPYRIGHT* text | ||
INSTALL text | ||
license text | ||
LICENSE text | ||
NEWS text | ||
readme text | ||
*README* text | ||
TODO text | ||
|
||
# Templates | ||
*.dot text | ||
*.ejs text | ||
*.erb text | ||
*.haml text | ||
*.handlebars text | ||
*.hbs text | ||
*.hbt text | ||
*.jade text | ||
*.latte text | ||
*.mustache text | ||
*.njk text | ||
*.phtml text | ||
*.svelte text | ||
*.tmpl text | ||
*.tpl text | ||
*.twig text | ||
*.vue text | ||
|
||
# Configs | ||
*.cnf text | ||
*.conf text | ||
*.config text | ||
.editorconfig text | ||
.env text | ||
.gitattributes text | ||
.gitconfig text | ||
.htaccess text | ||
*.lock text -diff | ||
package.json text eol=lf | ||
package-lock.json text eol=lf -diff | ||
pnpm-lock.yaml text eol=lf -diff | ||
.prettierrc text | ||
yarn.lock text -diff | ||
*.toml text | ||
*.yaml text | ||
*.yml text | ||
browserslist text | ||
Makefile text | ||
makefile text | ||
# Fixes syntax highlighting on GitHub to allow comments | ||
tsconfig.json linguist-language=JSON-with-Comments | ||
|
||
# Heroku | ||
Procfile text | ||
|
||
# Graphics | ||
*.ai binary | ||
*.bmp binary | ||
*.eps binary | ||
*.gif binary | ||
*.gifv binary | ||
*.ico binary | ||
*.jng binary | ||
*.jp2 binary | ||
*.jpg binary | ||
*.jpeg binary | ||
*.jpx binary | ||
*.jxr binary | ||
*.pdf binary | ||
*.png binary | ||
*.psb binary | ||
*.psd binary | ||
# SVG treated as an asset (binary) by default. | ||
*.svg text | ||
# If you want to treat it as binary, | ||
# use the following line instead. | ||
# *.svg binary | ||
*.svgz binary | ||
*.tif binary | ||
*.tiff binary | ||
*.wbmp binary | ||
*.webp binary | ||
|
||
# Audio | ||
*.kar binary | ||
*.m4a binary | ||
*.mid binary | ||
*.midi binary | ||
*.mp3 binary | ||
*.ogg binary | ||
*.ra binary | ||
|
||
# Video | ||
*.3gpp binary | ||
*.3gp binary | ||
*.as binary | ||
*.asf binary | ||
*.asx binary | ||
*.avi binary | ||
*.fla binary | ||
*.flv binary | ||
*.m4v binary | ||
*.mng binary | ||
*.mov binary | ||
*.mp4 binary | ||
*.mpeg binary | ||
*.mpg binary | ||
*.ogv binary | ||
*.swc binary | ||
*.swf binary | ||
*.webm binary | ||
|
||
# Archives | ||
*.7z binary | ||
*.gz binary | ||
*.jar binary | ||
*.rar binary | ||
*.tar binary | ||
*.zip binary | ||
|
||
# Fonts | ||
*.ttf binary | ||
*.eot binary | ||
*.otf binary | ||
*.woff binary | ||
*.woff2 binary | ||
|
||
# Executables | ||
*.exe binary | ||
*.pyc binary | ||
# Prevents massive diffs caused by vendored, minified files | ||
**/.yarn/releases/** binary | ||
**/.yarn/plugins/** binary | ||
|
||
# RC files (like .babelrc or .eslintrc) | ||
*.*rc text | ||
|
||
# Ignore files (like .npmignore or .gitignore) | ||
*.*ignore text | ||
|
||
# Prevents massive diffs from built files | ||
dist/* binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository | ||
|
||
github: [sonofmagic] | ||
custom: ["https://github.com/sonofmagic/sponsors"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: "\U0001F41E Bug report" | ||
description: Create a report to help us improve | ||
title: "[Bug]: " | ||
labels: ["bug"] | ||
assignees: | ||
- sonofmagic | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
**Before You Start...** | ||
This form is only for submitting bug reports. If you have a usage question | ||
or are unsure if this is really a bug, make sure to: | ||
Also try to search for your issue - it may have already been answered or even fixed in the development branch. | ||
However, if you find that an old, closed issue still persists in the latest version, | ||
you should open a new issue using the form below instead of commenting on the old issue. | ||
- type: input | ||
id: version | ||
attributes: | ||
label: version | ||
validations: | ||
required: true | ||
- type: input | ||
id: reproduction-link | ||
attributes: | ||
label: Link to minimal reproduction | ||
description: | | ||
You can always provide a GitHub repository. | ||
The reproduction should be **minimal** - i.e. it should contain only the bare minimum amount of code needed | ||
to show the bug. | ||
Please do not just fill in a random link. The issue will be closed if no valid reproduction is provided. | ||
placeholder: Reproduction Link | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: steps-to-reproduce | ||
attributes: | ||
label: Steps to reproduce | ||
description: | | ||
What do we need to do after opening your repro in order to make the bug happen? Clear and concise reproduction instructions are important for us to be able to triage your issue in a timely manner. Note that you can use [Markdown](https://guides.github.com/features/mastering-markdown/) to format lists and code. | ||
placeholder: Steps to reproduce | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: expected | ||
attributes: | ||
label: What is expected? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: actually-happening | ||
attributes: | ||
label: What is actually happening? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: system-info | ||
attributes: | ||
label: System Info | ||
description: Output of `npx envinfo --system --npmPackages --binaries` | ||
render: shell | ||
placeholder: System, Binaries | ||
- type: textarea | ||
id: additional-comments | ||
attributes: | ||
label: Any additional comments? | ||
description: e.g. some background/context of how you ran into this bug. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Feature Request | ||
url: https://github.com/sonofmagic/npm-lib-template/discussions | ||
about: Suggest new features for consideration | ||
# - name: Discord Chat | ||
# url: https://chat.vuejs.org | ||
# about: Ask questions and discuss with other Vue users in real time. | ||
# - name: Questions & Discussions | ||
# url: https://github.com/vuejs/core/discussions | ||
# about: Use GitHub discussions for message-board style questions and discussions. | ||
# - name: Patreon | ||
# url: https://www.patreon.com/evanyou | ||
# about: Love Vue.js? Please consider supporting us via Patreon. | ||
# - name: Open Collective | ||
# url: https://opencollective.com/vuejs/donate | ||
# about: Love Vue.js? Please consider supporting us via Open Collective. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Release | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- next | ||
- alpha | ||
- beta | ||
|
||
jobs: | ||
release: | ||
permissions: | ||
contents: write # to be able to publish a GitHub release | ||
issues: write # to be able to comment on released issues | ||
pull-requests: write # to be able to comment on released pull requests | ||
id-token: write # to enable use of OIDC for npm provenance | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
# run before Set node , otherwise show Unable to locate executable file: pnpm error | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Set node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install Dependencies | ||
run: pnpm i | ||
|
||
- name: Build | ||
run: pnpm run build | ||
- name: Test | ||
run: pnpm run test | ||
- uses: codecov/codecov-action@v4 | ||
- name: Release | ||
run: npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# https://github.com/semantic-release/semantic-release/issues/2313 | ||
# continue-on-error: true | ||
|
||
# - name: Publish to NPM | ||
# run: pnpm publish --access public --no-git-checks | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
# NPM_CONFIG_PROVENANCE: true |
Oops, something went wrong.