This repository is a monorepo that contains packages meant to improve the speed and development experience of building storefronts with Swell.
This collection includes the following external packages:
@swell/js
: A more modular, TypeScript-first rewrite of swell-js. Link.. npm.@swell/react
: Wrapper around@swell/js
that provides its functionality in the shape of a collection of hooks. Link..npm
And the following internal packages:
eslint-config-custom
: Sharedeslint
configurations.tsconfig
: Shared TypeScript configurations.
This monorepo makes use of Turborepo, pnpm and Node.js 16+ to synchronize dependencies and pipelines across all packages.
To update dependencies you can simply run
pnpm i
within any place of the file tree and it will update the packages across the monorepo.
- "build": "Builds the packages that contain a build command, following the order of the dependency tree.",
- "dev": "Starts a development server for all the packages that have one, in parallel.",
- "lint": "Lints the packages in parallel.",
- "test": "Tests the packages in parallel.",
- "format": "Formats all files according to the prettier config.",
Packages also contain their own specific commands apart from the general ones described above.