Skip to content

Monorepo for the collection of packages for the JS ecosystem that are meant to improve the speed and DX of working with Swell stores.

Notifications You must be signed in to change notification settings

swellstores/swell-sdk

Repository files navigation

Swell SDK

This repository is a monorepo that contains packages meant to improve the speed and development experience of building storefronts with Swell.

What's inside

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: Shared eslint configurations.
  • tsconfig: Shared TypeScript configurations.

Setup

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.

Monorepo Commands

  • "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.

About

Monorepo for the collection of packages for the JS ecosystem that are meant to improve the speed and DX of working with Swell stores.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •