Skip to content

Commit 9495cf0

Browse files
authored
v0.0.10 (#3)
1 parent 96ff27b commit 9495cf0

File tree

109 files changed

+949
-31820
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+949
-31820
lines changed

.eslintignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules/
2+
.next
3+
build
4+
dist
5+
*.tsbuildinfo
6+
*.gitignore
7+
*.svg
8+
*.lock
9+
*.npmignore
10+
examples/**

.gitattributes

+32
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,36 @@
1+
# git merges
2+
# // git config --global merge.ours.driver true
3+
# avoid merge conflicts in CHANGELOG
4+
/CHANGELOG.md merge=union
5+
6+
/.github export-ignore
7+
/.editorconfig export-ignore
8+
/.gitattributes export-ignore
9+
/.gitignore export-ignore
10+
/tools export-ignore
11+
12+
hooks/* text eol=lf
13+
tools/* text eol=lf
14+
115
docs/**/* linguist-generated=true
216
*.html linguist-generated=true
317
*.css linguist-generated=true
18+
packages/**/*/dist linguist-generated=true
19+
*.esm.js linguist-generated=true
20+
*.cjs.js linguist-generated=true
21+
*.cjs linguist-generated=true
22+
*.spec.js linguist-generated=true
23+
*.js.map linguist-generated=true
24+
25+
/.yarn/releases/** binary
26+
/.yarn/plugins/** binary
27+
git-hash export-subst
28+
*.sh text eol=lf
29+
security.txt ident
30+
LAST_COMMIT export-subst
31+
date*.txt filter=dater
32+
33+
LICENSE* text
34+
*.yml text
35+
*.sh eol=lf
436

.github/dependabot.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'npm'
4+
directory: '/'
5+
schedule:
6+
interval: 'weekly'
7+
open-pull-requests-limit: 0
8+
9+
- package-ecosystem: 'github-actions'
10+
directory: '/'
11+
schedule:
12+
interval: 'weekly'

.github/workflows/automated-ci.yml

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
2+
3+
name: automated-ci
4+
on:
5+
pull_request_target:
6+
paths:
7+
- '.github/workflows/automated-ci.yml'
8+
- 'package*.json'
9+
- 'yarn.lock'
10+
11+
defaults:
12+
run:
13+
shell: bash
14+
15+
env:
16+
CI: true
17+
FORCE_COLOR: 2
18+
19+
jobs:
20+
automation:
21+
name: Dependabot ${{ matrix.node }} on ${{ matrix.os }}
22+
runs-on: ${{ matrix.os }}
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
node: ['14.x']
28+
os: ['ubuntu-latest']
29+
30+
steps:
31+
- name: checkout
32+
uses: actions/checkout@v2
33+
if:
34+
github.actor == 'dependabot[bot]' || github.actor ==
35+
'dependabot-preview[bot]'
36+
- name: reattach HEAD to Head Ref
37+
# b/c checkout action leaves in detached head state https://github.com/actions/checkout/issues/6
38+
run: git checkout "$(echo ${{ github.head_ref }})"
39+
if:
40+
github.head_ref != '' && (github.actor == 'dependabot[bot]' ||
41+
github.actor == 'dependabot-preview[bot]')
42+
43+
- name: Actions Dependabot
44+
run: |
45+
ACTIONS_ENV="$(echo ${{ github.head_ref }})"
46+
echo $ACTIONS_ENV
47+
if:
48+
github.actor == 'dependabot[bot]' || github.actor ==
49+
'dependabot-preview[bot]'
50+
- name: Configure Git
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
run: |
54+
git config user.name "${GITHUB_ACTOR}"
55+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
56+
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
57+
if:
58+
github.actor == 'dependabot[bot]' || github.actor ==
59+
'dependabot-preview[bot]'
60+
- name: commit and push changes
61+
run: |
62+
git add .
63+
if output=$(git status --porcelain) && [ ! -z "$output" ]; then
64+
git commit -m '[BOT]'
65+
git push
66+
fi
67+
if:
68+
github.actor == 'dependabot[bot]' || github.actor ==
69+
'dependabot-preview[bot]'
70+
approve:
71+
name: auto-approve dependabot PRs
72+
runs-on: ubuntu-latest
73+
needs: [automation]
74+
steps:
75+
- name: approve
76+
uses: hmarr/[email protected]
77+
if:
78+
github.actor == 'dependabot[bot]' &&
79+
contains(github.event.pull_request.labels.*.name, 'dependencies')
80+
with:
81+
github-token: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/pipeline.yml

+36-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: nodejs
22

3-
on: ['push']
3+
on:
4+
push:
5+
branches:
6+
- "test-ci-release"
7+
tags-ignore:
8+
- "*"
9+
410

511
jobs:
612
build:
@@ -16,6 +22,8 @@ jobs:
1622
uses: actions/setup-node@v2
1723
with:
1824
node-version: ${{ matrix.node-version }}
25+
fetch-depth: 0
26+
1927
- name: Get yarn cache directory path
2028
id: yarn-cache-dir-path
2129
run: echo "::set-output name=dir::$(yarn cache dir)"
@@ -37,5 +45,30 @@ jobs:
3745
- run: npm i -g lerna
3846
id: lerna
3947

40-
- run: lerna bootstrap
41-
id: bootstrap
48+
- run: yarn run build
49+
id: turbo
50+
51+
- run: lerna exec npm pack
52+
id: pack
53+
54+
- run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
55+
56+
- uses: "marvinpinto/action-automatic-releases@latest"
57+
with:
58+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
59+
automatic_release_tag: "latest"
60+
prerelease: true
61+
files: |
62+
LICENSE.md
63+
packages/walletlink/*.tgz
64+
packages/core/*.tgz
65+
packages/eip1193/*.tgz
66+
packages/frame/*.tgz
67+
packages/magic/*.tgz
68+
packages/metamask/*.tgz
69+
packages/network/*.tgz
70+
packages/store/*.tgz
71+
packages/types/*.tgz
72+
packages/walletconnect/*.tgz
73+
packages/walletlink/*.tgz
74+
id: "automatic_releases"

.gitignore

+29-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
1-
*.tar.gz
1+
# -*- mode: gitignore; -*-
2+
*~
3+
\#*\#
24
*.tgz
5+
*.tar.gz
36
*.zip
47
*.tar
5-
8+
packages/**/dist/*.js.map
9+
packages/**/dist/*.js
10+
packages/**/dist/*.d.ts
11+
packages/**/dist/**
12+
packages/**/dist/cjs/*.js
13+
packages/**/dist/cjs/*.js.map
14+
packages/**/dist/cjs/*.d.ts
15+
packages/magic/dist/cjs
16+
17+
packages/**/package-lock.json
18+
package-lock.json
19+
tsbuildinfo
20+
*.tsbuildinfo
21+
*.log
22+
.npmrc
23+
.eslintcache
24+
.turbo
25+
.vercel
26+
dist
627

728
node_modules
829
.pnp
@@ -34,3 +55,9 @@ yarn-error.log*
3455

3556
# turbo
3657
.turbo
58+
.vscode/*
59+
!.vscode/settings.json
60+
!.vscode/tasks.json
61+
!.vscode/launch.json
62+
!.vscode/extensions.json
63+
*.code-workspace

.prettierignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.cache
2+
public/
3+
build/
4+
out/
5+
dist/
6+
*.min.js
7+
*.svg
8+
*.png
9+
*.css
10+
*.scss
11+
*.html
12+
*.htm
13+
*.xml
14+
*.xhtml
15+
*.uml
16+
*.json
17+
*.js
18+
*.d.ts

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
# [disco3](https://manifoldfinance.com)
44

5-
> a performant web3 react library
6-
7-
[![build - passing](https://img.shields.io/badge/build-passing-black)](https://) [![manifoldfinance.eth](https://img.shields.io/static/v1?label=&message=manifoldfinance.eth&color=black&logo=ethereum&logoColor=white)](https://etherscan.io/enslookup-search?search=manifoldfinance.eth) [![0.8.0](https://img.shields.io/static/v1?label=&message=0.8.0&color=black&logo=solidity&logoColor=white)](https://etherscan.io/enslookup-search?search=manifoldfinance.eth) [![manifoldfinance - disco3-react](https://img.shields.io/static/v1?label=manifoldfinance&message=disco3-react&color=black&logo=github)](https://github.com/manifoldfinance/disco3-react "Go to GitHub repo")
8-
5+
> a performant web3 react library
96
7+
[![build - passing](https://img.shields.io/badge/build-passing-black)](https://)
8+
[![manifoldfinance.eth](https://img.shields.io/static/v1?label=&message=manifoldfinance.eth&color=black&logo=ethereum&logoColor=white)](https://etherscan.io/enslookup-search?search=manifoldfinance.eth)
9+
[![0.8.0](https://img.shields.io/static/v1?label=&message=0.8.0&color=black&logo=solidity&logoColor=white)](https://etherscan.io/enslookup-search?search=manifoldfinance.eth)
10+
[![manifoldfinance - disco3-react](https://img.shields.io/static/v1?label=manifoldfinance&message=disco3-react&color=black&logo=github)](https://github.com/manifoldfinance/disco3-react 'Go to GitHub repo')
1011

1112
## Documentation
1213

@@ -18,11 +19,10 @@
1819

1920
This turborepo has some additional tools already setup for you:
2021

21-
22-
2322
## Setup
2423

25-
This repository is used in the `npx create-turbo` command, and selected when choosing which package manager you wish to use with your monorepo (Yarn).
24+
This repository is used in the `npx create-turbo` command, and selected when choosing which package
25+
manager you wish to use with your monorepo (Yarn).
2626

2727
### Build
2828

lerna.json

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
{
2-
"version": "1.1.3",
3-
"npmClient": "yarn",
4-
"useWorkspaces": true,
5-
"command": {
2+
"version": "0.0.11",
3+
"npmClient": "yarn",
4+
"useWorkspaces": true,
5+
"command": {
66
"publish": {
7-
"ignoreChanges": ["ignored-file", "*.md"],
8-
"message": "chore(release): publish",
9-
"registry": "https://npm.pkg.github.com"
7+
"ignoreChanges": [
8+
"ignored-file",
9+
"*.md"
10+
],
11+
"message": "chore(release): publish",
12+
"registry": "https://npm.pkg.github.com"
1013
},
1114
"bootstrap": {
12-
"ignore": "component-*",
13-
"npmClientArgs": ["--no-lockfile"]
15+
"ignore": "component-*",
16+
"npmClientArgs": [
17+
"--no-lockfile"
18+
]
1419
},
1520
"publishConfig": {
16-
"directory": "dist"
21+
"directory": "dist"
1722
}
1823
}
1924
}

package.json

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@disco3/monorepo",
3-
"version": "0.0.0",
3+
"version": "0.0.1",
44
"private": true,
55
"workspaces": [
66
"packages/*"
@@ -9,14 +9,17 @@
99
"build": "turbo run build",
1010
"dev": "turbo run dev --parallel",
1111
"lint": "turbo run lint",
12-
"format": "prettier --write \"**/*.{ts,tsx,md}\""
12+
"format": "prettier --config .prettierrc.js --write \"**/*.{ts,tsx,md}\"",
13+
"deduplicate": "npx yarn-deduplicate -s fewer yarn.lock",
14+
"deduplicate:check": "npx yarn-deduplicate -s fewer yarn.lock --list --fail"
1315
},
1416
"devDependencies": {
1517
"lerna": "^4.0.0",
1618
"prettier": "^2.5.1",
1719
"turbo": "latest"
1820
},
1921
"turbo": {
22+
"baseBranch": "origin/trunk",
2023
"pipeline": {
2124
"build": {
2225
"dependsOn": [
@@ -38,5 +41,15 @@
3841
"engines": {
3942
"npm": ">=7.0.0",
4043
"node": ">=14.0.0"
44+
},
45+
"dependencies": {
46+
"@testing-library/react-hooks": "^7.0.2",
47+
"@types/jest": "^27.4.0",
48+
"@types/node": "^14",
49+
"@types/react-test-renderer": "^17.0.1",
50+
"ts-jest": "^27.1.2",
51+
"ts-node": "^10.4.0",
52+
"tslib": "^2.3.1",
53+
"typescript": "^4.5.4"
4154
}
4255
}

packages/config/eslint-preset.js

-11
This file was deleted.

0 commit comments

Comments
 (0)