Skip to content

Commit 7d3de4a

Browse files
authored
feat: scaffold Style package (#19)
* npm audit fix * add docz scaffold * get docz to build * fix wallet typescript
1 parent 7763422 commit 7d3de4a

File tree

15 files changed

+54424
-48
lines changed

15 files changed

+54424
-48
lines changed

.github/workflows/node.js.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on: [pull_request]
77

88
jobs:
99
build:
10-
1110
runs-on: ubuntu-latest
1211

1312
strategy:
@@ -16,17 +15,17 @@ jobs:
1615
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1716

1817
steps:
19-
- uses: actions/checkout@v2
20-
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v2
22-
with:
23-
node-version: ${{ matrix.node-version }}
24-
cache: 'npm'
25-
- name: Install dependencies
26-
run: npm ci
27-
- name: Lint
28-
run: npm run lint
29-
- name: Build
30-
run: npm run build
31-
- name: Test
32-
run: npm test
18+
- uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: 'npm'
24+
- name: Install dependencies
25+
run: npm ci
26+
- name: Lint
27+
run: npm run lint
28+
- name: Build
29+
run: npm run build
30+
- name: Test
31+
run: npm test

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
packages/*/lib/
1+
packages/*/dist/
2+
packages/style/.docz/
23
package-lock.json

lerna.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"packages": [
3-
"packages/*"
4-
],
2+
"packages": ["packages/*"],
53
"version": "0.0.2"
64
}

package-lock.json

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/src/wallet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export default class Wallet implements IWallet<StateType> {
213213
)}&vs_currencies=${toCurrency}`
214214
const { data } = await axios.get(requestUrl)
215215

216-
const prices = Object.keys(data).reduce((acc: any, coinGeckoId) => {
216+
const prices = Object.keys(data).reduce((acc: Record<string, Record<string, number>>, coinGeckoId) => {
217217
const asset = Object.entries(cryptoassets).find((entry) => {
218218
return entry[1].coinGeckoId === coinGeckoId
219219
})
@@ -232,7 +232,7 @@ export default class Wallet implements IWallet<StateType> {
232232
}
233233
}
234234

235-
return Object.keys(prices).reduce((acc: any, assetName) => {
235+
return Object.keys(prices).reduce((acc: Record<string, number>, assetName) => {
236236
acc[assetName] = prices[assetName][toCurrency.toUpperCase()]
237237
return acc
238238
}, {})

packages/style/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.docz/

0 commit comments

Comments
 (0)