Skip to content

Commit

Permalink
v2.0.0 built
Browse files Browse the repository at this point in the history
  • Loading branch information
10xSebastian committed Jul 25, 2021
1 parent a3e4273 commit 3b153bf
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 77 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/build.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Blockchain.findByName('bsc')

```
yarn install
yarn start
yarn dev
```

### Release
Expand Down
11 changes: 9 additions & 2 deletions demo.html → dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" href="https://depay.fi/favicon.png"/>
<title>Demo</title>
<title>Development</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://cdn.ethers.io/lib/ethers-5.2.umd.min.js" type="application/javascript"></script>
<script crossorigin src="https://unpkg.com/depay-crypto-wallets@2/dist/umd/index.js"></script>
<script src="dist/umd/index.js"></script>
</head>
<body>
<div class="container">


<div class="row pt-5">
<div class="col">
<h1>DePay Web3Blockchains</h1>
<p>Open the browser inspector and try: `Web3Blockchains.Blockchain`</p>
</div>
</div>

</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/es/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/umd/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "depay-web3-blockchains",
"moduleName": "Blockchain",
"moduleName": "Web3Blockchains",
"version": "2.0.0",
"description": "JavaScript library containing aggregated information and abstractions for web3 blockchains.",
"main": "dist/cjs/index.js",
Expand All @@ -10,12 +10,12 @@
"dist"
],
"scripts": {
"build": "rm -rf dist && rollup -c",
"build": "rm -rf dist && rollup -c rollup.module.config.js",
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
"lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix",
"format": "prettier src --write",
"prepublishOnly": "yarn build",
"start": "rollup -c rollup.demo.config.js -w",
"dev": "rollup -c rollup.dev.config.js -w",
"test:units": "yarn build && npx jest --no-cache",
"test": "yarn test:units"
},
Expand Down
35 changes: 0 additions & 35 deletions rollup.demo.config.js

This file was deleted.

15 changes: 15 additions & 0 deletions rollup.dev.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import livereload from 'rollup-plugin-livereload'
import rollup from './rollup.module.config.js'
import serve from 'rollup-plugin-serve'

export default Object.assign({}, rollup, {
plugins: [...rollup.plugins,
serve({
open: 'true',
openPage: '/dev.html'
}),
livereload({
watch: ['dist', 'src']
})
]
})
File renamed without changes.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import polygon from './blockchains/polygon'
let all = [ethereum, bsc, polygon]

let Blockchain = {
all: all,
all,

findById: function (id) {
let fixedId = id
Expand Down

0 comments on commit 3b153bf

Please sign in to comment.