Skip to content

Commit

Permalink
feat: add husky
Browse files Browse the repository at this point in the history
  • Loading branch information
enrique committed Feb 8, 2023
1 parent cf9f563 commit 3584d0c
Show file tree
Hide file tree
Showing 162 changed files with 19,787 additions and 19,768 deletions.
1 change: 1 addition & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "extends": ["@commitlint/config-conventional"] }
9 changes: 7 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,27 @@ about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

## Describe the bug

A clear and concise description of what the bug is.

## To Reproduce
## To Reproduce

Steps to reproduce the behavior:

1.
2.

## Expected behavior

A clear and concise description of what you expected to happen.

## Screenshots

If applicable, add screenshots to help explain your problem.

## Additional context

Add any other context about the problem here.
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ about: Suggest a new feature for this project
title: ''
labels: ''
assignees: ''

---

## Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

## Describe the solution you'd like

A clear and concise description of what you want to happen.

## Additional context

Add any other context or screenshots about the feature request here.
14 changes: 7 additions & 7 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ Fill this section in if you know how this could or should be fixed.

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

* Version: x.x.x
* Python: x.x
* Solidity: x.x.x
* JavaScript: x.x.x
* Node: x.x.x
* OS: macOS/linux/win
- Version: x.x.x
- Python: x.x
- Solidity: x.x.x
- JavaScript: x.x.x
- Node: x.x.x
- OS: macOS/linux/win

## Failure Logs

Please include any relevant log snippets or files here.
Please include any relevant log snippets or files here.
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Related to Issue #
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Checklist:

- [ ] Follows the code style of this project.
Expand All @@ -20,4 +20,4 @@ Related to Issue #

#### Funny gif

![Put a link of a funny gif inside the parenthesis-->]()
![Put a link of a funny gif inside the parenthesis-->]()
2 changes: 1 addition & 1 deletion .github/workflows/push-to-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Push documentation to docs repo
on:
workflow_dispatch:
push:
branches: [ "master" ]
branches: ['master']

jobs:
push-to-docs:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: GitHub Release
on:
push:
tags:
- "v*.*.*"
- 'v*.*.*'

jobs:
release:
name: "Tagged Release"
runs-on: "ubuntu-latest"
name: 'Tagged Release'
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -19,7 +19,7 @@ jobs:
# Build process
- uses: actions/setup-node@v3
with:
node-version: "14.x"
node-version: '14.x'

- name: Set version to env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
Expand Down Expand Up @@ -56,14 +56,14 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated CHANGELOG.md update
commit_options: "--no-verify --signoff"
commit_options: '--no-verify --signoff'
file_pattern: CHANGELOG.md
branch: ${{ env.COMMIT_BRANCH }}

- name: Publish Github relase
uses: "marvinpinto/action-automatic-releases@latest"
uses: 'marvinpinto/action-automatic-releases@latest'
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
repo_token: '${{ secrets.GITHUB_TOKEN }}'
prerelease: false
files: |
CHANGELOG.md
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ jobs:
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

10 changes: 5 additions & 5 deletions .github/workflows/testing-compute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
- uses: nevermined-io/nvm-tools-actions@v0.7.1
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
opengsn: "true"
estuary: "true"
compute: "true"
contracts-version: "v3.0.0"
node-version: "develop"
opengsn: 'true'
estuary: 'true'
compute: 'true'
contracts-version: 'v3.0.0'
node-version: 'develop'

- name: Install dependencies
run: |
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/testing-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
- cron: '30 5 * * *'

jobs:

e2e:
runs-on: ubuntu-latest
steps:
Expand All @@ -16,11 +15,11 @@ jobs:
- uses: nevermined-io/nvm-tools-actions@v0.7.1
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
opengsn: "true"
estuary: "true"
compute: "true"
contracts-version: "v3.0.0"
node-version: "develop"
opengsn: 'true'
estuary: 'true'
compute: 'true'
contracts-version: 'v3.0.0'
node-version: 'develop'

- name: Install dependencies
run: |
Expand Down Expand Up @@ -59,7 +58,6 @@ jobs:
run: |
yarn run integration:compute
- name: Run external tests
env:
SEED_WORDS: ${{ secrets.seedWords }}
Expand All @@ -71,7 +69,6 @@ jobs:
NO_GRAPH: true
run: yarn run integration:external


- name: Run integration tests
env:
SEED_WORDS: ${{ secrets.seedWords }}
Expand Down Expand Up @@ -110,4 +107,3 @@ jobs:
IPFS_PROJECT_SECRET: ${{ secrets.IPFS_PROJECT_SECRET }}
run: |
yarn integration:e2e:mumbai
8 changes: 4 additions & 4 deletions .github/workflows/testing-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
- uses: nevermined-io/nvm-tools-actions@v0.7.1
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
opengsn: "true"
estuary: "true"
contracts-version: "v3.0.0"
node: "false"
opengsn: 'true'
estuary: 'true'
contracts-version: 'v3.0.0'
node: 'false'

