Giter VIP home page Giter VIP logo

rush-monorepo-boilerplate's Introduction

rush-monorepo-boilerplate

Netlify Status

rush-monorepo-boilerplate.netlify.app

Rush monorepo boilerplate

  • RushJS with PNPM to manage monorepo
  • Front End package: React SPA
  • React Scripts package: build tools created on top of create-react-app. Contains build start, test, lint, lint-staged scripts
  • CI/CD using Github Actions
  • Formatting using Prettier
  • Git hooks: pre-commit ( prettier, lint-staged ), commit-msg ( lint commits using commitlint )
  • Generate packages using plop

Prerequisites

This boilerplate uses Rush and PNPM to manage packages in monorepo.

If you're interested in how this boilerplate was created, check out this series of posts:

  • Part 1: Monorepo setup, import projects with preserving git history, add Prettier

  • Part 2: Create build tools package with Webpack and react-scripts

  • Part 3: Add shared ESLint configuration and use it with lint-staged

  • Part 4: Setup a deployment workflow with Github Actions and Netlify.

  • Part 5: Add VSCode configurations for a better development experience.

Quick start

# 1. Install RushJS globally
npm install -g @microsoft/rush

# 2. Clone the repository.
git clone https://github.com/abereghici/rush-monorepo-boilerplate.git my-new-monorepo

# 3. Enter your newly-cloned folder
cd my-new-monorepo

# 4. Install dependencies
rush install

# 5. Run Build in all packages
rush build

# 6. Dev: Run React App that was created as a demo project
cd apps/react-app
rushx start

Enhancements and Bug Reports

If you find a bug or have an enhancement in mind, please post issues on GitHub. Suggestions and feedback are very welcome!

License

MIT

rush-monorepo-boilerplate's People

Contributors

abereghici avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rush-monorepo-boilerplate's Issues

how to run two or more projects?

Hi, Thank you for your articles

if I have monorepo like

  • Client/React-App
  • Client/React-Native-App
  • Server/Nodejs-app

How can I run Client/React-App + Server/Nodejs-app or Client/React-App or Server/Nodejs-app if I don't want to do smt like cd ... & rushx or ect

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.