Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Francesco Menghi
Francesco Menghi

Posted on

     

Turborepo, React Native and more

As I was writing this blog post last night, I got distracted by a dependency vulnerability alert ontelescope. I ended up merging the automaticPR fromrenovatebot and then did a patch release. We are now at version 2.5.4. Our fourth patch release in the span of one week!

One thing I love about Open Source is the flexibility. We have plans and a release schedule to keep everyone on track but, if I have an idea (or if I find a bug), I can bring it up, send a Pull Request and the unplanned change quickly finds its way to the master branch.

This week I had two of these moments while working on bigger tasks.

Thefirst was fixing a css bug I noticed while using telescope on Safari on my mac. It can be tedious to find the reason why Safari is not acting the same as Firefox and Chrome (Safari is generally behind when it comes to implementing some CSS properties). However, after some trial and error and some luck, I managed to fix the bug by removing just on line of code.

Thesecond small fix was an update that Isuggested for our GitHub Actions CI implementation. I noticed that all of our tests (that usually take about 10 minutes to complete) would run even for a simple change that does not impact the code such as updating the docs.

I followed the GitHub Actionsdocumentation and I added apaths-ignore option to ignore the/docs folder for the workflow that we run every time something is pushed to a PR or to master. There is now a docs specific workflow that is much faster because it only includes Prettier and ESLint (1 minute in total run time).

Other than these two small changes, what I worked on this week (and what took most of my time) involvedTurborepo andExpo.

Turborepo

I briefly talked about Turborepo in my previousblog post: It is a fantastic tool to manage a monorepo like telescope. This week myPR toadd support for Turborepo was merged and we are now ready to use it withpnpm. As of right, now it is only used for thebuild command: Usingpnpm turbo run build will go look inside each workspaces (usingpnpm-workspace.yaml) to look for abuild command and then will run them all.

Other students have shown interest in the Turborepo setup. In the coming weeks, we will work together to get to a point where we can use this tool to itsfull potential.

React Native with Expo

The last thing I worked on this week wassetting up a new React Native project within the telescope monorepo.

As a group we decided to use Expo, which is a framework to manage a React Native app. The problem I ran into was that Expo is not currently compatible withpnpm. As a workaround we now change directory tosrc/mobile where the React Native app lives and then usenpm there.

Expo with iOS Simulator

I tested the app on iOS, Android and the web and it works on all 3 platforms (ThePR was merged yesterday). The app is empty for now but by the end of the semester we should have something functional and maybe even publish it to the App Store and Play Store!

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Location
    Toronto, Canada
  • Joined

More fromFrancesco Menghi

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp