Skip to content

Commit

Permalink
Merge pull request #1 from bchainhub/update/init-01
Browse files Browse the repository at this point in the history
Initial
  • Loading branch information
rastislavcore authored Jul 4, 2024
2 parents a93a632 + b05d031 commit 00944be
Show file tree
Hide file tree
Showing 15 changed files with 1,503 additions and 2 deletions.
63 changes: 63 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Report Bug 🪲
description: Create a bug report
labels:
- bug
body:
- type: markdown
attributes:
value: |
Please, provide as much details as possible to make proper evaluation and in the end resolve the bug report faster.
- type: markdown
attributes:
value: |
Software specific details.
- type: input
id: os
attributes:
label: OS and version
description: Name and version of OS used.
placeholder: OS
validations:
required: true

- type: textarea
id: bug
attributes:
label: Bug
description: Describe the Bug.
placeholder: Bug description
validations:
required: true

- type: textarea
id: reproduce
attributes:
label: Reproduce Bug
description: Steps to reproduce the behavior.
placeholder: 1. Step 1
validations:
required: true

- type: textarea
id: expected
attributes:
label: Expected behavior
description: Describe the result you are expecting.
placeholder: Result
validations:
required: true

- type: input
id: hash
attributes:
label: Commit hash
description: Commit hash if known.
placeholder: baf2aab0128f07262b564214ec70fc07befc6bb3

- type: textarea
id: additional
attributes:
label: Additional context
description: Please, place additional content or screenshots.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Readme
url: https://github.com/bchainhub/payto-url#readme
about: Read more about the Remark plug-in
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Feature request 🔮
description: Suggest an idea for this project
labels:
- enhancement
body:
- type: markdown
attributes:
value: |
Suggest an idea for this project and developers will consider the integration.
- type: textarea
id: problem
attributes:
label: Problem
description: Is your feature request related to a problem? Please describe.
validations:
required: true

- type: textarea
id: solution
attributes:
label: Solution
description: Describe the solution you'd like.
validations:
required: true

- type: textarea
id: alternatives
attributes:
label: Alternatives
description: Describe alternatives you've considered.

- type: textarea
id: implementation
attributes:
label: Implementation
description: Describe implementation with example of the code.

- type: textarea
id: additional
attributes:
label: Additional context
description: Please, place additional content or screenshots.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish to NPM

on:
release:
types: [created]

permissions:
id-token: write
contents: write

jobs:
build-and-publish:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
run: npm i

- name: Build Project
run: npm run build

- name: Publish package on NPM 📦
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Testing

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm i
- run: npm run build --if-present
- run: npm test
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pids
logs
results

npm-debug.log
node_modules
yarn.lock
yarn-error.log
package-lock.json

/dist-test/

.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
CORE License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"),
to to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

All distribution of the Covered Software in Source Code Form, including any
Modifications and/or Contributions must be disclosed and publicly available.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY CLAIM, DAMAGES OR
OTHER LIABILITIES, WHETHER IN AN ACTION OF A CONTRACT, TORT, OR OTHERWISE,
ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE, OR
OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit 00944be

Please sign in to comment.