-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from symbol/dev
Releasing v0.1.0
- Loading branch information
Showing
20 changed files
with
5,954 additions
and
1,491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules/ | ||
build/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
extends: ['plugin:@typescript-eslint/recommended', 'prettier', 'plugin:prettier/recommended'], | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: 'module', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"semi": true, | ||
"trailingComma": "all", | ||
"singleQuote": true, | ||
"printWidth": 140, | ||
"tabWidth": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# CHANGELOG | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [v0.1.0][v0.1.0] - 14-Jan-2022 | ||
|
||
- fix: corrupted paper-wallet backup. | ||
|
||
[v0.1.0]: https://github.com/symbol/wallets-lib/releases/tag/v0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
pipeline { | ||
agent any | ||
|
||
options { | ||
skipStagesAfterUnstable() | ||
} | ||
|
||
parameters { | ||
string(name: 'VERSION_NUMBER', defaultValue: '0.1.0', description: 'Version Number') | ||
string(name: 'DEPLOY_ALPHA_BRANCH', defaultValue: 'dev', description: 'Deploy Alpha Branch Name') | ||
string(name: 'DEPLOY_RELEASE_BRANCH', defaultValue: 'main', description: 'Deploy Release Branch Name') | ||
} | ||
|
||
environment { | ||
RUNNING_ON_CI = 'true' | ||
VERSION_NUMBER = "${params.VERSION_NUMBER}" | ||
ALPHA_BUILD_NUMBER = sh(script: "echo `date +%Y%m%d%H%M`", returnStdout: true).trim() | ||
DEPLOY_ALPHA_BRANCH = "${params.DEPLOY_ALPHA_BRANCH}" | ||
DEPLOY_RELEASE_BRANCH = "${params.DEPLOY_RELEASE_BRANCH}" | ||
NPM_TOKEN_ID = credentials("NPM_TOKEN_ID") | ||
} | ||
|
||
stages { | ||
stage('Install & Build') { | ||
steps { | ||
sh "node --version" | ||
sh "npm --version" | ||
sh "npm ci" | ||
} | ||
} | ||
|
||
stage ('Lint') { | ||
steps { | ||
sh "npm run lint" | ||
} | ||
} | ||
|
||
stage ('Test') { | ||
steps { | ||
sh "echo 'Currently there are no tests to run!'" | ||
} | ||
} | ||
|
||
stage ('Publish - Alpha') { | ||
when { | ||
expression { | ||
BRANCH_NAME == DEPLOY_ALPHA_BRANCH | ||
} | ||
} | ||
steps { | ||
sh "echo //registry.npmjs.org/:_authToken=${NPM_TOKEN_ID} >> .npmrc" | ||
|
||
sh "npm version ${VERSION_NUMBER}-alpha-${ALPHA_BUILD_NUMBER} --commit-hooks false --git-tag-version false" | ||
sh "npm publish --tag alpha" | ||
} | ||
} | ||
|
||
stage ('Publish - Release') { | ||
when { | ||
expression { | ||
BRANCH_NAME == DEPLOY_RELEASE_BRANCH | ||
} | ||
} | ||
steps { | ||
sh "echo //registry.npmjs.org/:_authToken=${NPM_TOKEN_ID} >> .npmrc" | ||
|
||
sh "npm publish" | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
cleanWs() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './packages/paper-wallets'; |
Oops, something went wrong.