kemelcodes / merlist.co-v2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PNPM Monorepo for Medusa

Medusa Hackathon 2022

About

Participants

Dale Nguyen - @dalenguyen

Twitter

Description

Monorepo starter for Medusa project. It utilizes PNPM workspace to improve Developer Experience. The project also takes advantage of NX Workspace for

  • saving disk space and boosting installation speed
  • share library
  • run tasks on only the packages that changed
  • advanced caching based on file contents to not run anything that has already been computed previously
  • remote distributed caching to speed up your CI

Set up Project

Prerequisites

Make sure you have PNPM on your machine.

Install packages

pnpm i

Start all projects

pnpm start

Start project (NX)

Nx uses the following form to run commands

npx nx <target> <project>

npx nx start backend
npx nx start admin
npx nx dev storefront

Build all project (NX)

npx nx run-many --target=build --projects=backend,admin,storefront

Add new package

pnpm add -D {package_name} --filter {app_name}

Resources

About

License:MIT License


Languages

Language:TypeScript 95.2%Language:JavaScript 4.1%Language:CSS 0.7%Language:Dockerfile 0.0%Language:HTML 0.0%Language:Shell 0.0%