- name: Install sponge
run: sudo apt-get install -y moreutils
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- uses: nevermined-io/nvm-tools-actions@v0.7.1
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
opengsn: "true"
estuary: "true"
contracts-version: "v3.0.0"
node-version: "develop"
opengsn: 'true'
estuary: 'true'
contracts-version: 'v3.0.0'
node-version: 'develop'

- name: Install dependencies
run: |
Expand Down Expand Up @@ -86,4 +86,3 @@ jobs:
ETH_PORT: 18545
run: |
yarn run test:cover
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx commitlint --edit
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

2 changes: 1 addition & 1 deletion prettier.config.js → .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
...require('eslint-config-nevermined/prettier.config'),
}
}
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

> 2 May 2022
- add aave service agreement to ddo when creating nft721 asset [`#248`](https://github.com/nevermined-io/sdk-js/pull/248)
- add aave service agreement to ddo when creating nft721 asset [`#248`](https://github.com/nevermined-io/sdk-js/pull/248)
- Adding v0.19.21 Changelog updates [`c93cdc5`](https://github.com/nevermined-io/sdk-js/commit/c93cdc55f139a43db4130ccb0f80924d2645a931)

#### [v0.19.21](https://github.com/nevermined-io/sdk-js/compare/v0.19.20...v0.19.21)
Expand Down Expand Up @@ -954,7 +954,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

> 18 January 2022
- Removing not used parameter [`#186`](https://github.com/nevermined-io/sdk-js/pull/186)
- Removing not used parameter [`#186`](https://github.com/nevermined-io/sdk-js/pull/186)
- [wip] Create agreement+pay in one transaction [`#183`](https://github.com/nevermined-io/sdk-js/pull/183)
- Adapting to contracts `v1.3.3` [`#177`](https://github.com/nevermined-io/sdk-js/pull/177)
- Adding v0.17.2 Changelog updates [`5eddda4`](https://github.com/nevermined-io/sdk-js/commit/5eddda43954e013e6e6f7344c9a877d801aacb5c)
Expand Down Expand Up @@ -1460,7 +1460,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- Feature/sync develop [`#268`](https://github.com/nevermined-io/sdk-js/pull/268)
- Quick fix for non-eip1559 networks [`#266`](https://github.com/nevermined-io/sdk-js/pull/266)
- integrate Permissions and refactor search query [`#264`](https://github.com/nevermined-io/sdk-js/pull/264)
- add aave service agreement to ddo when creating nft721 asset [`#248`](https://github.com/nevermined-io/sdk-js/pull/248)
- add aave service agreement to ddo when creating nft721 asset [`#248`](https://github.com/nevermined-io/sdk-js/pull/248)
- Get the keeper version from the artifacts instead of package version [`#244`](https://github.com/nevermined-io/sdk-js/pull/244)
- replace `metadata-api` url by `marketplace-api` and sort type [`#243`](https://github.com/nevermined-io/sdk-js/pull/243)
- fixing issues with BigNumbers [`#246`](https://github.com/nevermined-io/sdk-js/pull/246)
Expand Down Expand Up @@ -1499,7 +1499,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- Feature/190 add did to sec markets [`#191`](https://github.com/nevermined-io/sdk-js/pull/191)
- Adding utility methods for getting nft token uri [`#189`](https://github.com/nevermined-io/sdk-js/pull/189)
- Lint ... [`#187`](https://github.com/nevermined-io/sdk-js/pull/187)
- Removing not used parameter [`#186`](https://github.com/nevermined-io/sdk-js/pull/186)
- Removing not used parameter [`#186`](https://github.com/nevermined-io/sdk-js/pull/186)
- [wip] Create agreement+pay in one transaction [`#183`](https://github.com/nevermined-io/sdk-js/pull/183)
- Adapting to contracts `v1.3.3` [`#177`](https://github.com/nevermined-io/sdk-js/pull/177)
- Correct typo in route [`#184`](https://github.com/nevermined-io/sdk-js/pull/184)
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ You can then connect to the [Smart Contracts](https://github.com/nevermined-io/c

```js
const nevermined: Nevermined = await Nevermined.getInstance({
// the node of the blockchain to connect to, could also be infura
web3ProviderUri: 'http://localhost:8545',
// the uri of metadata
metadataUri: 'http://localhost:5000',
// the uri of nevermined node
neverminedNodeUri: 'http://localhost:8030',
// the uri of faucet
faucetUri: 'http://localhost:3001',
// address that node uses
neverminedNodeAddress: '0x00bd138abd70e2f00903268f3db08f2d25677c9e'
// the node of the blockchain to connect to, could also be infura
web3ProviderUri: 'http://localhost:8545',
// the uri of metadata
metadataUri: 'http://localhost:5000',
// the uri of nevermined node
neverminedNodeUri: 'http://localhost:8030',
// the uri of faucet
faucetUri: 'http://localhost:3001',
// address that node uses
neverminedNodeAddress: '0x00bd138abd70e2f00903268f3db08f2d25677c9e',
})
```

Expand Down
Loading

0 comments on commit 3584d0c

Please sign in to comment.