Giter Site home page Giter Site logo

buildless / sample-turbo-reactnative Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 3.96 MB

Sample codebase using Turbo, React Native, and Buildless

Home Page: https://less.build

TypeScript 53.01% JavaScript 41.45% CSS 5.54%
android build-cache buildcache buildless ios react-native remote-build-cache sccache turbo turborepo

sample-turbo-reactnative's Introduction

turborepo + react native sample

Buildless, Pkgst, Turbo, and React Native with sccache.

See a video preview of this sample on the command line

Uncached build (22 seconds) Cached build (1.5 seconds)
Clean build Cached build

Details about this sample

Together, these tools provide a unified cross-platform development environment, enabled with blazing-fast remote build caching. Turbo handles build caching for the web portion of the app. sccache kicks in for Swift builds.

Additional resources

Trying the sample

Before you start: Obtain an API key for Buildless, set it at BUILDLESS_APIKEY in your environment

  1. Clone the sample, install dependencies with pnpm i
  2. Run a build with pnpm run build; observe that Turbo uses Buildless
  3. Set up sccache, and link it to your Swift toolchain, configure caching with Redis

That's it! Enjoy lightning-fast builds on all platforms ๐Ÿ”ฅ

Building and running each app

To run the web app:

pnpm run dev

To run the iOS app:

pnpm run ios

To run the Android app:

pnpm run android

Using the sample for your own codebase

This is a GitHub Template repository; you can easily use it to create your own repo. Follow these steps to customize it for use with your Buildless account:

  1. Update .github/CODEOWNERS
  2. Add a GitHub Secret called BUILDLESS_APIKEY, set to the API key you want to use in CI
  3. That's it!

Sharing an API key across an organization

You can use Organization Secrets to automatically provide a BUILDLESS_APIKEY to all your repos.

Docs from the original template

This template is a fork of a similar Vercel-provided template. The original README docs from that template are enclosed below.

What's inside?

This Turborepo includes the following packages/apps:

Apps and Packages

Each package/app is 100% TypeScript.

Utilities

This Turborepo has some additional tools already setup for you:

Video preview

asciicast

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.