Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit 921525a

Browse files
committed
release: v1.0.0
0 parents  commit 921525a

19 files changed

+568
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
docs
2+
lib
3+
.husky

.eslintrc.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
module.exports = {
2+
env: {
3+
commonjs: true,
4+
es6: true,
5+
node: true
6+
},
7+
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
8+
globals: {
9+
NodeJS: true
10+
},
11+
parser: '@typescript-eslint/parser',
12+
parserOptions: {
13+
ecmaVersion: 6,
14+
sourceType: 'module'
15+
},
16+
plugins: ['@typescript-eslint'],
17+
rules: {
18+
'prettier/prettier': 'warn',
19+
'no-cond-assign': [2, 'except-parens'],
20+
'no-unused-vars': 0,
21+
'@typescript-eslint/no-unused-vars': 1,
22+
'no-empty': [
23+
'error',
24+
{
25+
allowEmptyCatch: true
26+
}
27+
],
28+
'prefer-const': [
29+
'warn',
30+
{
31+
destructuring: 'all'
32+
}
33+
],
34+
'spaced-comment': 'warn'
35+
},
36+
overrides: [
37+
{
38+
files: ['test/**/*.ts'],
39+
globals: {
40+
describe: true,
41+
it: true,
42+
beforeEach: true
43+
}
44+
}
45+
]
46+
};

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
patreon: Snazzah
2+
ko_fi: Snazzah
3+
github: Snazzah

.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://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/lint.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: ESLint
2+
on:
3+
push:
4+
branches:
5+
- "*"
6+
- "!docs"
7+
paths:
8+
- "src/**"
9+
- ".eslintignore"
10+
- ".eslintrc.*"
11+
- ".prettierrc"
12+
- ".github/workflows/lint.yml"
13+
workflow_dispatch:
14+
15+
jobs:
16+
lint:
17+
name: Lint source code
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v2
22+
23+
- name: Install Node v12
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: 12.x
27+
28+
- name: Install dependencies
29+
run: npm install
30+
31+
- name: Run ESLint
32+
run: npm run lint:fix
33+
34+
- name: Commit changes
35+
uses: EndBug/add-and-commit@v4
36+
with:
37+
add: src
38+
message: "chore(lint): auto-lint source code"
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Release
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
tag:
8+
name: Add/update 'latest' tag
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v2
14+
15+
- name: Run latest-tag
16+
uses: EndBug/latest-tag@v1
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
20+
# docs:
21+
# name: Update docs
22+
# runs-on: ubuntu-18.04
23+
# needs: tag
24+
#
25+
# steps:
26+
# - name: Checkout repository
27+
# uses: actions/checkout@v2
28+
#
29+
# - name: Setup Node 12.x
30+
# uses: actions/setup-node@v1
31+
# with:
32+
# node-version: 12.x
33+
#
34+
# - name: Install dependencies
35+
# run: npm install
36+
#
37+
# - name: Build documentation
38+
# run: npm run docs
39+
#
40+
# - name: Deploy documentation
41+
# uses: dbots-pkg/action-docs@v1
42+
# env:
43+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
45+
publish-npm:
46+
name: Publish on NPM
47+
runs-on: ubuntu-latest
48+
# needs: docs
49+
50+
steps:
51+
- uses: actions/checkout@v2
52+
53+
- name: Set up Node.js for NPM
54+
uses: actions/setup-node@v1
55+
with:
56+
registry-url: 'https://registry.npmjs.org'
57+
58+
- run: npm install --access public
59+
- run: npm publish
60+
env:
61+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62+
63+
publish-gpr:
64+
name: Publish on GPR
65+
runs-on: ubuntu-latest
66+
# needs: docs
67+
68+
steps:
69+
- uses: actions/checkout@v2
70+
71+
- name: Set up Node.js for GPR
72+
uses: actions/setup-node@v1
73+
with:
74+
registry-url: 'https://npm.pkg.github.com/'
75+
scope: '@dexare'
76+
77+
- run: npm install
78+
- run: npm publish
79+
env:
80+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Packages
2+
node_modules/
3+
yarn.lock
4+
package-lock.json
5+
6+
# Log files
7+
logs/
8+
*.log
9+
10+
# Miscellaneous
11+
.tmp/
12+
.vscode/
13+
docs/docs.json
14+
webpack/
15+
testing/
16+
.husky/_/
17+
lib/

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged
5+
npm run build

0 commit comments

Comments
 (0)