diff --git a/.github/workflows/deploy-demo.yml b/.github/workflows/deploy-demo.yml index 3932f87..94c93df 100644 --- a/.github/workflows/deploy-demo.yml +++ b/.github/workflows/deploy-demo.yml @@ -33,7 +33,7 @@ jobs: run: yarn install --immutable - name: Build - run: yarn build + run: yarn demo-wallet:build - name: Deploy to Netlify uses: nwtgck/actions-netlify@v3.0 diff --git a/.gitignore b/.gitignore index 2149fae..77df5c4 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ packages/demo-wallet/dist/* packages/e2e-tests/dist/* !/packages/e2e-tests/dist/serve.json +!/packages/web-wallet/dist/_headers diff --git a/package.json b/package.json index c4662b6..457c653 100644 --- a/package.json +++ b/package.json @@ -14,13 +14,16 @@ }, "packageManager": "yarn@4.5.1", "scripts": { - "serve": "yarn workspace @webzjs/demo-wallet run serve", - "dev": "yarn run just:build-keys && yarn run snap:start & yarn run demo-wallet:dev", - "build": "yarn workspace @webzjs/demo-wallet run build", - "demo-wallet:dev": "yarn workspace @webzjs/demo-wallet run dev", + "dev": "yarn workspace @webzjs/web-wallet run dev & yarn run snap:start", + "demo-wallet:serve": "yarn workspace @webzjs/demo-wallet run serve", + "demo-wallet:dev": "yarn run just:build-keys && yarn run snap:start & yarn run web-wallet:dev", + "demo-wallet:build": "yarn workspace @webzjs/demo-wallet run build", + "web-wallet:dev": "yarn workspace @webzjs/web-wallet run dev & yarn run snap:start", + "web-wallet:build": "yarn workspace @webzjs/web-wallet run build", "test:e2e": "yarn workspace @webzjs/e2e-tests test", "snap:start": "yarn workspace @webzjs/zcash-snap run start", "snap:build": "yarn workspace @webzjs/zcash-snap run build", + "just:build": "just build", "just:build-keys": "just build-keys" } } diff --git a/packages/web-wallet/.env b/packages/web-wallet/.env index 7d3bc0a..9aa4850 100644 --- a/packages/web-wallet/.env +++ b/packages/web-wallet/.env @@ -1 +1 @@ -SNAP_ORIGIN="" \ No newline at end of file +SNAP_ORIGIN="local:http://localhost:8080" \ No newline at end of file diff --git a/packages/web-wallet/.parcelrc b/packages/web-wallet/.parcelrc new file mode 100644 index 0000000..baa58d1 --- /dev/null +++ b/packages/web-wallet/.parcelrc @@ -0,0 +1,6 @@ +{ + "extends": "@parcel/config-default", + "transformers": { + "*.svg": ["...", "@parcel/transformer-svg-react"] + } +} \ No newline at end of file diff --git a/packages/web-wallet/.postcssrc.json b/packages/web-wallet/.postcssrc.json new file mode 100644 index 0000000..72f908d --- /dev/null +++ b/packages/web-wallet/.postcssrc.json @@ -0,0 +1,5 @@ +{ + "plugins": { + "@tailwindcss/postcss": {} + } +} \ No newline at end of file diff --git a/packages/web-wallet/dist/_headers b/packages/web-wallet/dist/_headers new file mode 100644 index 0000000..5b98570 --- /dev/null +++ b/packages/web-wallet/dist/_headers @@ -0,0 +1,3 @@ +/* + Cross-Origin-Opener-Policy: same-origin + Cross-Origin-Embedder-Policy: require-corp \ No newline at end of file diff --git a/packages/web-wallet/index.html b/packages/web-wallet/index.html index 45c21b8..39d7b50 100644 --- a/packages/web-wallet/index.html +++ b/packages/web-wallet/index.html @@ -3,10 +3,11 @@
+