Skip to content

Commit b154050

Browse files
committed
release 1.0.0
0 parents  commit b154050

14 files changed

+23670
-0
lines changed

.babelrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"comments": false,
3+
"env": {
4+
"test": {
5+
"plugins": ["@babel/plugin-transform-runtime"]
6+
}
7+
},
8+
"presets": ["@babel/preset-env"]
9+
}

.eslintrc.js

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
'jest/globals': true,
6+
node: true
7+
},
8+
extends: [ 'standard' ],
9+
parserOptions: {
10+
ecmaFeatures: {
11+
jsx: true
12+
},
13+
ecmaVersion: 13,
14+
sourceType: 'module'
15+
},
16+
plugins: [ 'jest', 'react' ],
17+
rules: {
18+
'array-bracket-spacing': 0,
19+
'computed-property-spacing': [ 'error', 'always' ],
20+
'keyword-spacing': 0,
21+
'no-async-promise-executor': 0,
22+
'no-constant-condition': 0,
23+
'no-global-assign': 0,
24+
'no-labels': 0,
25+
'no-tabs': 0,
26+
'no-useless-escape': 0,
27+
'padded-blocks': 0,
28+
'react/prop-types': 0,
29+
'space-before-function-paren': [ 'error', {
30+
anonymous: 'always',
31+
asyncArrow: 'always',
32+
named: 'never'
33+
} ],
34+
'space-in-parens': 0,
35+
'template-curly-spacing': [ 'error', 'always' ],
36+
indent: [
37+
'error', 'tab', {
38+
SwitchCase: 1
39+
}
40+
],
41+
semi: 0
42+
}
43+
};

.github/FUNDING.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
custom: ["https://www.paypal.me/webKrafters"] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
4+
# github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
5+
# patreon: # Replace with a single Patreon username
6+
# open_collective: # Replace with a single Open Collective username
7+
# ko_fi: # Replace with a single Ko-fi username
8+
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
9+
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
10+
# liberapay: # Replace with a single Liberapay username
11+
# issuehunt: # Replace with a single IssueHunt username
12+
# otechie: # Replace with a single Otechie username
13+
# lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry

.github/workflows/npm-publish.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: NPM Publish CI
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [ created ]
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
# Setup .npmrc file to publish to npm
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: '16.x'
19+
registry-url: 'https://registry.npmjs.org'
20+
- run: npm ci
21+
- run: npm install
22+
- run: npm run build
23+
- run: npm publish --access public
24+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_RELEASE_CLI_0 }}

.github/workflows/test.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test CI
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
push:
7+
branches: [ master ]
8+
workflow_dispatch:
9+
branches: [ master ]
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [ 12.x, 14.x, 15.x ]
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
28+
- run: npm ci
29+
- run: npm install
30+
- run: npm run test:core -- --coverage
31+
32+
- uses: coverallsapp/github-action@master
33+
with:
34+
github-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.code-workspace
2+
.DS_Store
3+
.history
4+
.vscode
5+
coverage
6+
debug.log
7+
dist
8+
node_modules
9+
npm-debug.log*
10+
report.*.json

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 webKrafters
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require( './dist' );

0 commit comments

Comments
 (0)