Skip to content

Commit 3a1fe47

Browse files
flyrmyrEric Meyer
authored andcommitted
Initial commit
0 parents  commit 3a1fe47

24 files changed

+11408
-0
lines changed

.editorconfig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
9+
# Change these settings to your own preference
10+
indent_style = space
11+
indent_size = 2
12+
13+
# We recommend you to keep these unchanged
14+
end_of_line = lf
15+
charset = utf-8
16+
trim_trailing_whitespace = true
17+
insert_final_newline = true
18+
19+
[*.md]
20+
trim_trailing_whitespace = false
21+
22+
[*.json]
23+
indent_size = 2
24+
25+
[*.{html,js,md}]
26+
block_comment_start = /**
27+
block_comment = *
28+
block_comment_end = */

.eslintrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
parser: "@typescript-eslint/parser",
3+
extends: ["@open-wc", "prettier"],
4+
ignorePatterns: "**/*.js",
5+
plugins: ["@typescript-eslint"],
6+
rules: {
7+
"no-unused-vars": "off",
8+
"@typescript-eslint/no-unused-vars": ["warn"],
9+
"class-methods-use-this": "off",
10+
"import/no-unresolved": "off",
11+
"no-use-before-define": ["error", { functions: false }],
12+
"lines-between-class-members": "off",
13+
},
14+
};

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"

.github/workflows/ci.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v2
10+
11+
- name: Cache pnpm modules
12+
id: cache-modules
13+
uses: actions/cache@v2
14+
with:
15+
path: |
16+
~/.pnpm-store
17+
**/node_modules
18+
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'rollup.config.js') }}
19+
restore-keys: |
20+
${{ runner.os }}-
21+
22+
- name: Setup pnpm
23+
uses: pnpm/[email protected]
24+
with:
25+
version: latest
26+
run_install: false
27+
28+
- name: Install Packages
29+
if: steps.cache-modules.outputs.cache-hit != 'true'
30+
run: pnpm install
31+
32+
- name: Build
33+
run: pnpm build

.github/workflows/release.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
release-bundle:
7+
runs-on: ubuntu-latest
8+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev'
9+
10+
outputs:
11+
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
12+
new_release_version: ${{ steps.semantic.outputs.new_release_version }}
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Cache pnpm modules
18+
id: cache-modules
19+
uses: actions/cache@v2
20+
with:
21+
path: |
22+
~/.pnpm-store
23+
**/node_modules
24+
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'rollup.config.js') }}
25+
restore-keys: |
26+
${{ runner.os }}-
27+
28+
- name: Setup pnpm
29+
uses: pnpm/[email protected]
30+
with:
31+
version: latest
32+
run_install: false
33+
34+
- name: Install Packages
35+
if: steps.cache-modules.outputs.cache-hit != 'true'
36+
run: pnpm install
37+
38+
- name: Build
39+
run: pnpm build
40+
41+
- name: Release
42+
run: pnpx semantic-release
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Lint PR"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
name: Validate PR title
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: amannn/action-semantic-pull-request@v4
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/validate.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: HACS Validation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
hacs:
9+
runs-on: "ubuntu-latest"
10+
steps:
11+
- name: Checkout
12+
uses: "actions/checkout@v2"
13+
- name: Validate HACS
14+
uses: "hacs/action@main"
15+
with:
16+
category: "plugin"

.github/workflows/validate.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Validation
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: "0 0 * * *"
8+
workflow_dispatch:
9+
10+
jobs:
11+
# Valiate With HACS Action
12+
hacs:
13+
runs-on: "ubuntu-latest"
14+
steps:
15+
- uses: "hacs/action@main"
16+
with:
17+
category: "plugin"

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## editors
2+
/.idea
3+
/.vscode
4+
5+
## system files
6+
.DS_Store
7+
8+
## npm
9+
/node_modules/
10+
/npm-debug.log
11+
.pnpm-debug.log
12+
13+
## testing
14+
/coverage/
15+
test/*.spec.js
16+
test/screenshots/**/failed
17+
18+
## temp folders
19+
/.tmp/
20+
21+
# build
22+
_site/
23+
/out-tsc/
24+
/.rollup.cache/
25+
.tsbuildinfo
26+
27+
storybook-static
28+
custom-elements.json

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "es5",
4+
"singleQuote": false,
5+
"printWidth": 80,
6+
"tabWidth": 2,
7+
"useTabs": false,
8+
"arrowParens": "always"
9+
}

0 commit comments

Comments
 (0)