Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

chore: In mobile/Makefile, use ts_check after node_modules #134

Merged

Conversation

jefft0
Copy link
Contributor

@jefft0 jefft0 commented Oct 4, 2024

In mobile/Makefile, we want to run ts_check for most build targets. Most build targets use node_modules, so we put ts_check as a dependency of the node_modules target. But this makes ts_check run before npm install. This doesn't work because ts_check needs npm install to run first in order to install tsc.

This pull request removes ts_check for the dependency of node_modules and adds it explicitly to the dependencies of build targets after node_modules.

Signed-off-by: Jeff Thompson <jeff@thefirst.org>
@jefft0 jefft0 requested a review from iuricmp October 4, 2024 15:51
jefft0 added a commit to jefft0/gnonative that referenced this pull request Oct 4, 2024
This is the same fix as gnoverse/dsocial#134

Signed-off-by: Jeff Thompson <jeff@thefirst.org>
jefft0 added a commit to jefft0/gnonative that referenced this pull request Oct 8, 2024
…ch target

This is the same fix as PR gnoverse/dsocial#134

Signed-off-by: Jeff Thompson <jeff@thefirst.org>
jefft0 added a commit to jefft0/gnonative that referenced this pull request Oct 8, 2024
…ch target

This is the same fix as PR gnoverse/dsocial#134

Signed-off-by: Jeff Thompson <jeff@thefirst.org>
Copy link
Contributor

@iuricmp iuricmp left a comment

Choose a reason for hiding this comment

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

🥇

@jefft0 jefft0 merged commit 2941eb0 into gnoverse:main Oct 9, 2024
1 check passed
@jefft0 jefft0 deleted the chore/Makefile-ts_check-after-node_modules branch October 9, 2024 15:21
jefft0 added a commit to gnolang/gnonative that referenced this pull request Oct 10, 2024
Similar to PR gnoverse/dsocial#130, we update
gnoboard to use the new Gno Native Kit API which removes `selectAccount`
and requires passing the account address to `setPassword`, etc. This PR
has five commits:

1. The app needs to keep track of the active account, so add
`GnoboardProvider`.
2. Instead of calling Gno Native Kit `selectAccount`, call
`GnoboardProvider` `setAccount` to remember the active account.
3. `setPassword` needs the account address, so in `ReenterPassword` add
param `accountAddress`.
4. In wallet/home: Pass in the account instead of calling
`getActiveAccount`. Use the account address to call `queryAccount`.
5. As in a [similar dsocial
PR](gnoverse/dsocial#134), fix the Makefile to
call ts_check after node_modules.

With this PR, all known apps have been updated to remove `selectAcount`
and to pass the account address to the methods of Gno Native Kit, which
can be updated to remove deprecated functions and to make the address
not optional.

---------

Signed-off-by: Jeff Thompson <jeff@thefirst.org>
Copy link

🎉 This PR is included in version 1.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants