Skip to content

Commit

Permalink
feat(refactor): Restructure project to mono repo (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbulat authored Oct 11, 2024
2 parents dcea67b + e5b9607 commit 3f2d8bc
Show file tree
Hide file tree
Showing 510 changed files with 674 additions and 211 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
*.css
*.sass
*.scss
*.woff2
*.svg
*.png
*.json
Expand Down
19 changes: 11 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@
"unused-imports",
"react-hooks"
],
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": ["tsconfig.json", "packages/*/tsconfig.json"]
}
}
},
"rules": {
// Stylistic
// ---------
Expand Down Expand Up @@ -85,13 +96,5 @@
}
],
"@typescript-eslint/no-shadow": "error"
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"typescript": {}
}
}
}
8 changes: 5 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:

- name: Merge
uses: devmasx/merge-branch@master

with:
type: now
from_branch: main
Expand All @@ -28,6 +29,7 @@ jobs:
build:
runs-on: ubuntu-latest
needs: merge

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -42,14 +44,14 @@ jobs:
run: yarn install

- name: Build
working-directory: '.'
working-directory: './packages/app'
run: yarn build

- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: build
path: packages/app/build

deploy:
runs-on: ubuntu-latest
Expand All @@ -67,7 +69,7 @@ jobs:
- uses: actions/download-artifact@master
with:
name: github-pages
path: build
path: packages/app/build
- uses: actions/configure-pages@v5
- id: deployment
uses: actions/deploy-pages@main
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ To create a production build of the application, run:
```
yarn build
```
The production-ready files will be generated in the `build` directory.

The production-ready files will be generated in the `build` directory.
20 changes: 9 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
{
"name": "developer-console",
"name": "polkadot-developer-console",
"private": true,
"version": "0.9.1-alpha",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"clear": "rm -rf node_modules build tsconfig.tsbuildinfo yarn.lock",
"lint": "eslint . --fix && npx prettier --write .",
"test": "mocha",
"test:storage": "tsup src/test/storageQueries.ts && node dist/storageQueries.cjs",
"preview": "vite preview"
"clear": "npm run --workspaces clear && rm -rf node_modules coverage",
"build": "npm run build --workspaces --if-present",
"lint": "eslint './**' --fix && npx prettier --write .",
"test": "npm run test --workspaces --if-present"
},
"workspaces": [
"packages/*"
],
"dependencies": {
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^7.0.0",
Expand Down Expand Up @@ -79,7 +77,7 @@
"prettier-plugin-organize-imports": "^3.2.4",
"sass": "^1.78.0",
"tsup": "^8.0.2",
"tsx": "^4.15.1",
"tsx": "^4.19.1",
"typescript": "^5.2.2",
"vite": "^5.2.10",
"vite-plugin-checker": "^0.7.2",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
55 changes: 55 additions & 0 deletions packages/app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "@polkadot-developer-console/app",
"version": "0.9.1-alpha",
"type": "module",
"scripts": {
"dev": "npx vite",
"build": "npx tsc && npx vite build",
"clear": "rm -rf node_modules build tsconfig.tsbuildinfo yarn.lock",
"lint": "eslint . --fix && npx prettier --write .",
"test": "npx mocha",
"preview": "npx vite preview"
},
"dependencies": {
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^7.0.0",
"@dnd-kit/sortable": "^8.0.0",
"@fortawesome/fontawesome-svg-core": "^6.5.2",
"@fortawesome/free-brands-svg-icons": "^6.5.2",
"@fortawesome/free-solid-svg-icons": "^6.5.2",
"@fortawesome/react-fontawesome": "^0.2.0",
"@ledgerhq/hw-transport-webhid": "^6.29.2",
"@polkadot-cloud/icons": "1.0.0",
"@polkadot/api": "^12.0.2",
"@polkadot/rpc-provider": "12.0.2",
"@tanstack/react-query": "^5.53.3",
"@w3ux/extension-assets": "^0.3.1",
"@w3ux/hooks": "^1.1.0",
"@w3ux/react-connect-kit": "^1.7.0",
"@w3ux/react-odometer": "^1.1.0",
"@w3ux/react-polkicon": "^1.3.0",
"@w3ux/utils": "^0.9.0",
"@walletconnect/modal": "^2.6.2",
"@walletconnect/universal-provider": "^2.15.2",
"@walletconnect/utils": "^2.15.3",
"@web3modal/wagmi": "^5.1.5",
"@zondax/ledger-substrate": "^0.44.2",
"bignumber.js": "^9.1.2",
"buffer": "^6.0.3",
"compare-versions": "^6.1.1",
"date-fns": "^3.3.1",
"framer-motion": "^11.1.7",
"html5-qrcode": "^2.3.8",
"qrcode-generator": "^1.4.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-error-boundary": "^4.0.13",
"react-powerglitch": "^1.0.3",
"react-router-dom": "^6.23.0",
"scale-ts": "^1.6.0",
"styled-components": "^6.1.8",
"usehooks-ts": "^3.1.0",
"viem": "^2.21.1",
"wagmi": "^2.12.8"
}
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 3f2d8bc

Please sign in to comment.