Skip to content

A template starter for creating monorepos of SolidJS packages.

License

Notifications You must be signed in to change notification settings

solidjs-community/monorepo-starter

Repository files navigation

your-repository-name Monorepo

your-repository-name

pnpm turborepo

your-repository-desc

Note After using this template, you have to search and replace all your-repository-name and similar strings with appropriate texts.

your-repository-name should be a kebab-case string representing the name of you monorepo.

your-repository-desc should be a Normal case string with the description of the repository.

your-nickname should be a kebab-case string from your profile URL.

your-author-name should be a Normal case string with your first and last name.

Project Commands

List of cli commands available from a project root.

To use the commands, first install pnpm and install dependencies with pnpm i.

pnpm run dev
# Builds all packages in watch mode, and starts all playgrounds
# turbo run dev --parallel

pnpm run build
# Builds all the packages in the monorepo
# turbo run build --filter=!./playgrounds/*

pnpm run test
# Runs tests for all the packages in the monorepo
# turbo run test --filter=!./playgrounds/*

pnpm run typecheck
# Runs TS typecheck for all the packages in the monorepo
# turbo run typecheck --filter=!./playgrounds/*

pnpm run build-test
# Runs build, typecheck and test commands for all the packages in the monorepo
# "turbo run build test typecheck --filter=!./playgrounds/*

pnpm run format
# Formats the reposotory with prettier
# prettier -w \"packages/**/*.{js,ts,json,css,tsx,jsx,md}\" \"playgrounds/**/*.{js,ts,json,css,tsx,jsx,md}\"

pnpm run changeset
# Creates a changeset
# changeset

pnpm run version-packages
# Applies changesets to bump package versions and update CHANGELOGs
# "changeset version && pnpm i

pnpm run release
# Builds and publishes changed packages to npm
# pnpm run build-test && changeset publish

pnpm run update-deps
# Updates all dependencies in the repository
# pnpm up -Lri