generated from beefchimi/template-common
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 245e61e
Showing
26 changed files
with
12,124 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,20 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
# Markdown syntax specifies that trailing whitespaces can be meaningful, | ||
# so let’s not trim those. e.g. 2 trailing spaces = linebreak (<br />) | ||
# See https://daringfireball.net/projects/markdown/syntax#p | ||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
# Disable trailing whitespace removal in diff files, | ||
# where whitespace is meaningful | ||
[*.diff] | ||
trim_trailing_whitespace = 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,7 @@ | ||
node_modules/ | ||
|
||
# Ignore artifacts: | ||
build/ | ||
coverage/ | ||
dist/ | ||
storybook-static/ |
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,10 @@ | ||
{ | ||
"extends": [ | ||
"plugin:@beefchimi/esnext", | ||
// "plugin:@beefchimi/react", | ||
"plugin:@beefchimi/typescript", | ||
"plugin:@beefchimi/jest", | ||
// "plugin:@beefchimi/node", | ||
"plugin:@beefchimi/prettier" | ||
] | ||
} |
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,19 @@ | ||
👽️ dependency: | ||
- any: ['**/package*', '**/yarn.lock', '.pnp.*'] | ||
📝 documentation: '**/!(CHANGELOG|LICENSE|MIGRATION).@(md|mdx)' | ||
🔖 release: '**/CHANGELOG.md' | ||
🧪 testing: '**/*.@(spec|test).@(js|jsx|ts|tsx)' | ||
🔧 tooling: | ||
- any: | ||
[ | ||
'*', | ||
'.github/**/*', | ||
'.vscode/**/*', | ||
'.yarn*', | ||
'.yarn/**/*', | ||
'config/**/*', | ||
'scripts/**/*', | ||
'!package*', | ||
'!yarn.lock', | ||
'!*.@(md|mdx)', | ||
] |
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,18 @@ | ||
name: Labeler | ||
on: [pull_request_target] | ||
|
||
jobs: | ||
triage: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Apply PR labels | ||
uses: actions/labeler@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
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,26 @@ | ||
name: Lint | ||
on: [push] | ||
|
||
jobs: | ||
lint: | ||
name: Lint the codebase | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node 17.x and write .npmrc | ||
uses: actions/setup-node@v2 | ||
with: | ||
version: 17.x | ||
registry-url: 'https://npm.pkg.github.com' | ||
scope: '@beefchimi' | ||
|
||
- name: Install Dependencies and build (with cache) | ||
uses: bahmutov/npm-install@v1 | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Lint | ||
run: npm run lint |
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,26 @@ | ||
name: Test | ||
on: [push] | ||
|
||
jobs: | ||
test: | ||
name: Build and run Jest tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node 17.x and write .npmrc | ||
uses: actions/setup-node@v2 | ||
with: | ||
version: 17.x | ||
registry-url: 'https://npm.pkg.github.com' | ||
scope: '@beefchimi' | ||
|
||
- name: Install Dependencies and build (with cache) | ||
uses: bahmutov/npm-install@v1 | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Test | ||
run: npm run test |
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,95 @@ | ||
# OS files | ||
.DS_Store | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
# Caches | ||
.cache | ||
.eslintcache | ||
.sass-cache | ||
*.tsbuildinfo | ||
|
||
# Build | ||
build | ||
dist | ||
dist-ssr | ||
storybook-static | ||
|
||
# Environment | ||
.env | ||
.env.test | ||
.env.production | ||
|
||
# Vite | ||
*.local | ||
|
||
# Secrets | ||
secrets.json | ||
|
||
# Maps | ||
# *.*.map | ||
|
||
# Coverage | ||
coverage | ||
lib-cov | ||
*.lcov | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
.pnpm-debug.log* | ||
|
||
# Reports | ||
assets-manifest.json | ||
bundle-report.html | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Dependencies | ||
.lock-wscript | ||
.node_repl_history | ||
.npm | ||
.yarn-integrity | ||
node_modules | ||
web_modules/ | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn common | ||
.yarn/* | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
|
||
# Yarn Zero-Installs | ||
# !.yarn/cache | ||
|
||
# Yarn Non-Zero | ||
.pnp.* |
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,62 @@ | ||
# Root dotfiles | ||
.DS_Store | ||
.git | ||
.babelrc | ||
.editorconfig | ||
.eslintignore | ||
|
||
# Caches | ||
.cache | ||
.eslintcache | ||
.sass-cache | ||
*.tsbuildinfo | ||
|
||
# Dependencies | ||
.lock-wscript | ||
.node_repl_history | ||
.npm | ||
.npmignore | ||
.pnp.* | ||
.yarn | ||
.yarn-integrity | ||
package-lock.json | ||
yarn.lock | ||
node_modules | ||
web_modules/ | ||
|
||
# Build | ||
build | ||
# dist | ||
dist-ssr | ||
storybook-static | ||
|
||
# Environment | ||
.env | ||
.env.test | ||
.env.production | ||
|
||
# Coverage | ||
coverage | ||
lib-cov | ||
*.lcov | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
.pnpm-debug.log* | ||
|
||
# Reports | ||
assets-manifest.json | ||
bundle-report.html | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Other | ||
*.local | ||
# *.*.map | ||
# config | ||
secrets.json | ||
tests |
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.3.0 |
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,14 @@ | ||
{ | ||
"recommendations": [ | ||
"christian-kohler.npm-intellisense", | ||
"christian-kohler.path-intellisense", | ||
"codezombiech.gitignore", | ||
"DavidAnson.vscode-markdownlint", | ||
"dbaeumer.vscode-eslint", | ||
"EditorConfig.editorconfig", | ||
"esbenp.prettier-vscode", | ||
"Gruntfuggly.todo-tree", | ||
"stylelint.vscode-stylelint", | ||
"mrmlnc.vscode-scss" | ||
] | ||
} |
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,25 @@ | ||
{ | ||
"css.validate": false, | ||
"scss.validate": false, | ||
"javascript.validate.enable": false, | ||
"stylelint.enable": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": true | ||
}, | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"], | ||
"typescript.tsdk": "./node_modules/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true, | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.DS_Store": true, | ||
"lib": true | ||
}, | ||
"search.exclude": { | ||
"**/node_modules": true, | ||
"lib": true, | ||
"dist/": true, | ||
"storybook-static/": true | ||
} | ||
} |
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,7 @@ | ||
# [ISC License](https://spdx.org/licenses/ISC) | ||
|
||
Copyright (c) 2022, Curtis Dulmage <[email protected]> | ||
|
||
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
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,5 @@ | ||
# Template: Common | ||
|
||
[](https://opensource.org/licenses/ISC) | ||
|
||
This repository serves as a template for common web projects. |
Oops, something went wrong.