Skip to content

Commit

Permalink
feat: add some plugin generation logic (#262)
Browse files Browse the repository at this point in the history
* feat: add some plugin generation logic

* chore: add generate commands

* style: apply PR suggestion

Co-authored-by: Dennis Won <[email protected]>

* refactor: create plugin config concept

* feat: add multi-owner-msca impl that leverages the plugin gen (#263)

* feat: add multi-owner-msca impl that leverages the plugin gen

* feat: proposal for msca builder pattern (#264)

* feat: proposal for msca builder pattern

* refactor: rework plugin gen to create read methods for the account

---------

Co-authored-by: Dennis Won <[email protected]>
  • Loading branch information
moldy530 and denniswon committed Nov 22, 2023
1 parent f575acb commit a5d466e
Show file tree
Hide file tree
Showing 21 changed files with 2,980 additions and 97 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
build_and_lint_and_test:
name: Lint and Build and Test
runs-on: ubuntu-latest
env:
API_KEY: ${{ secrets.API_KEY }}
steps:
- uses: actions/checkout@v2

Expand Down
6 changes: 3 additions & 3 deletions examples/aa-simple-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"lint": "next lint"
},
"dependencies": {
"@alchemy/aa-accounts": "^1.0.0",
"@alchemy/aa-alchemy": "^1.0.0",
"@alchemy/aa-core": "^1.0.0",
"@alchemy/aa-accounts": "*",
"@alchemy/aa-alchemy": "*",
"@alchemy/aa-core": "*",
"@t3-oss/env-core": "^0.7.1",
"@t3-oss/env-nextjs": "^0.7.1",
"magic-sdk": "^20.1.1",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"site"
],
"scripts": {
"generate": "lerna run generate && yarn lint:write",
"build": "lerna run build --ignore=alchemy-daapp --ignore=aa-simple-dapp",
"build:examples": "lerna run build",
"clean": "lerna run clean",
Expand Down
6 changes: 6 additions & 0 deletions packages/accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"./package.json": "./package.json"
},
"scripts": {
"generate": "npx wagmi generate",
"prebuild": "yarn generate",
"build": "yarn clean && yarn build:cjs && yarn build:esm && yarn build:types",
"build:cjs": "tsc --project tsconfig.build.json --module commonjs --outDir ./dist/cjs --removeComments --verbatimModuleSyntax false && echo > ./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir ./dist/esm --removeComments && echo > ./dist/esm/package.json '{\"type\":\"module\"}'",
Expand All @@ -41,6 +43,10 @@
"devDependencies": {
"@alchemy/aa-alchemy": "^1.2.0",
"@alchemy/aa-core": "^1.0.0",
"@wagmi/cli": "^1.5.2",
"change-case": "^5.1.2",
"dedent": "^1.5.1",
"dotenv": "^16.3.1",
"typescript": "^5.0.4",
"typescript-template": "*",
"vitest": "^0.31.0"
Expand Down
1 change: 1 addition & 0 deletions packages/accounts/plugindefs/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { MultiOwnerPluginGenConfig } from "./multi-owner/config.js";
Loading

0 comments on commit a5d466e

Please sign in to comment.