0.1.1 • Published 2 years ago

shopify-template-schema v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Shopify Template Schema

A tool for converting Shopify schemas into a JSON schema for templates.

Version Downloads Stats Run test

Installation

Yarn:

yarn add shopify-template-schema

Usage

Shopify template schema will only create a schema for your templates. It won't valid them.

If your using Visual Studio Code we recommend using the json schema setting, like this:

{
  "json.schemas": [
    {
      "fileMatch": ["templates/*.json"],
      "url": "./template.schema.json"
    }
  ]
}

Running from command line

You can run shopify-template-schema directly from the CLI with a variety of options.

Here's how you would run it if the current directory isn't the a shopify project.

shopify-template-schema path/to/shopify-project

To view all options run:

shopify-template-schema -h
0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago