Skip to content

Commit

Permalink
feat: Move nested frontend & contracts packages to the root
Browse files Browse the repository at this point in the history
  • Loading branch information
wottpal committed Oct 11, 2023
1 parent de34e03 commit 40d397f
Show file tree
Hide file tree
Showing 80 changed files with 24 additions and 78 deletions.
4 changes: 2 additions & 2 deletions .vscode/inkathon.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
},
{
"name": "Frontend",
"path": "../packages/frontend"
"path": "../frontend"
},
{
"name": "Contracts",
"path": "../packages/contracts"
"path": "../contracts"
}
],
"settings": {
Expand Down
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.
3 changes: 2 additions & 1 deletion packages/contracts/package.json → contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"test": "./test-all.sh",
"build": "./build-all.sh",
"node": "substrate-contracts-node --dev --port 9944 --base-path ./.node-data",
"deploy": "ts-node scripts/deploy.ts",
"script": "ts-node --cwd=scripts",
"deploy": "pnpm run script deploy",
"contracts-ui": "open https://contracts-ui.substrate.io/?rpc=ws://127.0.0.1:9944",
"explorer-ui": "open https://polkadot.js.org/apps/#/explorer?rpc=ws://127.0.0.1:9944",
"typecheck": "tsc --noEmit"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ NEXT_PUBLIC_URL=http://localhost:3000

## The default chain identifer
## IMPORTANT: Make sure to add the following for all contracts:
## → ABIs under `/packages/contracts/deployments/{contract}/metadata.json` (auto-generated on build)
## → Addresses for all chains under `/packages/contracts/deployments/{contract}/{chain}.ts` (auto-generated on deploy)
## → ABIs under `/contracts/deployments/{contract}/metadata.json` (auto-generated on build)
## → Addresses for all chains under `/contracts/deployments/{contract}/{chain}.ts` (auto-generated on deploy)
## NOTE: See dynamic contract imports under `src/deployments/deployments.ts`
NEXT_PUBLIC_DEFAULT_CHAIN=alephzero-testnet

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
...require('../../.prettierrc.js'),
...require('../.prettierrc.js'),
plugins: ['prettier-plugin-twin.macro'],
}
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions packages/frontend/package.json → frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
}
},
"scripts": {
"postinstall": "cp -n .env.local.example .env.local; true",
"dev": "NODE_ENV=development next dev",
"node": "pnpm run --filter contracts node",
"dev-and-node": "concurrently \"pnpm dev\" \"pnpm node\" --names \"Next,Node\" --kill-others",
Expand Down
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.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
},
"private": true,
"workspaces": [
"packages/*"
"frontend",
"contracts"
],
"engines": {
"node": ">=16 <=18",
"node": ">=16",
"pnpm": "8"
},
"scripts": {
Expand Down
5 changes: 0 additions & 5 deletions packages/frontend/next-env.d.ts

This file was deleted.

73 changes: 10 additions & 63 deletions pnpm-lock.yaml

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

3 changes: 2 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
packages:
- 'packages/**'
- 'frontend'
- 'contracts'
2 changes: 1 addition & 1 deletion vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"framework": "nextjs",
"buildCommand": "pnpm build",
"devCommand": "pnpm dev",
"outputDirectory": "./packages/frontend/.next",
"outputDirectory": "./frontend/.next",
"installCommand": "HUSKY=0 pnpm install --no-frozen-lockfile",
"ignoreCommand": "",
"github": {
Expand Down

0 comments on commit 40d397f

Please sign in to comment.