Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Delete outdated WL server and webpage source code #319

Merged
merged 2 commits into from
Feb 10, 2022

Conversation

bangtoven
Copy link
Contributor

@bangtoven bangtoven commented Feb 9, 2022

before
Screen Shot 2022-02-09 at 2 51 35 PM

after
Screen Shot 2022-02-09 at 2 51 04 PM

@bangtoven bangtoven marked this pull request as ready for review February 9, 2022 22:57
@cb-jake
Copy link
Contributor

cb-jake commented Feb 9, 2022

Looks like the build:prod script is failing on this step cp ./package.json ../README.md ../LICENSE

We should update the build:prod script to be cp ./package.json ./README.md ./LICENSE

@cb-jake
Copy link
Contributor

cb-jake commented Feb 9, 2022

Running yarn build:prod (with the updated relative paths) returns a proper looking build inside the build directory.

yarn build:prod

cd build/npm

node

> require(".")

# output
{
  WalletLinkProvider: [Getter],
  WalletLink: [Getter],
  default: [class WalletLink] { VERSION: '2.4.7' }
}

> .exit

It would be good to install this build into a dapp that uses walletlink to ensure no regressions but otherwise this looks good to me

@@ -31,7 +31,7 @@
"build-npm": "tsc -p ./tsconfig.build.json",
"build:dev": "export WALLETLINK_URL='http://localhost:3000'; yarn build && yarn build-chrome",
"build:dev:watch": "nodemon -e 'ts,tsx,js,json,css,scss,svg' --ignore 'src/**/*-css.ts' --ignore 'src/**/*-svg.ts' --watch src/ --watch chrome/ --exec 'yarn build:dev'",
"build:prod": "yarn prebuild && yarn build && yarn build-chrome && yarn build-npm && cp ./package.json ../README.md ../LICENSE build/npm && cp -a src/vendor-js build/npm/dist && sed -i.bak 's| \"private\": true,||g' build/npm/package.json && rm -f build/npm/package.json.bak",
"build:prod": "yarn prebuild && yarn build && yarn build-chrome && yarn build-npm && cp ./package.json ./README.md ./LICENSE build/npm && cp -a src/vendor-js build/npm/dist && sed -i.bak 's| \"private\": true,||g' build/npm/package.json && rm -f build/npm/package.json.bak",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
thanks @cb-jake !

@bangtoven bangtoven merged commit 75e6db2 into master Feb 10, 2022
@bangtoven bangtoven deleted the jungho/delete-non-sdk branch February 10, 2022 01:23
bangtoven added a commit that referenced this pull request Feb 29, 2024
* Delete outdated WL server and webpage source code

* fix build:prod
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants