# @snailicide/g-shopify-library 🐌

[![NPM](https://img.shields.io/npm/v/@snailicide/g-shopify-library)](http://www.npmjs.com/package/@snailicide/g-shopify-library)
![License: MIT](https://img.shields.io/npm/l/@snailicide/g-shopify-library)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

_This plugin enables Shopify theme developers to structure their code into
"module" folders which keep Liquid template files (snippets and sections)
organized together with their corresponding JS or CSS, while retaining the
standard file structure of Shopify themes._

### Repository

[snailicide-monorepo](https://github.com/gbtunney/snailicide-monorepo.git)

### Author

👤 **Gillian Tunney**

- [github](https://github.com/gbtunney)
- [email](mailto:gbtunney@mac.com)

## 🐌

> Collections of types and utilities for working with Shopify

- 🐌Welcome to @snailicide/g-shopify-library🐌
  - [Features](#features)
  - [Installation](#installation)
  - [Helpful Links](#helpful-links)
  - [To-Do](#to-do)
  - [Bugs](#bugs)

[Table of contents generated with markdown-toc](http://ecotrust-canada.github.io/markdown-toc)

## Features

- Generic functions for Storefront API, Shopify MediaURLs, etc
- Section Schema types and validators (using zod)

## Usage

### Installation

This library is published in the NPM registry and can be installed using any
compatible package manager.

```bash
#npm
npm i @snailicide/g-shopify-library -D

# yarn
yarn add @snailicide/g-shopify-library -D

# pnp
pnpm add @snailicide/g-shopify-library -D
```

## Helpful Links

- [Shopify Section schema reference](https://shopify.dev/themes/architecture/sections/section-schema)
- [@shopify/admin-graphql-api-utilities](https://www.npmjs.com/package/@shopify/admin-graphql-api-utilities)
- [Zod](https://zod.dev/)
- [TypeScript](https://www.typescriptlang.org)
- [Ramda](https://ramdajs.com/docs)

## To-Do

- [ ] Presets (in new version)
- [ ] Documentation

## Bugs

Please create an issue if you found any bugs, to help us improve this project!
