Skip to content

Commit 30d6a63

Browse files
Merge pull request #5 from cryptohub-digital/updates/release-01
v 0.2.0
2 parents 9c69848 + 12767b2 commit 30d6a63

19 files changed

+6179
-1594
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: ['https://blockindex.net/address/cb7147879011ea207df5b35a24ca6f0859dcfb145999']

.github/workflows/publish.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1+
name: Publish to NPM
12
on:
2-
push:
3-
tags:
4-
- '*.*.*'
5-
3+
release:
4+
types: [created]
65
jobs:
7-
publish:
6+
build:
87
runs-on: ubuntu-latest
98
steps:
10-
- uses: actions/checkout@v1
11-
- uses: actions/setup-node@v1
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
- name: Setup Node
12+
uses: actions/setup-node@v2
1213
with:
13-
node-version: 10
14-
- run: npm install
15-
- run: npm test
16-
- uses: JS-DevTools/npm-publish@v1
17-
with:
18-
token: ${{ secrets.NPM_TOKEN }}
19-
tag: ${{ github.event.release.tag_name }}
14+
node-version: '12.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
- name: Install & Build 🔧
17+
run: npm ci && npm run build
18+
- name: Publish package on NPM 📦
19+
run: npm publish --access public
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
unit:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: 12
17+
registry-url: https://registry.npmjs.org/
18+
- run: npm i
19+
- run: npm run unit
20+
format:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: actions/setup-node@v1
25+
with:
26+
node-version: 12
27+
registry-url: https://registry.npmjs.org/
28+
- run: npm i
29+
- run: npm run standard

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ results
1313

1414
npm-debug.log
1515
node_modules
16+
yarn.lock
1617

1718
.DS_Store
1819
.AppleDouble

.npmignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
# exclude tests
22
test/*
3-
4-
# exclude demo
5-
demo/*

README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
# ican.js
22

33
ICAN and BCAN validation, formatting and conversion in Javascript.
4-
Check the demo on [demo page] to try it.
5-
6-
[demo page]: https://cryptohub-digital.github.io/ican.js/
74

85
ICAN.js follows the [ISO 13616 IBAN Registry technical specification](https://www.swift.com/standards/data-standards/iban) with the addition of the Crypto addresses.
96

107
## Usage
118

12-
ICAN.js is compatible with both commonjs and AMD module definition. It can be used as a [node.js module](#in-nodejs) and [in the browser](#in-the-browser). It also has a bower manifest, a [Typescript definition](#with-typescript) and a [Meteor wrapper](#with-meteor-framework).
9+
ICAN.js is compatible with both commonjs and AMD module definition.
1310

1411
### NPM
1512

@@ -65,6 +62,20 @@ Ican.isValid('BE68539007547034');
6562
* printFormat(ican, separator)
6663
* electronicFormat(ican)
6764

65+
## Contributions
66+
67+
Feel free to contribute in any way.
68+
69+
We appreciate:
70+
- Fork [this repository](/fork)
71+
- Open [pull request](/pulls)
72+
- Send us some Øres / ₡ores: [cb7147879011ea207df5b35a24ca6f0859dcfb145999](https://blockindex.net/address/cb7147879011ea207df5b35a24ca6f0859dcfb145999)
73+
- Star this repository
74+
75+
## Epigram
76+
77+
> 「Cryptoni Confidimus」
78+
6879
## License
6980

70-
[CORE license](LICENSE)
81+
Licensed under the [CORE](LICENSE) License.

bower.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

demo/index.html

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)