-
Notifications
You must be signed in to change notification settings - Fork 36
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 #2 from Yuripetusko/github-package
GitHub package
- Loading branch information
Showing
51 changed files
with
3,413 additions
and
1,233 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,15 @@ | ||
{ | ||
"presets": [ | ||
"@babel/typescript", | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { "browsers": "defaults, not ie 11", "node": true }, | ||
"modules": false, | ||
"useBuiltIns": false, | ||
"loose": true | ||
} | ||
] | ||
], | ||
"plugins": ["@babel/plugin-proposal-optional-chaining", "@babel/plugin-transform-modules-commonjs"] | ||
} |
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,46 @@ | ||
name: NPM publish CD workflow | ||
|
||
on: | ||
release: | ||
# This specifies that the build will be triggered when we publish a release | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
|
||
# Run on latest version of ubuntu | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
# "ref" specifies the branch to check out. | ||
# "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted | ||
ref: ${{ github.event.release.target_commitish }} | ||
# install Node.js | ||
- name: Use Node.js 14 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
# Specifies the registry, this field is required! | ||
registry-url: https://npm.pkg.github.com/ | ||
scope: "@Yuripetusko" | ||
# clean install of your projects' deps. We use "npm ci" to avoid package lock changes | ||
- run: yarn install | ||
# set up git since we will later push to the repo | ||
- run: git config --global user.email "[email protected]" && git config --global user.name "$GITHUB_ACTOR" | ||
# upgrade npm version in package.json to the tag used in the release. | ||
- run: yarn version ${{ github.event.release.tag_name }} | ||
# build the project | ||
- run: yarn build | ||
# run tests just in case | ||
- run: yarn test | ||
# publish to NPM -> there is one caveat, continue reading for the fix | ||
- run: yarn publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
# push the version changes to GitHub | ||
- run: git push | ||
env: | ||
# The secret is passed automatically. Nothing to configure. | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
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,15 @@ | ||
name: Tests CI | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run unit tests | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '14' | ||
- run: yarn install | ||
- run: yarn test | ||
|
||
|
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 |
---|---|---|
|
@@ -4,8 +4,9 @@ build | |
archive | ||
.vscode | ||
.idea | ||
.npmrc | ||
dist | ||
|
||
/dist/rmrk.js | ||
/remarks*.json | ||
/dump-*.json | ||
throwaway.js | ||
throwaway.js |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,34 @@ | ||
/*! | ||
* The buffer module from node.js, for the browser. | ||
* | ||
* @author Feross Aboukhadijeh <https://feross.org> | ||
* @license MIT | ||
*/ | ||
|
||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
|
||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
|
||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
||
/** | ||
* [js-sha3]{@link https://github.com/emn178/js-sha3} | ||
* | ||
* @version 0.8.0 | ||
* @author Chen, Yi-Cyuan [[email protected]] | ||
* @copyright Chen, Yi-Cyuan 2015-2018 | ||
* @license MIT | ||
*/ |
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 @@ | ||
export * as extensionDapps from "@polkadot/extension-dapp"; | ||
export * as utilCrypto from "@polkadot/util-crypto"; | ||
export * as util from "@polkadot/util"; | ||
export * as api from "@polkadot/api"; |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.