Overview

Carrots Demo Store
Commands
- Run
pnpm devto start app with hot reload. - Run
pnpm lintto lint app. - Run
pnpm formatto format app. - Run
pnpm run testto test app. - Run
pnpm buildto build app. - Run
pnpm startto start built app.
Code generation
- Run
pnpm codegento generate Typescript types from custom and Contentful Graphql schema. - Run
pnpm codegen:graphqlto generate Typescript types from custom Graphql schema. - Run
pnpm codegen:sectionto generate a new section. You will be prompted to enter a section name. - Run
pnpm codegen:contentfulto generate Graphql schema & Typescript types for Contentful models. - Run
pnpm codegen:contentful:schemato generate Graphql schema for Contentful models. - Run
pnpm codegen:contentful:typesto generate Typescript types for Contentful models.
Monorepo
Run a command targeting carrots-frontend from the monorepo root directory by using the pnpm ---filter <package_name> command prefix:
pnpm --filter "@overdose/carrots-frontend" [command]
eg:
pnpm --filter "@overdose/carrots-frontend" install lodashpnpm --filter "@overdose/carrots-frontend" formatpnpm --filter "@overdose/carrots-frontend" generate:section