Skip to content

Commit

Permalink
Separate branch for playground (#1304)
Browse files Browse the repository at this point in the history
* delete non pg code

* Separate branch for playground

* cleanup

* yarn export

* fix package.json

* fix ci

* ci. no unit test on pg

* fix
  • Loading branch information
bangtoven authored May 22, 2024
1 parent 48c78aa commit 1733e88
Show file tree
Hide file tree
Showing 30 changed files with 3,720 additions and 8,441 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
- name: Install dependencies
run: yarn install
- name: Build and export with Next.js
run: yarn workspace @coinbase/wallet-sdk-testapp run export
run: yarn export
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./apps/testapp/out
path: ./out

deploy:
environment:
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,41 +49,5 @@ jobs:
- name: Install NPM dependencies
run: yarn install --immutable

- name: Runs compile asset script
working-directory: ./packages/wallet-sdk
run: node ./compile-assets.js

- name: Check Types
run: yarn typecheck

tests:
name: Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache-dependency-path: '**/yarn.lock'

- name: Install NPM dependencies
run: yarn install --immutable

- name: Runs compile asset script
working-directory: ./packages/wallet-sdk
run: node ./compile-assets.js

- name: Run Unit Tests
working-directory: ./packages/wallet-sdk
run: yarn test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ examples/**/yarn.lock

# next.js
.next
/out
6 changes: 1 addition & 5 deletions apps/testapp/README.md → README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# testapp

This is a demo app for development purposes. To run it locally, run the `yarn dev` command from the repository's root directory. It will start two dev servers in parallel:

- @coinbase/wallet-sdk-testapp
- @coinbase/wallet-sdk

This is a demo app for development purposes. To run it locally, run the `yarn dev` command from the repository's root directory.
Navigate to http://localhost:3001/ to view the test dapp
File renamed without changes.
16 changes: 14 additions & 2 deletions apps/testapp/package.json → package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"name": "@coinbase/wallet-sdk-testapp",
"packageManager": "[email protected]",
"scripts": {
"lint": "eslint . --ext .ts,.tsx --fix",
"typecheck": "tsc --noEmit",
"dev": "next dev --port 3001",
"build": "next build",
"start": "next start",
"export": "yarn workspace @coinbase/wallet-sdk run build && next build && next export"
"export": "next build && next export"
},
"dependencies": {
"@chakra-ui/icons": "^2.1.1",
Expand All @@ -23,6 +25,16 @@
"react-hook-form": "^7.45.2"
},
"devDependencies": {
"@types/react": "18.2.15"
"@types/react": "18.2.15",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"eslint": "^8.45.0",
"eslint-config-preact": "^1.3.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unused-imports": "^3.0.0",
"prettier": "^3.0.0",
"typescript": "^5.1.6"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 1733e88

Please sign in to comment.