Skip to content

Commit

Permalink
Merge pull request #4 from ensdomains/feat/refactor
Browse files Browse the repository at this point in the history
feat: refactor
  • Loading branch information
LeonmanRolls authored Jul 4, 2024
2 parents fdea098 + 232fc47 commit c46b34e
Show file tree
Hide file tree
Showing 57 changed files with 973 additions and 22,653 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.16

- run: bun install
- run: bun run build
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.16

- run: bun install
- run: bun run lint
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,28 @@ yarn-error.log*
# subgraph
packages/subgraph/build/
packages/subgraph/src/types/

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps = true
13 changes: 13 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"formatter": {
"enabled": true,
"indentStyle": "space",
"lineWidth": 120
},
"linter": {
"enabled": true
},
"organizeImports": {
"enabled": true
}
}
Binary file added bun.lockb
Binary file not shown.
16 changes: 16 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">

<head>
<meta http-equiv="Content-Security-Policy" content="script-src 'self'">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ENS Deed Reclaim</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>

</html>
50 changes: 29 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
{
"name": "@project/monorepo",
"version": "1.0.0",
"keywords": [
"ethereum",
"react",
"workspaces",
"yarn"
],
"name": "@ensdomains/reclaim",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"react-app:build": "source .env && REACT_APP_RECLAIM_GRAPH_URI=$REACT_APP_RECLAIM_GRAPH_URI REACT_APP_ENS_GRAPH_URI=$REACT_APP_ENS_GRAPH_URI REACT_APP_STAGE=live yarn workspace @project/react-app build",
"react-app:publish": "echo 'reclaim.ens.domains' > packages/react-app/build/CNAME && yarn gh-pages -d packages/react-app/build",
"react-app:deploy": "yarn react-app:build && yarn react-app:publish",
"react-app:start": "yarn workspace @project/react-app start",
"react-app:start:live": "source .env && REACT_APP_RECLAIM_GRAPH_URI=$REACT_APP_RECLAIM_GRAPH_URI REACT_APP_ENS_GRAPH_URI=$REACT_APP_ENS_GRAPH_URI REACT_APP_STAGE=live yarn workspace @project/react-app start"
"dev": "vite",
"build": "tsc && vite build",
"lint": "biome check .",
"preview": "vite preview"
},
"workspaces": {
"nohoist": [
"**/@graphprotocol/graph-ts",
"**/@graphprotocol/graph-ts/**"
],
"packages": [
"packages/*"
]
"dependencies": {
"@ensdomains/ensjs": "^3.7.0",
"@ensdomains/thorin": "^0.6.50",
"@tanstack/react-query": "5.0.5",
"graphql": "^16.8.1",
"graphql-request": "^7.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-transition-state": "^1.1.5",
"styled-components": "^6.1.11",
"viem": "2.13.6",
"wagmi": "2.9.9"
},
"devDependencies": {
"@biomejs/biome": "^1.1.2",
"@types/react": "^18.2.23",
"@types/react-dom": "^18.2.8",
"@vitejs/plugin-react": "^4.1.0",
"@wagmi/cli": "2.1.8",
"buffer": "^6.0.3",
"typescript": "^5.2.2",
"vite": "^4.4.9"
}
}
5 changes: 0 additions & 5 deletions packages/contracts/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/contracts/package.json

This file was deleted.

11 changes: 0 additions & 11 deletions packages/contracts/src/abis.js

This file was deleted.

183 changes: 0 additions & 183 deletions packages/contracts/src/abis/deed.json

This file was deleted.

Loading

0 comments on commit c46b34e

Please sign in to comment.