Skip to content

Commit 7899507

Browse files
committed
skeleton
0 parents  commit 7899507

13 files changed

+6908
-0
lines changed

.babelrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"presets": [
3+
"@babel/env"
4+
],
5+
"plugins": [
6+
"@babel/plugin-proposal-optional-chaining",
7+
"@babel/plugin-proposal-class-properties",
8+
"@babel/plugin-proposal-private-methods"
9+
]
10+
}

.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
trim_trailing_whitespace = true
9+
end_of_line = lf
10+
insert_final_newline = true

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

.eslintrc.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
root: true
2+
parser: '@babel/eslint-parser'
3+
extends:
4+
- airbnb-base
5+
parserOptions:
6+
ecmaFeatures:
7+
jsx: true
8+
experimentalObjectRestSpread: true
9+
env:
10+
browser: true
11+
es6: true
12+
globals:
13+
globalThis: false
14+
rules:
15+
no-param-reassign: off
16+
import/extensions:
17+
- error
18+
- always
19+
no-plusplus: off
20+
object-curly-newline:
21+
- error
22+
- consistent: true

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/FUNDING.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# These are supported funding model platforms
2+
3+
github:
4+
- ftreesmilo
5+
patreon: ftrees
6+

.github/workflows/lint.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: ESLint
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version:
17+
- 16.x
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
- run: npm ci
26+
- run: npm test

.github/workflows/release.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- 'v[0-9]+.[0-9]+.[0-9]+'
6+
jobs:
7+
publish-npm:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: "marvinpinto/action-automatic-releases@latest"
11+
with:
12+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
13+
prerelease: false
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: 16
18+
registry-url: https://registry.npmjs.org/
19+
- run: npm ci
20+
- run: npm publish
21+
env:
22+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
*.tgz

.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.*
2+
*.tgz

index.js

Whitespace-only changes.

0 commit comments

Comments
 (0)