Giter Site home page Giter Site logo

wilson9512 / ts-mono-example Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 318 KB

An example for monorepo, contain react-native and next.js and use typescript.

JavaScript 9.37% TypeScript 29.00% CSS 28.22% Ruby 7.60% Kotlin 11.66% Objective-C 10.50% Objective-C++ 3.66%

ts-mono-example's Introduction

這是一個 TypeScript monorepo 專案,包含多個子包。該專案使用 Yarn 4.x 作為包管理工具。 This is a TypeScript monorepo project that contains multiple sub-packages. It uses Yarn 4.x as the package manager.

Prerequisites

  • Node.js (Recommended version: 16.x or newer)
  • Yarn 4.x

Installation

  1. Clone the repository to your local machine:

    bash: git clone https://github.com/your-repo/ts-monorepo.git cd ts-monorepo

  2. Install dependencies:

    bash: yarn install

  3. Build all packages:

    bash: yarn build

Running app1

  1. Navigate to the app1 directory:

    bash: cd packages/app1

  2. Start the application:

    bash: yarn start

Directory Structure

  • packages/app1: This is a sample React Native application.
  • packages/common: This is a shared package containing various TypeScript functions that can be used in other packages.

Scripts

Some useful scripts defined in the root package.json:

  • yarn build: Builds all packages in the workspace.
  • yarn postinstall: Automatically builds all packages after dependencies are installed.

Troubleshooting

Issue: Installation failed

If you encounter issues during the installation process, try cleaning the existing installation and reinstalling:

bash: rm -rf node_modules yarn.lock packages/*/node_modules yarn install

Issue: Build failed

If you encounter issues during the build process, check the build logs to diagnose the error. The log file path is usually provided in the error message.

ts-mono-example's People

Contributors

wilson9512 avatar

Watchers

 avatar  avatar

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.